CVE-2026-30909 json
Crypt::NaCl::Sodium versions through 2.002 for Perl has potential integer overflows
published 8mo ago modified 4mo ago also EUVD-2026-10199
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
Crypt::NaCl::Sodium versions through 2.002 for Perl has potential integer overflows.
bin2hex, encrypt, aes256gcm_encrypt_afternm and seal functions do not check that output size will be less than SIZE_MAX, 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 bin_len would have to be > SIZE_MAX / 2 For encrypt() the msg_len would need to be > SIZE_MAX - 16U For aes256gcm_encrypt_afternm() the msg_len would need to be > SIZE_MAX - 16U For seal() the enc_len would need to be > SIZE_MAX - 64U
Patch / fix
- timlegge crypt-nacl-sodium 2.003
- timlegge crypt::nacl::sodium 2.003
- github.com/cpan-authors/crypt-nacl-sodium#24 pull request
Is CVE-2026-30909 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 7mo ago
Exploit prediction
0.59% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected products
- TIMLEGGE Crypt::NaCl::Sodium
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/cpan-authors/crypt-nacl-sodium/pull/24.patch
patch
-
metacpan.org
/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L2116
product
-
metacpan.org
/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L2310
product
-
metacpan.org
/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L3304
product
-
metacpan.org
/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L942
product
-
metacpan.org
/release/TIMLEGGE/Crypt-NaCl-Sodium-2.003/source/Changes
release-notes
-
openwall.com
/lists/oss-security/2026/03/08/1
mailing-list, third-party-advisory
Sources
- CVE List CVE-2026-30909
- NVD CVE-2026-30909
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.