CVE-2026-2474: Crypt::URandom - Integer Overflow
- Cve: CVE-2026-2474
- Name: Crypt::URandom - Integer Overflow
- Description: 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 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.
- Impact: Attackers can cause heap memory corruption and application crash, resulting in denial of service.
- Remediation: Update to version 0.55 or later.
- Vulnerability type: integer_overflow
- Vulnerability impact: denial_of_service
- Requirements: Application must pass untrusted input to length parameter
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00353
- Epss percentile: 0.29592
- Assignee: 9b29abf9-4ab0-4765-b253-1875cd9b441e
- Published at: 2026-02-16T21:22:18Z
- Age in days: 281
- Modified at: 2026-06-17T10:31:08Z
- Patch available: yes
- References total: 2
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-2474
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-122 | Heap-based Buffer Overflow |
References
| Url | Source | Tags |
|---|---|---|
| https://metacpan.org/release/DDICK/Crypt-URandom-0.54/source/URandom.xs#L35-79 | nvd | Issue Tracking |
| https://metacpan.org/release/DDICK/Crypt-URandom-0.55/source/Changes | nvd | Product, Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ddick:crypt::urandom | >= 0.41, < 0.55 | no | nvd | /v1/products/ddick/crypt::urandom |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts