{"id":"CVE-2026-2588","state":"PUBLISHED","title":"Crypt::NaCl::Sodium versions through 2.001 for Perl has an integer overflow flaw on 32-bit systems","description":"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.","publishedAt":"2026-02-22T23:31:19.720Z","updatedAt":"2026-02-23T18:47:51.202Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["TIMLEGGE Crypt::NaCl::Sodium"],"affected":[{"vendor":"TIMLEGGE","product":"Crypt::NaCl::Sodium","packageName":"Crypt-NaCl-Sodium","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.001","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["Sodium.xs"],"repo":"https://github.com/cpan-authors/crypt-nacl-sodium"}],"references":["https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.001/source/Sodium.xs#L2119","https://github.com/cpan-authors/crypt-nacl-sodium/commit/8cf7f66ba922443e131c9deae1ee00fafe4f62e4.patch","https://github.com/cpan-authors/crypt-nacl-sodium/commit/557388bdb4da416a56663cda0154b80cd524395c.patch"],"weaknesses":["CWE-190"],"ingestedAt":"2026-10-29T20:11:31.369Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/2xxx/CVE-2026-2588.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-2588","state":"PUBLISHED","datePublished":"2026-02-22T23:31:19.720Z","dateUpdated":"2026-02-23T18:47:51.202Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-02-16T14:52:54.157Z"},"containers":{"cna":{"title":"Crypt::NaCl::Sodium versions through 2.001 for Perl has an integer overflow flaw on 32-bit systems","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"TIMLEGGE","product":"Crypt::NaCl::Sodium","packageName":"Crypt-NaCl-Sodium","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.001","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["Sodium.xs"],"repo":"https://github.com/cpan-authors/crypt-nacl-sodium"}],"references":[{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.001/source/Sodium.xs#L2119","tags":["related"]},{"url":"https://github.com/cpan-authors/crypt-nacl-sodium/commit/8cf7f66ba922443e131c9deae1ee00fafe4f62e4.patch","tags":["patch"]},{"url":"https://github.com/cpan-authors/crypt-nacl-sodium/commit/557388bdb4da416a56663cda0154b80cd524395c.patch","tags":["patch"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","description":"CWE-190 Integer Overflow or Wraparound","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-02-22T23:31:19.720Z"},"credits":[{"lang":"en","type":"finder","value":"Timothy Legge (timlegge)"}],"solutions":[{"lang":"en","value":"Upgrade to version 2.002"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.1,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-02-23T18:46:11.334461Z","id":"CVE-2026-2588","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-23T18:47:51.202Z"}}]}}}