CVE-2026-2588: TIMLEGGE Crypt::NaCl::Sodium · Integer Overflow or Wraparound
Affects TIMLEGGE Crypt::NaCl::SodiumSource CVE Database V5
Not known to be exploited · CVSS 9.1 Critical.
Data as of 30 Oct 2026, 06:59 UTC
Contested
Critical score, yet low EPSS after six months- EPSS
- 0.3% chance of exploitation in 30 days – higher than 33% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 22 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| TIMLEGGECrypt::NaCl::Sodium | Affected
| Fixed in– |
GitHubCrypt-NaCl-Sodiumpkg:github/Crypt-NaCl-SodiumOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediately audit all systems running Crypt::NaCl::Sodium on 32-bit architectures to identify vulnerable versions.
- 3. Implement strict input validation and length checks in any custom code interfacing with libsodium to prevent overflow conditions. 4. Where feasible, migrate affected systems from 32-bit to 64-bit architectures to avoid the underlying type size mismatch. 5. Employ runtime protections such as memory safety tools (e.g., AddressSanitizer) during development and testing to detect overflow issues early. 6. Monitor network traffic and logs for anomalous behavior that could indicate exploitation attempts targeting cryptographic functions. 7. Educate developers and security teams about the risks of improper type casting in cross-language bindings and the importance of architecture-aware coding practices. 8. Consider isolating or sandboxing applications using this module to limit potential damage from exploitation.
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.
References
- metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.001/source/Sodium.xs (opens in a new tab)
- github.com/cpan-authors/crypt-nacl-sodium/commit/8cf7f66ba922443e131c9deae1ee00fafe4f62e4.patch (opens in a new tab)
- github.com/cpan-authors/crypt-nacl-sodium/commit/557388bdb4da416a56663cda0154b80cd524395c.patch (opens in a new tab)