CVE Explorer
CVE-2026-2474
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-122","description":"CWE-122 Heap-based Buffer Overflow","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:31fa80f2c7fdb6307db4c5721f67f96171acca1eda76b673b04f2f7b0e006fcc · sha256:2adaadd4a64cedd9… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-1284","description":"CWE-1284 Improper Validation of Specified Quantity in Input","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:31fa80f2c7fdb6307db4c5721f67f96171acca1eda76b673b04f2f7b0e006fcc · sha256:2adaadd4a64cedd9… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"Crypt-URandom","product":"Crypt::URandom","programFiles":["URandom.xs"],"programRoutines":[{"name":"crypt_urandom_getrandom()"}],"repo":"https://github.com/david-dick/crypt-urandom","vendor":"DDICK","versions":[{"lessThan":"0.55","status":"affected","version":"0.41","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:31fa80f2c7fdb6307db4c5721f67f96171acca1eda76b673b04f2f7b0e006fcc · sha256:2adaadd4a64cedd9… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:31fa80f2c7fdb6307db4c5721f67f96171acca1eda76b673b04f2f7b0e006fcc · sha256:2adaadd4a64cedd9… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-122","description":"CWE-122 Heap-based Buffer Overflow","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:31fa80f2c7fdb6307db4c5721f67f96171acca1eda76b673b04f2f7b0e006fcc · sha256:2adaadd4a64cedd9… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-1284","description":"CWE-1284 Improper Validation of Specified Quantity in Input","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:31fa80f2c7fdb6307db4c5721f67f96171acca1eda76b673b04f2f7b0e006fcc · sha256:2adaadd4a64cedd9… · /containers/cna/problemTypes/1/descriptions/0
Source references
2 source assertions{"tags":["related"],"url":"https://metacpan.org/release/DDICK/Crypt-URandom-0.54/source/URandom.xs#L35-79"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:31fa80f2c7fdb6307db4c5721f67f96171acca1eda76b673b04f2f7b0e006fcc · sha256:2adaadd4a64cedd9… · /containers/cna/references/1
{"tags":["release-notes"],"url":"https://metacpan.org/release/DDICK/Crypt-URandom-0.55/source/Changes"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:31fa80f2c7fdb6307db4c5721f67f96171acca1eda76b673b04f2f7b0e006fcc · sha256:2adaadd4a64cedd9… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.