CVE-2026-2474 json
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()
published 2026-02-16 8 mo ago modified 2026-06-17 4 mo ago also EUVD-2026-7825
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 28%
- public exploits
- 0
- none known
Summary
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, which is implicitly converted to a large unsigned value (typically SIZE_MAX). This can result in writes beyond the allocated buffer, leading to heap memory corruption and application crash (denial of service).
In common usage, the length argument is typically hardcoded by the caller, which reduces the likelihood of attacker-controlled exploitation. Applications that pass untrusted input to this parameter may be affected.
Patch / fix
- DDICK Crypt::URandom 0.55
- libcrypt-urandom-perl Debian 13 0.54-1+deb13u1
- libcrypt-urandom-perl Debian 14 0.55-1
debian advisories DEBIAN-CVE-2026-2474
- perl-Crypt-URandom SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 0.550.0-1.6.1
suse advisories SUSE-SU-2026:1170-1
- perl-Crypt-URandom openSUSE Tumbleweed 0.550.0-1.1
opensuse advisories openSUSE-SU-2026:10414-1
- perl-crypt-urandom Alpine 3.24 0.55-r0
alpine advisories ALPINE-CVE-2026-2474
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-2474 updated cvss 4.4
crypt-urandom: Crypt::URandom for Perl is vulnerable to a heap buffer overflow in the XS function crypt_urandom_getrandom()
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 8 mo ago
Exploit prediction
0.34% chance of exploitation in the next 30 days, higher than 28% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected products
- DDICK Crypt::URandom
Classification
References
-
metacpan.org
/release/DDICK/Crypt-URandom-0.55/source/Changes
release-notes, product
-
metacpan.org
/release/DDICK/Crypt-URandom-0.54/source/URandom.xs#L35-79
related, issue-tracking
Sources
- CVE List CVE-2026-2474
- NVD CVE-2026-2474
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.