{"id":"CVE-2026-2588","summary":"Crypt::NaCl::Sodium versions through 2.001 for Perl has an integer overflow flaw on 32-bit systems","details":"Crypt::NaCl::Sodium versions through 2.001 for Perl has an integer overflow flaw on 32-bit systems.\n\nSodium.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.","modified":"2026-08-12T03:51:46.726388989Z","published":"2026-02-22T23:31:19.720Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/2xxx/CVE-2026-2588.json","cna_assigner":"CPANSec","cwe_ids":["CWE-190"]},"references":[{"type":"WEB","url":"https://cpan.org/modules"},{"type":"WEB","url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.001/source/Sodium.xs#L2119"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/2xxx/CVE-2026-2588.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-2588"},{"type":"FIX","url":"https://github.com/cpan-authors/crypt-nacl-sodium/commit/557388bdb4da416a56663cda0154b80cd524395c.patch"},{"type":"FIX","url":"https://github.com/cpan-authors/crypt-nacl-sodium/commit/8cf7f66ba922443e131c9deae1ee00fafe4f62e4.patch"},{"type":"PACKAGE","url":"https://github.com/cpan-authors/crypt-nacl-sodium"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cpan-authors/crypt-nacl-sodium","events":[{"introduced":"0"},{"fixed":"557388bdb4da416a56663cda0154b80cd524395c"},{"fixed":"8cf7f66ba922443e131c9deae1ee00fafe4f62e4"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:timlegge:crypt\\:\\:nacl\\:\\:sodium:*:*:*:*:*:perl:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"2.001"}]}}],"versions":["2.001","2.000","v1.0.8.0","v1.0.7.0","v1.0.6.1","v1.0.6.0","v0.09","v0.08","v0.07","v0.06","v0.05","v0.04","v0.03","v0.02","v0.01"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-2588.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"}]}