CVE Explorer
CVE-2026-30909
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 aes256
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"Crypt-NaCl-Sodium","product":"Crypt::NaCl::Sodium","programFiles":["Sodium.xs"],"repo":"https://github.com/cpan-authors/crypt-nacl-sodium","vendor":"TIMLEGGE","versions":[{"lessThanOrEqual":"2.002","status":"affected","version":"0","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:60bb0628804a9fe9951ad3c539343919602368a938fb45284c4ea6e5236b0d15 · sha256:e5613c25ffe712fd… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:60bb0628804a9fe9951ad3c539343919602368a938fb45284c4ea6e5236b0d15 · sha256:e5613c25ffe712fd… · /containers/adp/1/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-190","description":"CWE-190 Integer Overflow or Wraparound","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:60bb0628804a9fe9951ad3c539343919602368a938fb45284c4ea6e5236b0d15 · sha256:e5613c25ffe712fd… · /containers/cna/problemTypes/0/descriptions/0
Source references
7 source assertions{"url":"http://www.openwall.com/lists/oss-security/2026/03/08/1"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:60bb0628804a9fe9951ad3c539343919602368a938fb45284c4ea6e5236b0d15 · sha256:e5613c25ffe712fd… · /containers/adp/0/references/0
{"tags":["patch"],"url":"https://github.com/cpan-authors/crypt-nacl-sodium/pull/24.patch"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:60bb0628804a9fe9951ad3c539343919602368a938fb45284c4ea6e5236b0d15 · sha256:e5613c25ffe712fd… · /containers/cna/references/4
{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L2116"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:60bb0628804a9fe9951ad3c539343919602368a938fb45284c4ea6e5236b0d15 · sha256:e5613c25ffe712fd… · /containers/cna/references/0
{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L2310"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:60bb0628804a9fe9951ad3c539343919602368a938fb45284c4ea6e5236b0d15 · sha256:e5613c25ffe712fd… · /containers/cna/references/1
{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L3304"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:60bb0628804a9fe9951ad3c539343919602368a938fb45284c4ea6e5236b0d15 · sha256:e5613c25ffe712fd… · /containers/cna/references/2
{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.002/source/Sodium.xs#L942"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:60bb0628804a9fe9951ad3c539343919602368a938fb45284c4ea6e5236b0d15 · sha256:e5613c25ffe712fd… · /containers/cna/references/3
{"tags":["release-notes"],"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.003/source/Changes"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:60bb0628804a9fe9951ad3c539343919602368a938fb45284c4ea6e5236b0d15 · sha256:e5613c25ffe712fd… · /containers/cna/references/5
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.