🛡️ RUSTSEC-2026-0227 — nostr

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

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

crates.io (Package)
rustsec.org (Advisory)
github.com (Web)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2026-08-01
Updated 2026-08-12
Modified 2026-08-02
Fix URL N/A

Affected Packages

Software From version Fixed in
nostr

Similar Threats

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.

Browse related advisories

All advisoriesRustsecRustsec 2026