๐Ÿ” CVE Alert

CVE-2026-2597

HIGH 7.5

Crypt::SysRandom::XS versions before 0.010 for Perl is vulnerable to a heap buffer overflow in the XS function random_bytes()

CVSS Score
7.5
EPSS Score
0.0%
EPSS Percentile
0th

Crypt::SysRandom::XS versions before 0.010 for Perl is vulnerable to a heap buffer overflow in the XS function random_bytes(). 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 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). 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.

CWE CWE-122 CWE-1284
Vendor leont
Product crypt::sysrandom::xs
Published Feb 26, 2026
Last Updated Feb 27, 2026
Stay Ahead of the Next One

Get instant alerts for leont crypt::sysrandom::xs

Be the first to know when new high vulnerabilities affecting leont crypt::sysrandom::xs are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

LEONT / Crypt::SysRandom::XS
0 < 0.010

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
metacpan.org: https://metacpan.org/dist/Crypt-SysRandom-XS/changes metacpan.org: https://metacpan.org/release/LEONT/Crypt-SysRandom-XS-0.011/source/lib/Crypt/SysRandom/XS.xs#L51-52