CVE-2026-2474: Crypt::URandom versions from 0.41 before 0.55 for Perl is vulnerable to a heap buffer overflow in the XS funct
CVE-2026-2474 is a high-severity flaw (CVSS 7.5) affecting crypt\. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Crypt::URandom versions from 0.41 before 0.55 for Perl is vulnerable to a heap buffer overflow in the XS function crypt_urandom_getrandom(). The function does not validate that the length parameter is non-negative. If a negative value (e.g. -1) is supplied, the expression length + 1u causes an integer wraparound, resulting in a zero-byte allocation. The subsequent call to getrandom(data, length, GRND_NONBLOCK) passes the original negative value,
Why this priority
- High severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-2474?
crypt\: upgrade to 0.55. Exact commands for each OS are on this page.
Is CVE-2026-2474 being exploited?
CVE-2026-2474 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-2474 affect?
CVE-2026-2474 affects crypt\. Severity is high (CVSS 7.5). Crypt::URandom versions from 0.41 before 0.55 for Perl is vulnerable to a heap buffer overflow in the XS function crypt_urandom_getrandom(). The function does not validate that the length parameter is non-negative. If a negative value (e.g
How urgent is CVE-2026-2474?
Priority 38/100. High severity; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2026-5086 HIGH 7.5 UPGRADE Crypt::SecretBuffer versions before 0.019 for Perl is suseceptible to timing attacks. For example, if Crypt::
- CVE-2026-8463 MEDIUM 5.3 UPGRADE Crypt::Argon2 versions from 0.017 before 0.031 for Perl perform a heap out-of-bounds read in argon2_verify on
- CVE-2026-58102 CRITICAL 9.1 UPGRADE Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow a heap out-of-bounds read via a long certificate ext
- CVE-2026-58101 HIGH 7.5 UPGRADE Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow denial of service via NULL pointer dereference. X50
- CVE-2025-15444 CRITICAL 9.8 UPGRADE Crypt::Sodium::XS module versions prior to 0.000042, for Perl, include a vulnerable version of libsodium libs