CVE-2026-30910: Crypt::Sodium::XS - Integer Overflow
- Cve: CVE-2026-30910
- Name: Crypt::Sodium::XS - Integer Overflow
- Description: Crypt::Sodium::XS versions through 0.001000 for Perl has potential integer overflows. Combined aead encryption, combined signature creation, and bin2hex functions do not check that output size will be less than SIZE_MAX, which could lead to integer wraparound causing an undersized output buffer. This can cause a crash in bin2hex and encryption algorithms other than aes256gcm. For aes256gcm encryption and signatures, an undersized buffer could lead to buffer overflow. Encountering this issue is unlikely as the message length would need to be very large. For bin2hex the input size would have to be > SIZE_MAX / 2 For aegis encryption the input size would need to be > SIZE_MAX - 32U For other encryption the input size would need to be > SIZE_MAX - 16U For signatures the input size would need to be > SIZE_MAX - 64U
- Impact: Attackers can cause buffer overflows or crashes by providing very large inputs, potentially leading to denial of service or memory corruption.
- Remediation: Update to the latest version of Crypt::Sodium::XS.
- Vulnerability type: integer_overflow
- Vulnerability impact: denial_of_service, buffer_overflow
- Requirement type: none
- 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.00304
- Epss percentile: 0.23522
- Assignee: 9b29abf9-4ab0-4765-b253-1875cd9b441e
- Published at: 2026-03-08T02:16:00Z
- Age in days: 260
- Modified at: 2026-06-17T10:33:07Z
- References total: 2
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-30910
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-190 | Integer Overflow or Wraparound |
References
| Url | Source | Tags |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2026/03/08/2 | nvd | Mailing List, Third Party Advisory |
| https://metacpan.org/release/IAMB/Crypt-Sodium-XS-0.001001/changes | nvd | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| iamb:crypt::sodium::xs | <= 0.001001 | no | nvd | /v1/products/iamb/crypt::sodium::xs |
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