{"id":"CVE-2026-2597","published":"2026-02-26T23:29:16Z","modified":"2026-02-27T18:50:46Z","title":"Crypt::SysRandom::XS versions before 0.010 for Perl is vulnerable to a heap buffer overflow in the XS function…","vendor":"LEONT","product":"Crypt::SysRandom::XS","tier":"tail","description":{"text":"Crypt::SysRandom::XS versions before 0.010 for Perl is vulnerable to a heap buffer overflow in the XS function random_bytes().\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 chosen random function (e.g. getrandom) 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.0035,"percentile":0.29253,"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/dist/Crypt-SysRandom-XS/changes","tags":["release-notes"]},{"url":"https://metacpan.org/release/LEONT/Crypt-SysRandom-XS-0.011/source/lib/Crypt/SysRandom/XS.xs#L51-52","tags":["related"]}],"priority":{"score":11.1,"factors":[{"name":"EPSS percentile","points":5.85},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"leont","affectedVersions":[{"vendor":"LEONT","product":"Crypt::SysRandom::XS","versions":["< 0.010"]}],"solutions":{"items":["Update to version 0.010 or later"],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-27T18:50:03.345736Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-8939","exploited":false,"provenance":"source"}}