Integer Overflow Vulnerability in Perl's Crypt::NaCl::Sodium Library
CVE-2026-30909

9.8CRITICAL

Key Information:

Vendor

Timlegge

Vendor
CVE Published:
8 March 2026

What is CVE-2026-30909?

The Crypt::NaCl::Sodium library for Perl versions up to 2.002 contains a potential integer overflow vulnerability in several cryptographic functions. Specifically, the functions bin2hex, encrypt, aes256gcm_encrypt_afternm, and seal fail to validate the output size against SIZE_MAX. This oversight could lead to integer wraparound, which can result in undersized output buffers. Although triggering this vulnerability would require exceptionally large message lengths, it represents a significant risk to applications using these functions, necessitating prompt action to mitigate potential effects.

Affected Version(s)

Crypt::NaCl::Sodium 0 <= 2.002

References

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Brad Barden <perlmodules@5c30.org>
.