RUSTSEC-2026-0216High· 7.5▾ TwilightRemote Denial of Service via malformed NIP‑44 v2 payload
▾ Twilight zone — High severity, or a signal on a lesser flaw
impact 41.3 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
The NIP-44 v2 decryption path in the nostr crate contains a reachable panic
when processing a short or empty ciphertext. After the HMAC check passes and the
ciphertext is decrypted via ChaCha20, the code reads a 2‑byte unpadded‑length
prefix via buffer[0..2] without first verifying that the decrypted buffer
contains at least 2 bytes. A malicious sender who holds the symmetric
conversation key (e.g., a direct‑message sender) can craft a payload that
produces a 0 or 1‑byte decrypted buffer, causing an index‑out‑of‑bounds panic.
This can be triggered remotely through any relay that delivers the crafted
event to the victim's client, resulting in a denial of service. No key material,
plaintext, or memory corruption occurs.
The vulnerability is present in all versions from 0.26.0 up to 0.44.4
(inclusive) and in the alpha releases 0.45.0‑alpha.1 through 0.45.0‑alpha.4.
Versions 0.44.5 and 0.45.0‑alpha.5 contain the fix.
Discovered and responsibly disclosed by Muhammed Shekho ([email protected], mhd-shekho.com).
nostr >= 0.45.0-alpha.1, < 0.45.0-alpha.5Upgrade to a patched release:
nostr 0.45.0-alpha.5Connected by shared product, vendor, weakness, or advisory.
RUSTSEC-2026-0230High· 7.5Empty NIP-50 search filters can panic
RUSTSEC-2026-0229High· 7.5NIP-98 authorization parsing permits resource exhaustion
RUSTSEC-2026-0228Medium· 4.3NIP-04 parsing amplifies malformed ciphertext memory use
RUSTSEC-2026-0227High· 7.5NIP-44 v2 decryption permits resource exhaustion
RUSTSEC-2026-0226High· 7.5Wallet event parsers accept unauthenticated events
RUSTSEC-2026-0225Medium· 5.5Debug output exposes NIP-46 and NIP-60 credentials