CVE-2026-2597: LEONT Crypt::SysRandom::XS · Heap-based Buffer Overflow
Affects LEONT Crypt::SysRandom::XSSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 0.010 soon.
Data as of 28 Nov 2026, 18:37 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.010
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 26 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 28 Nov 2026.
What to do
Upgrade Crypt::SysRandom::XS and Crypt-SysRandom-XS to 0.010.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| LEONTCrypt::SysRandom::XS | Affected
| Fixed in
|
GitHubCrypt-SysRandom-XSpkg:github/Crypt-SysRandom-XSOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate this vulnerability, organizations should immediately upgrade Crypt::SysRandom::XS to version 0.010 or later once available, where proper validation of the length parameter is implemented. Until a patched version is released, developers should audit their code to ensure that the length argument passed to random_bytes() is strictly validated and never derived from untrusted or user-controlled input. Implement input validation checks to reject negative or out-of-range values before calling random_bytes(). Employ runtime protections such as heap memory corruption detection tools (e.g., AddressSanitizer) during development and testing to catch potential misuse. Additionally, consider applying application-level sandboxing or process isolation to limit the impact of potential crashes. Monitoring application logs for crashes or abnormal behavior related to random_bytes() calls can help detect exploitation attempts. Finally, maintain an inventory of Perl modules in use and track updates from the vendor to apply patches promptly.
Description
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.