CVE-2024-58040CWE-331CWE-338

Crypt::RandomEncryption for Perl uses insecure rand() function during encryption

Critical ยท published September 29, 2025

CVSS v3.1
9.1
EPSS
0%
Percentile
13.9
In the wild
Unconfirmed
What it is

๐Ÿšจ The encryption in Crypt::RandomEncryption for Perl is a ticking time bomb, using the insecure rand() function that could leave your data exposed! ๐Ÿ”ฅ Think of it like sealing your valuables in a safe with a flimsy lock instead of a heavy-duty one โ€” anyone could break in! ๐Ÿ” An attacker could potentially decrypt sensitive information, putting your entire system at risk. Imagine confidential data falling into the wrong hands โ€” the consequences could be absolutely devastating. This is a serious threat that needs immediate attention!

Put simply

Think of it like sealing your valuables in a safe with a flimsy lock instead of a heavy-duty one โ€” anyone could break in! ๐Ÿ” The vulnerability arises because Crypt::RandomEncryption version 0.01 relies on the insecure rand() function for generating encryption keys, which can be predicted by attackers. This compromises the confidentiality of encrypted data.

What to do

An attacker could potentially decrypt sensitive information, putting your entire system at risk. Imagine confidential data falling into the wrong hands โ€” the consequences could be absolutely devastating. This is a serious threat that needs immediate attention! Upgrade to a secure version of the encryption library as soon as possible. Using a more robust random number generator for key creation will significantly enhance your security posture. Don't wait until it's too late! You've got this! Patch your system, and you'll be fortified in no time! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS v3.1
9.1 ยท CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00237 ยท 13.9th percentile
Weaknesses
CWE-331 ยท Insufficient Entropy; CWE-338 ยท Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Published
2025-09-29T23:54Z
EPSS history
Timeline
  • 29 SEP 23:54Z
    Crypt::RandomEncryption for Perl uses insecure rand() function during encryption
    cvelistv5