CVE-2026-30910 Details
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
A vulnerability exists in Crypt::Sodium::XS versions prior to 0.001000 for Perl, where certain functions do not properly validate output sizes, potentially leading to integer overflows. This issue arises in combined aead encryption, signature creation, and bin2hex functions, where the output size may exceed SIZE_MAX, causing an undersized output buffer. Such a condition can result in crashes for the bin2hex function and encryption algorithms, except for aes256gcm. In the case of aes256gcm encryption and signatures, the undersized buffer could cause a buffer overflow. While this vulnerability is unlikely to be encountered under normal circumstances, as it requires very large message lengths, it poses a significant risk when the input size exceeds specific thresholds related to SIZE_MAX.
Users of Crypt::Sodium::XS should update to version 0.001001 or later. Instructions for updating can be found on MetaCPAN.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://metacpan.org/release/IAMB/Crypt-Sodium-XS-0.001001/changes | CPANSec | Release Notes |
| http://www.openwall.com/lists/oss-security/2026/03/08/2 | CVE | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| iamb crypt::sodium::xs | <= 0.001001 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 10, 2026 | CVE Modified | CISA-ADP |
| Mar 10, 2026 | Initial Analysis | [email protected] |
| Mar 8, 2026 | CVE Modified | CVE |
| Mar 8, 2026 | New CVE Received | CPANSec |