# CVE-2026-2588: Crypt::NaCl::Sodium versions through 2.001 for Perl has an integer overflow flaw on 32-bit systems

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-02-22T23:31:19.720Z
- Modified: 2026-06-17T10:31:21.813Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

Crypt::NaCl::Sodium versions through 2.001 for Perl has an integer overflow flaw on 32-bit systems.

Sodium.xs casts a STRLEN (size_t) to unsigned long long when passing a length pointer to libsodium functions.  On 32-bit systems size_t is typically 32-bits while an unsigned long long is at least 64-bits.

(As written by CVE List.)

## Affected

- Crypt-NaCl-Sodium: up to 2.001
- timlegge crypt::nacl::sodium: up to 2.001

## References

- <https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.001/source/Sodium.xs#L2119> (product, related, release-notes)
- <https://github.com/cpan-authors/crypt-nacl-sodium/commit/8cf7f66ba922443e131c9deae1ee00fafe4f62e4.patch> (patch)
- <https://github.com/cpan-authors/crypt-nacl-sodium/commit/557388bdb4da416a56663cda0154b80cd524395c.patch> (patch)

## Sources

- CVE List: [CVE-2026-2588](https://www.cve.org/CVERecord?id=CVE-2026-2588), CVE Terms of Use, modified 2026-02-23
- NVD: [CVE-2026-2588](https://nvd.nist.gov/vuln/detail/CVE-2026-2588), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-2588 · Whole record: https://cve.day/CVE-2026-2588.json · Rebuilt by cve.day 2026-11-25T22:59:14.638Z
