Critical, CVSS 9.1PyPIPublished
PYSEC-2025-89
CVE-2025-65548
- Affected
- PyPI cashu < 0.18.0
- Fixed in
- 0.18.0· Vendor fix available
- Issue
- NUT-14 allows cashu tokens to be created with a preimage hash. However, nutshell (cashubtc/nuts) before 0.18.0 do not validate the size of preimage when the token is spent. The preimage is stored by the mint and attacker can exploit this vulnerability to fill the mint's db nd disk with arbitrary data.
Recommended action: Upgrade to 0.18.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.