CVE-2026-2588 PUBLISHED

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

Assigner: CPANSec
Reserved: 16.02.2026 Published: 22.02.2026 Updated: 22.02.2026

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.

Product Status

Vendor TIMLEGGE
Product Crypt::NaCl::Sodium
Versions Default: unaffected
  • affected from 0 to 2.001 (incl.)

Solutions

Upgrade to version 2.002

Credits

  • Timothy Legge (timlegge) finder

References

Problem Types

  • CWE-190 Integer Overflow or Wraparound CWE