{"id":"CVE-2026-30909","aliases":["CVE-2026-30909"],"related":[],"kind":"vulnerability","state":"published","title":"Crypt::NaCl::Sodium versions through 2.002 for Perl has potential integer overflows","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"es","text":"Las versiones de Crypt::NaCl::Sodium hasta la 2.002 para Perl tienen posibles desbordamientos de enteros.\n\nLas funciones bin2hex, encrypt, aes256gcm_encrypt_afternm y seal no verifican que el tamaño de salida sea menor que SIZE_MAX, lo que podría llevar a un desbordamiento circular de enteros causando un búfer de salida de tamaño insuficiente.\n\nEs poco probable encontrar este problema, ya que la longitud del mensaje tendría que ser muy grande.\n\nPara bin2hex() la longitud bin_len tendría que ser &gt; SIZE_MAX / 2\nPara encrypt() la longitud msg_len tendría que ser &gt; SIZE_MAX - 16U\nPara aes256gcm_encrypt_afternm() la longitud msg_len tendría que ser &gt; SIZE_MAX - 16U\nPara seal() la longitud enc_len tendría que ser &gt; SIZE_MAX - 64U","source":"nvd"}],"published":"2026-03-08T00:46:12.862Z","modified":"2026-06-17T10:33:07.807Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"2.002","status":"affected"}],"vendor":"TIMLEGGE","product":"Crypt::NaCl::Sodium","package":"Crypt-NaCl-Sodium","repo":"https://github.com/cpan-authors/crypt-nacl-sodium","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2.003"}],"vendor":"timlegge","product":"crypt::nacl::sodium","cpe":"cpe:2.3:a:timlegge:crypt\\:\\:nacl\\:\\:sodium:*:*:*:*:*:perl:*:*","source":"nvd"}],"references":[{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L2116","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L2310","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L3304","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L942","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cpan-authors/crypt-nacl-sodium/pull/24.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.003/source/Changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/03/08/1","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Brad Barden <perlmodules@5c30.org>"],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-03-10T13:40:18.499Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-30909","url":"https://www.cve.org/CVERecord?id=CVE-2026-30909","licence":"CVE Terms of Use","modified":"2026-03-10T13:41:14.273Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-30909","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30909","licence":"Public domain","modified":"2026-06-17T10:33:07.807Z"}],"updatedAt":"2026-11-25T22:59:15.494Z","epss":{"score":0.00588,"percentile":0.49495,"date":"2026-12-01T12:00:22.000Z"}}