mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 10:24:32 -06:00
Update gh-pages
This commit is contained in:
@@ -3105,256 +3105,5 @@ enum_map! { IntentionallyWrong => 42 };
|
||||
license.
|
||||
|
||||
|
||||
</p>
|
||||
</article></content></entry><entry><title>RUSTSEC-2026-0216: Vulnerability in nostr</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0216.html</id><updated>2026-08-01T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0216.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0216: Vulnerability in nostr"/><published>2026-07-27T12:00:00+00:00</published><summary xml:lang="en">Remote Denial of Service via malformed NIP‑44 v2 payload</summary><content xml:lang="en" type="html"> <article>
|
||||
|
||||
<span class="floating-menu">
|
||||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/nostr/RUSTSEC-2026-0216.md">History</a> ⋅
|
||||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nostr/RUSTSEC-2026-0216.md">Edit</a> ⋅
|
||||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0216">JSON (OSV)</a>
|
||||
</span>
|
||||
|
||||
|
||||
<header>
|
||||
<h1>
|
||||
|
||||
RUSTSEC-2026-0216
|
||||
|
||||
</h1>
|
||||
<span class="subtitle"><p>Remote Denial of Service via malformed NIP‑44 v2 payload</p>
|
||||
</span>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt id="reported">Reported</dt>
|
||||
<dd>
|
||||
<time datetime="2026-07-25">
|
||||
July 25, 2026
|
||||
</time>
|
||||
</dd>
|
||||
|
||||
<dt id="issued">Issued</dt>
|
||||
<dd>
|
||||
<time datetime="2026-07-27">
|
||||
July 27, 2026
|
||||
</time>
|
||||
|
||||
<time datetime="2026-08-01">
|
||||
(last modified: August 1, 2026)
|
||||
</time>
|
||||
|
||||
</dd>
|
||||
|
||||
<dt id="package">Package</dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a href="/packages/nostr.html">nostr</a>
|
||||
|
||||
(<a href="https://crates.io/crates/nostr">crates.io</a>)
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
|
||||
<dt id="type">Type</dt>
|
||||
<dd>
|
||||
|
||||
Vulnerability
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
<dt id="categories">Categories</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li><a href="/categories/denial-of-service.html">denial-of-service</a></li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt id="keywords">Keywords</dt>
|
||||
<dd>
|
||||
|
||||
<a href="/keywords/nostr.html">#nostr</a>
|
||||
|
||||
<a href="/keywords/nip-44.html">#nip-44</a>
|
||||
|
||||
<a href="/keywords/panic.html">#panic</a>
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt id="aliases">Aliases</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
|
||||
<a href="https://github.com/advisories/GHSA-hrqp-8w79-gwgw">GHSA-hrqp-8w79-gwgw</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt id="details">References</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="https://github.com/nostrdevkit/nostr/commit/73bdd677b872641d57a2ebcc5afc23ee0e5f0d2d">
|
||||
https://github.com/nostrdevkit/nostr/commit/73bdd677b872641d57a2ebcc5afc23ee0e5f0d2d
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dt id="cvss_score">CVSS Score</dt>
|
||||
<dd>7.5 <span class="tag high">
|
||||
HIGH
|
||||
</span></dd>
|
||||
|
||||
<dt id="cvss_details">CVSS Details</dt>
|
||||
<dd>
|
||||
<dl>
|
||||
|
||||
<dt>Attack Vector</dt>
|
||||
<dd>Network</dd>
|
||||
|
||||
<dt>Attack Complexity</dt>
|
||||
<dd>Low</dd>
|
||||
|
||||
<dt>Privileges Required</dt>
|
||||
<dd>None</dd>
|
||||
|
||||
<dt>User Interaction</dt>
|
||||
<dd>None</dd>
|
||||
|
||||
<dt>Scope</dt>
|
||||
<dd>Unchanged</dd>
|
||||
|
||||
<dt>Confidentiality Impact</dt>
|
||||
<dd>None</dd>
|
||||
|
||||
<dt>Integrity Impact</dt>
|
||||
<dd>None</dd>
|
||||
|
||||
<dt>Availability Impact</dt>
|
||||
<dd>High</dd>
|
||||
|
||||
</dl>
|
||||
</dd>
|
||||
|
||||
<dt id="cvss">CVSS Vector</dt>
|
||||
|
||||
|
||||
<dd><a href="https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H</a></dd>
|
||||
|
||||
|
||||
|
||||
|
||||
<dt id="patched">Patched</dt>
|
||||
<dd>
|
||||
|
||||
<ul>
|
||||
|
||||
<li><code>&#62;=0.44.5, &#60;0.45.0-alpha.1</code></li>
|
||||
|
||||
<li><code>&#62;=0.45.0-alpha.5</code></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Affected Functions</dt>
|
||||
<dd>Version</dd>
|
||||
|
||||
<dt><code>nostr::nips::nip44::decrypt</code></dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li><code>&#62;=0.26.0, &#60;0.44.5</code></li>
|
||||
|
||||
<li><code>&#62;=0.45.0-alpha.1, &#60;0.45.0-alpha.5</code></li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
<dt><code>nostr::nips::nip44::decrypt_to_bytes</code></dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li><code>&#62;=0.26.0, &#60;0.44.5</code></li>
|
||||
|
||||
<li><code>&#62;=0.45.0-alpha.1, &#60;0.45.0-alpha.5</code></li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
<dt><code>nostr::nips::nip44::v2::decrypt_to_bytes</code></dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li><code>&#62;=0.26.0, &#60;0.44.5</code></li>
|
||||
|
||||
<li><code>&#62;=0.45.0-alpha.1, &#60;0.45.0-alpha.5</code></li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
<h3 id="description">Description</h3>
|
||||
<p>The NIP-44 v2 decryption path in the <code>nostr</code> 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 <code>buffer[0..2]</code> 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.</p>
|
||||
<p>The vulnerability is present in all versions from <code>0.26.0</code> up to <code>0.44.4</code>
|
||||
(inclusive) and in the alpha releases <code>0.45.0‑alpha.1</code> through <code>0.45.0‑alpha.4</code>.
|
||||
Versions <code>0.44.5</code> and <code>0.45.0‑alpha.5</code> contain the fix.</p>
|
||||
<h2>Credit</h2>
|
||||
<p>Discovered and responsibly disclosed by <strong>Muhammed Shekho</strong> (<a href="https://mhd-shekho.com">mhd-shekho.com</a>).</p>
|
||||
|
||||
|
||||
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
||||
license.
|
||||
|
||||
|
||||
</p>
|
||||
</article></content></entry></feed>
|
||||
+2
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user