CVE-2026-30909: Crypt::NaCl::Sodium versions through 2.002 for Perl has potential integer overflows

Published Mar 8, 2026
·
Updated

Crypt::NaCl::Sodium versions through 2.002 for Perl has potential integer overflows.

bin2hex, encrypt, aes256gcmencryptafternm and seal functions do not check that output size will be less than SIZEMAX, which could lead to integer wraparound causing an undersized output buffer.

Encountering this issue is unlikely as the message length would need to be very large.

For bin2hex() the binlen would have to be > SIZEMAX / 2 For encrypt() the msglen would need to be > SIZEMAX - 16U For aes256gcmencryptafternm() the msglen would need to be > SIZEMAX - 16U For seal() the enclen would need to be > SIZEMAX - 64U

Affected Software

2 affected components
cpan/Crypt-NaCl-Sodium<=2.002
Timlegge Crypt\<2.003

Remediation

Information

Upgrade to version 2.003

Event History

Mar 8, 2026
CVE Published
via MITRE·12:46 AM
Data Sourced
via MITRE·12:46 AM
RemedyDescriptionWeakness
Data Sourced
via NVD·01:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-30909?

The severity of CVE-2026-30909 is considered moderate due to potential integer overflows that could lead to buffer overflows.

2

How do I fix CVE-2026-30909?

To fix CVE-2026-30909, upgrade to a version of Crypt::NaCl::Sodium that is greater than 2.002.

3

What functions are affected by CVE-2026-30909?

The affected functions in CVE-2026-30909 include bin2hex, encrypt, aes256gcm_encrypt_afternm, and seal.

4

What can happen if I am using a vulnerable version of Crypt::NaCl::Sodium due to CVE-2026-30909?

Using a vulnerable version can lead to possible integer overflows, increasing the risk of exploits such as denial of service or execution of arbitrary code.

5

Is CVE-2026-30909 present in versions after 2.002 of Crypt::NaCl::Sodium?

No, CVE-2026-30909 is not present in versions of Crypt::NaCl::Sodium after 2.002.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203