Advisory

PYSEC-2025-89

Also known as: CVE-2025-65548

Summary

The record has no summary.

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.

Severity

Critical Basis: CVSS v3 score 9.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Dates

Published
2025-12-08 19:15 UTC
Modified
2026-05-20 09:18 UTC

Affected packages and fixes

cashu

PyPI · All systems

Affected

  • introduced 0, fixed 0.18.0 (ecosystem)

Fixed versions

0.18.0

Fix

  • Fixed version 0.18.0
    pip install --upgrade cashu==0.18.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences