🛡️ RUSTSEC-2026-0227 — nostr
Description
NIP-44 v2 decryption permits resource exhaustion
The NIP-44 decryption entry point Base64-decoded the complete attacker-controlled
payload before determining its version or enforcing any size limit. For v2 payloads,
the decoded buffer was then authenticated with HMAC even when it was much larger than
the maximum payload supported by the crate's current v2 codec.
A malicious relay or event author could deliver an oversized value to an application
that decrypts NIP-44 content. The value caused memory allocation and Base64 and HMAC
work proportional to its size before authentication failed; knowledge of the
conversation key was not required to consume those initial resources. Repeated
payloads could exhaust memory or CPU and make the receiving application unavailable.
The issue does not disclose plaintext or key material and does not bypass message
authentication.
Decryption now reads only the encoded version prefix first, derives the bound from
the largest payload the current v2 encoder can emit, and rejects oversized encoded
and decoded payloads before full allocation or HMAC processing. The limit remains in
the v2 implementation so a future codec with a different length format can define its
own bound.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.
Affected software
RUSTSEC-2026-0227 is recorded against 1 package.
- nostr
Timeline and source
Published on 1 August 2026 and last revised on 2 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| nostr | — | — |
References
Similar Threats
- Unknown RUSTSEC-2026-0237
- Unknown RUSTSEC-2026-0241
- Unknown RUSTSEC-2026-0243
- Unknown RUSTSEC-2026-0224
- Unknown RUSTSEC-2026-0225
Free Vulnerability Check
Is your site affected by RUSTSEC-2026-0227?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against RUSTSEC-2026-0227 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.