CVE-2026-30910: IAMB Crypt::Sodium::XS · Integer Overflow or Wraparound
Affects IAMB Crypt::Sodium::XSSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 21% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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 8 Mar 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 29 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| IAMBCrypt::Sodium::XS | Affected
| Fixed in– |
AI-suggested
Organizations should monitor for official patches or updates from the Crypt::Sodium::XS maintainers and apply them promptly once available. Until patches are released, implement strict input validation to reject or limit message sizes well below the thresholds that trigger integer wraparound (e.g., significantly less than SIZE_MAX / 2 for bin2hex and corresponding limits for encryption and signature functions). Employ runtime protections such as memory safety tools or address sanitizers during development and testing to detect potential buffer overflows. Review and audit any custom code interfacing with Crypt::Sodium::XS to ensure it does not inadvertently pass large inputs that could trigger the vulnerability. Consider isolating or sandboxing services using this module to limit impact in case of exploitation. Maintain robust monitoring and logging to detect abnormal crashes or memory corruption events that could indicate attempted exploitation. Finally, educate developers and security teams about the risks of integer overflows in cryptographic libraries and the importance of input size checks.
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