{"id":"CVE-2026-30909","published":"2026-03-08T00:46:12Z","modified":"2026-03-10T13:41:14Z","title":"Crypt::NaCl::Sodium versions through 2.002 for Perl has potential integer overflows","vendor":"TIMLEGGE","product":"Crypt::NaCl::Sodium","tier":"tail","description":{"text":"Crypt::NaCl::Sodium versions through 2.002 for Perl has potential integer overflows.\n\nbin2hex, 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.\n\nEncountering this issue is unlikely as the message length would need to be very large.\n\nFor 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","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00588,"percentile":0.49048,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L2116","tags":[]},{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L2310","tags":[]},{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L3304","tags":[]},{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L942","tags":[]},{"url":"https://github.com/cpan-authors/crypt-nacl-sodium/pull/24.patch","tags":["patch"]},{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.003/source/Changes","tags":["release-notes"]},{"url":"http://www.openwall.com/lists/oss-security/2026/03/08/1","tags":[]}],"priority":{"score":16.7,"factors":[{"name":"EPSS percentile","points":9.81},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"timlegge","affectedVersions":[{"vendor":"TIMLEGGE","product":"Crypt::NaCl::Sodium","versions":["<= 2.002"]}],"solutions":{"items":["Upgrade to version 2.003"],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-03-10T13:40:18.499636Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-10199","exploited":false,"provenance":"source"}}