{"id":"CVE-2026-2474","published":"2026-02-16T20:54:51Z","modified":"2026-02-17T14:48:49Z","title":"Crypt::URandom versions from 0.41 before 0.55 for Perl is vulnerable to a heap buffer overflow in the XS function…","vendor":"DDICK","product":"Crypt::URandom","tier":"tail","description":{"text":"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().\n\nThe 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).\n\nIn 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00353,"percentile":0.29781,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-1284","name":"Improper Validation of Specified Quantity in Input"}],"references":[{"url":"https://metacpan.org/release/DDICK/Crypt-URandom-0.55/source/Changes","tags":["release-notes"]},{"url":"https://metacpan.org/release/DDICK/Crypt-URandom-0.54/source/URandom.xs#L35-79","tags":["related"]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":5.96},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"ddick","affectedVersions":[{"vendor":"DDICK","product":"Crypt::URandom","versions":[">= 0.41, < 0.55"]}],"solutions":{"items":["Update to version 0.55 or later"],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-17T14:47:36.338726Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-7825","exploited":false,"provenance":"source"}}