PYSEC-2025-89

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/cashu/PYSEC-2025-89.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2025-89
Aliases
Published
2025-12-08T19:15:50Z
Modified
2026-05-20T09:18:54Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

PyPI / cashu

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.18.0

Affected versions

0.*
0.1
0.1.1
0.1.2
0.1.3
0.1.4
0.1.5
0.1.6
0.1.7
0.1.8
0.1.9
0.1.10
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.3.0
0.3.1
0.3.2
0.4.0
0.4.1
0.4.2
0.5.0
0.5.1
0.5.3
0.5.4
0.5.5
0.6.0
0.7.0
0.8
0.8.1
0.8.2
0.8.3
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
0.10.0
0.11.0
0.12.0
0.12.1
0.12.3
0.13.0
0.14.0
0.14.1
0.15.0
0.15.1
0.15.2
0.15.3
0.16.0
0.16.1
0.16.2
0.16.3
0.16.4
0.16.5
0.17.0

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/cashu/PYSEC-2025-89.yaml"