mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 10:34:31 -06:00
3109 lines
104 KiB
XML
3109 lines
104 KiB
XML
<?xml version="1.0"?>
|
||
<feed xmlns="http://www.w3.org/2005/Atom"><title>RustSec Advisories</title><id>https://rustsec.org/feed.xml</id><updated>2026-08-02T12:00:00+00:00</updated><author><name>RustSec</name></author><icon>https://rustsec.org/favicon.ico</icon><link href="https://rustsec.org/feed.xml" rel="self" type="application/atom+xml"/><link href="https://rustsec.org/" rel="alternate" type="text/html"/><subtitle xml:lang="en">Security advisories filed against Rust crates</subtitle><entry><title>RUSTSEC-2026-0226: Vulnerability in nostr</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0226.html</id><updated>2026-08-02T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0226.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0226: Vulnerability in nostr"/><published>2026-08-02T12:00:00+00:00</published><summary xml:lang="en">Wallet event parsers accept unauthenticated events</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-0226.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nostr/RUSTSEC-2026-0226.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0226">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0226
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Wallet event parsers accept unauthenticated events</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-08-01">
|
||
August 1, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-08-02">
|
||
August 2, 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/crypto-failure.html">crypto-failure</a></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="keywords">Keywords</dt>
|
||
<dd>
|
||
|
||
<a href="/keywords/nostr.html">#nostr</a>
|
||
|
||
<a href="/keywords/nip47.html">#nip47</a>
|
||
|
||
<a href="/keywords/nip60.html">#nip60</a>
|
||
|
||
<a href="/keywords/wallet.html">#wallet</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
|
||
<li>
|
||
<a href="https://github.com/nostrdevkit/nostr/commit/2b6d6227cd884c1acb200bffa66a3f402b02a176">
|
||
https://github.com/nostrdevkit/nostr/commit/2b6d6227cd884c1acb200bffa66a3f402b02a176
|
||
</a>
|
||
</li>
|
||
|
||
<li>
|
||
<a href="https://github.com/nostrdevkit/nostr/commit/0b78464e39604b0f052862035f47fdabc2a536dd">
|
||
https://github.com/nostrdevkit/nostr/commit/0b78464e39604b0f052862035f47fdabc2a536dd
|
||
</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>High</dd>
|
||
|
||
<dt>Availability Impact</dt>
|
||
<dd>None</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:H/A:N">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N</a></dd>
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=0.44.7</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>The NIP-47 response and notification parsers and the NIP-60 wallet event parsers
|
||
decrypted relay-provided events before verifying their kind, computed event ID,
|
||
signature, and expected wallet public key. The decryption peer was derived from the
|
||
untrusted event author, so successful decryption did not prove that the configured
|
||
wallet created the event.</p>
|
||
<p>An attacker can sign an event with their own key and derive the corresponding shared
|
||
secret with the victim's public key. A malicious relay delivering that event could
|
||
therefore cause attacker-chosen encrypted content to be parsed as a response,
|
||
notification, token, spending record, or quote from the configured wallet. This can
|
||
corrupt wallet state or cause an application to act on forged wallet data. The issue
|
||
does not expose the victim's private key or decrypt events authored by the legitimate
|
||
wallet.</p>
|
||
<p>The affected parsers now verify the event kind, ID, signature, and exact configured
|
||
wallet author before attempting decryption or parsing the plaintext.</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><entry><title>RUSTSEC-2026-0229: Vulnerability in nostr</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0229.html</id><updated>2026-08-02T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0229.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0229: Vulnerability in nostr"/><published>2026-08-02T12:00:00+00:00</published><summary xml:lang="en">NIP-98 authorization parsing permits resource exhaustion</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-0229.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nostr/RUSTSEC-2026-0229.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0229">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0229
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>NIP-98 authorization parsing permits resource exhaustion</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-08-01">
|
||
August 1, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-08-02">
|
||
August 2, 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/nip98.html">#nip98</a>
|
||
|
||
<a href="/keywords/authorization.html">#authorization</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
|
||
<li>
|
||
<a href="https://github.com/nostrdevkit/nostr/commit/fd69825a3aa83c4a99f0d620fafba66c765db96b">
|
||
https://github.com/nostrdevkit/nostr/commit/fd69825a3aa83c4a99f0d620fafba66c765db96b
|
||
</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.7</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>The NIP-98 HTTP authorization parser Base64-decoded the complete authorization value
|
||
and parsed the resulting JSON event without applying an application-level size limit.
|
||
Both operations occurred before the event's signature and authorization fields could
|
||
be validated.</p>
|
||
<p>An unauthenticated remote client could send an oversized <code>Authorization: Nostr</code>
|
||
header to a server using this parser. Each request caused memory allocation and
|
||
decoding and JSON parsing work proportional to the supplied value, allowing repeated
|
||
requests to consume server memory and CPU. The impact depends on any lower HTTP header
|
||
limit already enforced by the hosting server. The issue does not bypass NIP-98
|
||
authentication or disclose protected data.</p>
|
||
<p>The parser now rejects oversized encoded input before Base64 allocation and rejects
|
||
decoded authorization events larger than 64 KiB before JSON parsing.</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><entry><title>RUSTSEC-2026-0228: Vulnerability in nostr</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0228.html</id><updated>2026-08-02T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0228.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0228: Vulnerability in nostr"/><published>2026-08-02T12:00:00+00:00</published><summary xml:lang="en">NIP-04 parsing amplifies malformed ciphertext memory use</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-0228.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nostr/RUSTSEC-2026-0228.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0228">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0228
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>NIP-04 parsing amplifies malformed ciphertext memory use</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-08-01">
|
||
August 1, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-08-02">
|
||
August 2, 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/nip04.html">#nip04</a>
|
||
|
||
<a href="/keywords/decryption.html">#decryption</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
|
||
<li>
|
||
<a href="https://github.com/nostrdevkit/nostr/commit/25e4e9ce66a533d9d7f5071f6c1dae992476cf83">
|
||
https://github.com/nostrdevkit/nostr/commit/25e4e9ce66a533d9d7f5071f6c1dae992476cf83
|
||
</a>
|
||
</li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="cvss_score">CVSS Score</dt>
|
||
<dd>4.3 <span class="tag medium">
|
||
MEDIUM
|
||
</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>Required</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>Low</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:R/S:U/C:N/I:N/A:L">CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L</a></dd>
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=0.44.7</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>The NIP-04 decryption parser split attacker-controlled content on every <code>?iv=</code>
|
||
separator and collected all resulting segments before checking that the message had
|
||
the expected two parts. It also Base64-decoded the complete IV text before checking
|
||
that it represented the required 16-byte AES-CBC IV.</p>
|
||
<p>A malicious sender could include a large number of separators or an oversized IV in
|
||
an encrypted direct message. Applications that attempted to decrypt the message
|
||
performed avoidable allocations proportional to the malformed input, with additional
|
||
allocation amplification from the segment vector and Base64 output. This can consume
|
||
memory and CPU in clients processing messages received through a relay. It does not
|
||
weaken NIP-04 encryption or reveal plaintext or key material.</p>
|
||
<p>The parser now uses a single bounded split, rejects additional separators, and
|
||
validates the 24-byte encoded IV length before Base64 decoding. Malformed inputs are
|
||
returned as errors without allocating for every separator or decoding an arbitrarily
|
||
large IV.</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><entry><title>RUSTSEC-2026-0230: Vulnerability in nostr</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0230.html</id><updated>2026-08-02T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0230.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0230: Vulnerability in nostr"/><published>2026-08-02T12:00:00+00:00</published><summary xml:lang="en">Empty NIP-50 search filters can panic</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-0230.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nostr/RUSTSEC-2026-0230.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0230">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0230
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Empty NIP-50 search filters can panic</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-08-01">
|
||
August 1, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-08-02">
|
||
August 2, 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/nip50.html">#nip50</a>
|
||
|
||
<a href="/keywords/panic.html">#panic</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
|
||
<li>
|
||
<a href="https://github.com/nostrdevkit/nostr/commit/29182657bc54ac18564597e4414f08c3e4e9aa0a">
|
||
https://github.com/nostrdevkit/nostr/commit/29182657bc54ac18564597e4414f08c3e4e9aa0a
|
||
</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.7</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>The NIP-50 event-matching path searched event content with
|
||
<code>slice::windows(search.len())</code>. An empty search string therefore called
|
||
<code>slice::windows(0)</code>, which always panics instead of returning a match result.</p>
|
||
<p>A remote client able to submit filters to an application using this matcher could
|
||
trigger the panic with an empty NIP-50 search value. This includes clients querying an
|
||
SDK local relay. Depending on the application's panic configuration and task
|
||
isolation, the crafted filter could terminate request processing, a runtime worker, or
|
||
the entire process, causing denial of service. No confidentiality or integrity impact
|
||
is known.</p>
|
||
<p>Empty searches are now handled before the substring search, so the matcher returns a
|
||
defined result without constructing a zero-sized window or panicking.</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><entry><title>RUSTSEC-2026-0225: Vulnerability in nostr</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0225.html</id><updated>2026-08-02T12:00:00+00:00</updated><category term="file-disclosure"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0225.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0225: Vulnerability in nostr"/><published>2026-08-02T12:00:00+00:00</published><summary xml:lang="en">Debug output exposes NIP-46 and NIP-60 credentials</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-0225.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nostr/RUSTSEC-2026-0225.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0225">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0225
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Debug output exposes NIP-46 and NIP-60 credentials</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-08-01">
|
||
August 1, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-08-02">
|
||
August 2, 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/file-disclosure.html">file-disclosure</a></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="keywords">Keywords</dt>
|
||
<dd>
|
||
|
||
<a href="/keywords/nostr.html">#nostr</a>
|
||
|
||
<a href="/keywords/nip46.html">#nip46</a>
|
||
|
||
<a href="/keywords/nip60.html">#nip60</a>
|
||
|
||
<a href="/keywords/credentials.html">#credentials</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
|
||
<li>
|
||
<a href="https://github.com/nostrdevkit/nostr/commit/2bc5fa2c270bb87b397d381909053f12ee734d44">
|
||
https://github.com/nostrdevkit/nostr/commit/2bc5fa2c270bb87b397d381909053f12ee734d44
|
||
</a>
|
||
</li>
|
||
|
||
<li>
|
||
<a href="https://github.com/nostrdevkit/nostr/commit/778af7e4930449dcdd7a070774da7b71b282d171">
|
||
https://github.com/nostrdevkit/nostr/commit/778af7e4930449dcdd7a070774da7b71b282d171
|
||
</a>
|
||
</li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="cvss_score">CVSS Score</dt>
|
||
<dd>5.5 <span class="tag medium">
|
||
MEDIUM
|
||
</span></dd>
|
||
|
||
<dt id="cvss_details">CVSS Details</dt>
|
||
<dd>
|
||
<dl>
|
||
|
||
<dt>Attack Vector</dt>
|
||
<dd>Local</dd>
|
||
|
||
<dt>Attack Complexity</dt>
|
||
<dd>Low</dd>
|
||
|
||
<dt>Privileges Required</dt>
|
||
<dd>Low</dd>
|
||
|
||
<dt>User Interaction</dt>
|
||
<dd>None</dd>
|
||
|
||
<dt>Scope</dt>
|
||
<dd>Unchanged</dd>
|
||
|
||
<dt>Confidentiality Impact</dt>
|
||
<dd>High</dd>
|
||
|
||
<dt>Integrity Impact</dt>
|
||
<dd>None</dd>
|
||
|
||
<dt>Availability Impact</dt>
|
||
<dd>None</dd>
|
||
|
||
</dl>
|
||
</dd>
|
||
|
||
<dt id="cvss">CVSS Vector</dt>
|
||
|
||
|
||
<dd><a href="https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N">CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N</a></dd>
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=0.44.7</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>Several NIP-46 and NIP-60 types used derived <code>Debug</code> implementations even though
|
||
their fields contained credentials or decrypted application data. Formatting these
|
||
values exposed NIP-46 connection secrets and request parameters, as well as NIP-60
|
||
private keys, Cashu bearer proofs, and quote capability identifiers.</p>
|
||
<p>Applications commonly include <code>Debug</code> output in diagnostic logs, tracing spans, or
|
||
error reports. Anyone able to read those outputs could recover the disclosed
|
||
credentials and, depending on the value, impersonate a signer connection or spend
|
||
wallet tokens. The issue does not expose data unless an affected value is formatted
|
||
and the resulting output is made accessible.</p>
|
||
<p>The affected types now use custom <code>Debug</code> implementations that preserve variant and
|
||
non-sensitive structural information while replacing credentials, bearer values,
|
||
and plaintext fields with redaction markers. Serialization and protocol behavior are
|
||
unchanged.</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><entry><title>RUSTSEC-2026-0227: Vulnerability in nostr</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0227.html</id><updated>2026-08-02T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0227.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0227: Vulnerability in nostr"/><published>2026-08-02T12:00:00+00:00</published><summary xml:lang="en">NIP-44 v2 decryption permits resource exhaustion</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-0227.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nostr/RUSTSEC-2026-0227.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0227">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0227
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>NIP-44 v2 decryption permits resource exhaustion</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-08-01">
|
||
August 1, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-08-02">
|
||
August 2, 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/nip44.html">#nip44</a>
|
||
|
||
<a href="/keywords/decryption.html">#decryption</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
|
||
<li>
|
||
<a href="https://github.com/nostrdevkit/nostr/commit/89dc1a77eaa774174588c5a38b6324c502948830">
|
||
https://github.com/nostrdevkit/nostr/commit/89dc1a77eaa774174588c5a38b6324c502948830
|
||
</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.7</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>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.</p>
|
||
<p>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.</p>
|
||
<p>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.</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><entry><title>RUSTSEC-2026-0231: Vulnerability in nostr-relay-pool</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0231.html</id><updated>2026-08-02T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0231.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0231: Vulnerability in nostr-relay-pool"/><published>2026-08-02T12:00:00+00:00</published><summary xml:lang="en">Relay authentication challenges can exhaust memory</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/nostr-relay-pool/RUSTSEC-2026-0231.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nostr-relay-pool/RUSTSEC-2026-0231.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0231">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0231
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Relay authentication challenges can exhaust memory</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-08-01">
|
||
August 1, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-08-02">
|
||
August 2, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/nostr-relay-pool.html">nostr-relay-pool</a>
|
||
|
||
(<a href="https://crates.io/crates/nostr-relay-pool">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/authentication.html">#authentication</a>
|
||
|
||
<a href="/keywords/relay.html">#relay</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
|
||
<li>
|
||
<a href="https://github.com/nostrdevkit/nostr/commit/6eb8766caa25f03803f178861be054f3bca718d7">
|
||
https://github.com/nostrdevkit/nostr/commit/6eb8766caa25f03803f178861be054f3bca718d7
|
||
</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.3</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>The SDK forwarded every NIP-42 <code>AUTH</code> challenge received from a relay through an
|
||
unbounded command queue. Challenge handling can wait for an asynchronous signer or
|
||
user interaction, so receiving challenges was substantially faster than completing
|
||
the corresponding authentication work.</p>
|
||
<p>A malicious relay could continuously send new challenges without authenticating or
|
||
delivering valid events. Every value remained queued, causing memory use and pending
|
||
signer operations to grow without a fixed limit until the client became unavailable.
|
||
The issue does not allow the relay to forge a signature or learn the client's private
|
||
key.</p>
|
||
<p>The SDK now coalesces pending challenges through a latest-value channel. NIP-42 makes
|
||
an earlier challenge invalid when the relay sends a new one, so replacing pending
|
||
work preserves the only challenge that can still be answered while keeping memory
|
||
use bounded.</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><entry><title>RUSTSEC-2026-0232: Vulnerability in nostr-relay-pool</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0232.html</id><updated>2026-08-02T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0232.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0232: Vulnerability in nostr-relay-pool"/><published>2026-08-02T12:00:00+00:00</published><summary xml:lang="en">Processing of unverified relay events</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/nostr-relay-pool/RUSTSEC-2026-0232.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nostr-relay-pool/RUSTSEC-2026-0232.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0232">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0232
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Processing of unverified relay events</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-08-01">
|
||
August 1, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-08-02">
|
||
August 2, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/nostr-relay-pool.html">nostr-relay-pool</a>
|
||
|
||
(<a href="https://crates.io/crates/nostr-relay-pool">crates.io</a>)
|
||
|
||
|
||
|
||
</dd>
|
||
|
||
<dt id="type">Type</dt>
|
||
<dd>
|
||
|
||
Vulnerability
|
||
|
||
</dd>
|
||
|
||
|
||
<dt id="categories">Categories</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><a href="/categories/crypto-failure.html">crypto-failure</a></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="keywords">Keywords</dt>
|
||
<dd>
|
||
|
||
<a href="/keywords/nostr.html">#nostr</a>
|
||
|
||
<a href="/keywords/event.html">#event</a>
|
||
|
||
<a href="/keywords/signature.html">#signature</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
|
||
<li>
|
||
<a href="https://github.com/nostrdevkit/nostr/commit/4b67f9b45909d2e35f34c30c084c0ab66e599a9f">
|
||
https://github.com/nostrdevkit/nostr/commit/4b67f9b45909d2e35f34c30c084c0ab66e599a9f
|
||
</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>High</dd>
|
||
|
||
<dt>Availability Impact</dt>
|
||
<dd>None</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:H/A:N">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N</a></dd>
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=0.44.3</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>The processed events received from a relay through admission-policy and database
|
||
paths before verifying that the serialized fields matched the claimed event ID and
|
||
signature. In particular, a database result for the claimed ID could cause
|
||
verification to be skipped. The verification cache also keyed successful checks by a
|
||
64-bit hash instead of the complete event ID.</p>
|
||
<p>A malicious relay could send an event whose claimed ID referred to a known database
|
||
entry while its content, tags, author, or signature differed from that ID. The forged
|
||
event could then reach policy callbacks or other SDK processing as if it were
|
||
authentic. A cache-key collision provided a second path for an unverified event to be
|
||
treated as previously verified. This undermines event integrity but does not reveal
|
||
private keys or enable the attacker to produce a valid signature for the altered
|
||
event.</p>
|
||
<p>The SDK now verifies each event before policy evaluation, database lookup, or
|
||
propagation decisions, and the verification cache stores the complete <code>EventId</code> so a
|
||
truncated hash collision cannot stand in for successful verification.</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><entry><title>RUSTSEC-2026-0224: Vulnerability in nostr-relay-pool</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0224.html</id><updated>2026-08-01T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0224.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0224: Vulnerability in nostr-relay-pool"/><published>2026-08-01T12:00:00+00:00</published><summary xml:lang="en">Verification cache poisoning allows forged Nostr events to bypass signature validation</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/nostr-relay-pool/RUSTSEC-2026-0224.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nostr-relay-pool/RUSTSEC-2026-0224.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0224">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0224
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Verification cache poisoning allows forged Nostr events to bypass signature validation</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-08-01">
|
||
August 1, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-08-01">
|
||
August 1, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/nostr-relay-pool.html">nostr-relay-pool</a>
|
||
|
||
(<a href="https://crates.io/crates/nostr-relay-pool">crates.io</a>)
|
||
|
||
|
||
|
||
</dd>
|
||
|
||
<dt id="type">Type</dt>
|
||
<dd>
|
||
|
||
Vulnerability
|
||
|
||
</dd>
|
||
|
||
|
||
<dt id="categories">Categories</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><a href="/categories/crypto-failure.html">crypto-failure</a></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="keywords">Keywords</dt>
|
||
<dd>
|
||
|
||
<a href="/keywords/cache-poisoning.html">#cache-poisoning</a>
|
||
|
||
<a href="/keywords/signature-verification.html">#signature-verification</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="aliases">Aliases</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
|
||
<a href="https://github.com/advisories/GHSA-f96q-5f6p-v7cj">GHSA-f96q-5f6p-v7cj</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="https://github.com/nostrdevkit/nostr/commit/02a88bd5688de058bfba8aa9fb4612441a384eff">
|
||
https://github.com/nostrdevkit/nostr/commit/02a88bd5688de058bfba8aa9fb4612441a384eff
|
||
</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>High</dd>
|
||
|
||
<dt>Availability Impact</dt>
|
||
<dd>None</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:H/A:N">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N</a></dd>
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=0.44.2</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>The <code>nostr-relay-pool</code> crate cached the result of event signature verification
|
||
before the check was actually performed. Because the entry was inserted
|
||
unconditionally, a first delivery whose signature failed was still recorded
|
||
in the cache. A subsequent delivery of the same event (identical ID,
|
||
but with a forged signature) would then hit the cache, causing signature
|
||
verification to be skipped entirely. The forged event was passed on to
|
||
<code>NostrDatabase::save_event()</code> as if it had been validated.</p>
|
||
<p>Applications that connect to untrusted or compromised Nostr relays and persist
|
||
received events are vulnerable. An attacker can inject arbitrary events
|
||
without a valid signature into the application's trusted database, enabling
|
||
impersonation of any public key or corruption of application state derived from
|
||
stored events.</p>
|
||
<p>The issue does not compromise confidentiality or availability. It solely
|
||
undermines the integrity of stored event data.</p>
|
||
<p>The fix, released in version 0.44.2, moves the cache insertion to occur only
|
||
after a successful signature verification, so that failed attempts never create
|
||
a cache entry.</p>
|
||
<h2>Credit</h2>
|
||
<p>Discovered and reported by <a href="https://github.com/aykoooo">Ali Al-Sorehi</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><entry><title>RUSTSEC-2026-0221: Unsoundness in event-listener</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0221.html</id><updated>2026-07-31T12:00:00+00:00</updated><category term="memory-corruption"/><category term="thread-safety"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0221.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0221: Unsoundness in event-listener"/><published>2026-07-31T12:00:00+00:00</published><summary xml:lang="en">`event-listener` allows `!Send` tags to cross thread boundaries via `StackSlot`</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/event-listener/RUSTSEC-2026-0221.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/event-listener/RUSTSEC-2026-0221.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0221">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0221
|
||
|
||
</h1>
|
||
<span class="subtitle"><p><code>event-listener</code> allows <code>!Send</code> tags to cross thread boundaries via <code>StackSlot</code></p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-07-13">
|
||
July 13, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-07-31">
|
||
July 31, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/event-listener.html">event-listener</a>
|
||
|
||
(<a href="https://crates.io/crates/event-listener">crates.io</a>)
|
||
|
||
|
||
|
||
</dd>
|
||
|
||
<dt id="type">Type</dt>
|
||
<dd>
|
||
|
||
<span class="tag info">INFO</span>
|
||
Unsound
|
||
|
||
</dd>
|
||
|
||
|
||
<dt id="categories">Categories</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
||
|
||
<li><a href="/categories/thread-safety.html">thread-safety</a></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="keywords">Keywords</dt>
|
||
<dd>
|
||
|
||
<a href="/keywords/concurrency.html">#concurrency</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="https://github.com/smol-rs/event-listener/pull/163">
|
||
https://github.com/smol-rs/event-listener/pull/163
|
||
</a>
|
||
</li>
|
||
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=5.4.2</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
<dt id="unaffected">Unaffected</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;5.1.0</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>Affected versions of <code>event-listener</code> unconditionally implement <code>Send</code> and
|
||
<code>Sync</code> for <code>StackSlot&lt;'_, T&gt;</code>, the stack-allocated listener type created
|
||
by the <code>listener!</code> macro.</p>
|
||
<p>This allows a <code>!Send</code> tag type set via <code>Event::with_tag</code> to be moved to
|
||
another thread and accessed via <code>StackSlot::wait</code>, causing a data race in safe
|
||
code.</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><entry><title>RUSTSEC-2026-0222: Vulnerability in wasmtime</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0222.html</id><updated>2026-07-31T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0222.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0222: Vulnerability in wasmtime"/><published>2026-07-31T12:00:00+00:00</published><summary xml:lang="en">Stores can mix up type indices between engines</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/wasmtime/RUSTSEC-2026-0222.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/wasmtime/RUSTSEC-2026-0222.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0222">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0222
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Stores can mix up type indices between engines</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-07-31">
|
||
July 31, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-07-31">
|
||
July 31, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/wasmtime.html">wasmtime</a>
|
||
|
||
(<a href="https://crates.io/crates/wasmtime">crates.io</a>)
|
||
|
||
|
||
|
||
</dd>
|
||
|
||
<dt id="type">Type</dt>
|
||
<dd>
|
||
|
||
Vulnerability
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="aliases">Aliases</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
|
||
<a href="https://github.com/advisories/GHSA-hgjw-h833-99q9">GHSA-hgjw-h833-99q9</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-hgjw-h833-99q9">
|
||
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-hgjw-h833-99q9
|
||
</a>
|
||
</li>
|
||
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="cvss_score">CVSS Score</dt>
|
||
<dd>3.8 <span class="tag low">
|
||
LOW
|
||
</span></dd>
|
||
|
||
<dt id="cvss_details">CVSS Details</dt>
|
||
<dd>
|
||
<dl>
|
||
|
||
<dt>Attack Vector</dt>
|
||
<dd>Local</dd>
|
||
|
||
<dt>Attack Complexity</dt>
|
||
<dd>High</dd>
|
||
|
||
<dt>Privileges Required</dt>
|
||
<dd>High</dd>
|
||
|
||
<dt>User Interaction</dt>
|
||
<dd>Required</dd>
|
||
|
||
<dt>Scope</dt>
|
||
<dd>Unchanged</dd>
|
||
|
||
<dt>Confidentiality Impact</dt>
|
||
<dd>Low</dd>
|
||
|
||
<dt>Integrity Impact</dt>
|
||
<dd>Low</dd>
|
||
|
||
<dt>Availability Impact</dt>
|
||
<dd>Low</dd>
|
||
|
||
</dl>
|
||
</dd>
|
||
|
||
<dt id="cvss">CVSS Vector</dt>
|
||
|
||
|
||
<dd><a href="https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L">CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L</a></dd>
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=24.0.12, &#60;25.0.0</code></li>
|
||
|
||
<li><code>&#62;=36.0.13, &#60;37.0.0</code></li>
|
||
|
||
<li><code>&#62;=46.0.2, &#60;47.0.0</code></li>
|
||
|
||
<li><code>&#62;=47.0.3</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>This is an entry in the RustSec database for the Wasmtime security advisory
|
||
located at
|
||
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-hgjw-h833-99q9
|
||
For more information see the GitHub-hosted security advisory.</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><entry><title>RUSTSEC-2026-0223: Vulnerability in wasmtime</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0223.html</id><updated>2026-07-31T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0223.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0223: Vulnerability in wasmtime"/><published>2026-07-31T12:00:00+00:00</published><summary xml:lang="en">Preemption and traps during bulk operations enable breaking internal VM state</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/wasmtime/RUSTSEC-2026-0223.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/wasmtime/RUSTSEC-2026-0223.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0223">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0223
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Preemption and traps during bulk operations enable breaking internal VM state</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-07-31">
|
||
July 31, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-07-31">
|
||
July 31, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/wasmtime.html">wasmtime</a>
|
||
|
||
(<a href="https://crates.io/crates/wasmtime">crates.io</a>)
|
||
|
||
|
||
|
||
</dd>
|
||
|
||
<dt id="type">Type</dt>
|
||
<dd>
|
||
|
||
Vulnerability
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="aliases">Aliases</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
|
||
<a href="https://github.com/advisories/GHSA-2hw9-mc66-jc2q">GHSA-2hw9-mc66-jc2q</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2hw9-mc66-jc2q">
|
||
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2hw9-mc66-jc2q
|
||
</a>
|
||
</li>
|
||
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="cvss_score">CVSS Score</dt>
|
||
<dd>2 <span class="tag low">
|
||
LOW
|
||
</span></dd>
|
||
|
||
<dt id="cvss_details">CVSS Details</dt>
|
||
<dd>
|
||
<dl>
|
||
|
||
<dt>Attack Complexity</dt>
|
||
<dd>High</dd>
|
||
|
||
<dt>Attack Requirements</dt>
|
||
<dd>Present</dd>
|
||
|
||
<dt>Attack Vector</dt>
|
||
<dd>Network</dd>
|
||
|
||
<dt>Privileges Required</dt>
|
||
<dd>High</dd>
|
||
|
||
<dt>Availability Impact to the Subsequent System</dt>
|
||
<dd>None</dd>
|
||
|
||
<dt>Confidentiality Impact to the Subsequent System</dt>
|
||
<dd>None</dd>
|
||
|
||
<dt>Integrity Impact to the Subsequent System</dt>
|
||
<dd>None</dd>
|
||
|
||
<dt>User Interaction</dt>
|
||
<dd>Passive</dd>
|
||
|
||
<dt>Availability Impact to the Vulnerable System</dt>
|
||
<dd>Low</dd>
|
||
|
||
<dt>Confidentiality Impact to the Vulnerable System</dt>
|
||
<dd>None</dd>
|
||
|
||
<dt>Integrity Impact to the Vulnerable System</dt>
|
||
<dd>Low</dd>
|
||
|
||
</dl>
|
||
</dd>
|
||
|
||
<dt id="cvss">CVSS Vector</dt>
|
||
|
||
|
||
<dd><a href="https://www.first.org/cvss/calculator/3.1#CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N">CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N</a></dd>
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=46.0.2, &#60;47.0.0</code></li>
|
||
|
||
<li><code>&#62;=47.0.3</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
<dt id="unaffected">Unaffected</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;46.0.0</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>This is an entry in the RustSec database for the Wasmtime security advisory
|
||
located at
|
||
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2hw9-mc66-jc2q
|
||
For more information see the GitHub-hosted security advisory.</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><entry><title>RUSTSEC-2026-0220: Vulnerability in ruint</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0220.html</id><updated>2026-07-30T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0220.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0220: Vulnerability in ruint"/><published>2026-07-30T12:00:00+00:00</published><summary xml:lang="en">Uint shift operations: incorrect overflow flags and truncated shift amounts</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/ruint/RUSTSEC-2026-0220.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/ruint/RUSTSEC-2026-0220.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0220">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0220
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Uint shift operations: incorrect overflow flags and truncated shift amounts</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-07-08">
|
||
July 8, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-07-30">
|
||
July 30, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/ruint.html">ruint</a>
|
||
|
||
(<a href="https://crates.io/crates/ruint">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/shift.html">#shift</a>
|
||
|
||
<a href="/keywords/overflow.html">#overflow</a>
|
||
|
||
<a href="/keywords/arithmetic.html">#arithmetic</a>
|
||
|
||
<a href="/keywords/infinite-loop.html">#infinite-loop</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="https://github.com/alloy-rs/ruint/pull/603">
|
||
https://github.com/alloy-rs/ruint/pull/603
|
||
</a>
|
||
</li>
|
||
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=1.20.0</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt>Affected Functions</dt>
|
||
<dd>Version</dd>
|
||
|
||
<dt><code>ruint::Uint::checked_shl</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;1.20.0</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>ruint::Uint::checked_shr</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;1.20.0</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>ruint::Uint::overflowing_shl</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;1.20.0</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>ruint::Uint::overflowing_shr</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;1.20.0</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>ruint::Uint::saturating_shl</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;1.20.0</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>ruint::Uint::saturating_shr</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;1.20.0</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>ruint::Uint::wrapping_shl</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;1.20.0</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>ruint::Uint::wrapping_shr</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;1.20.0</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p><code>Uint::overflowing_shl</code>/<code>overflowing_shr</code> returned false-negative overflow
|
||
flags. <code>overflowing_shl</code> missed bits shifted above <code>BITS</code> but within the top
|
||
limb (non-limb-aligned widths such as <code>U160</code>), and limbs wholly discarded by
|
||
shifts &gt;= 64; <code>overflowing_shr</code> missed wholly discarded low limbs. Shifted
|
||
values were correct; only the flag was wrong.</p>
|
||
<p>The wrong flag propagates: <code>checked_shl</code>/<code>checked_shr</code> return <code>Some</code> instead
|
||
of <code>None</code>, <code>strict_*</code> fail to panic, and <code>saturating_*</code> return a wrapped
|
||
value instead of saturating. The incorrect <code>checked_shl</code> result causes
|
||
<code>to_base_be</code> (and string formatting) to loop forever on no-alloc builds for
|
||
non-limb-aligned widths — a denial of service if formatting is reachable
|
||
from untrusted input.</p>
|
||
<p>Separately, <code>wrapping_shl</code>/<code>wrapping_shr</code> on 64/128/256-bit types truncated
|
||
the shift amount modulo 2^32, so shifts &gt;= 2^32 returned an incorrectly
|
||
wrapped value instead of zero; on 32-bit targets the generic path also
|
||
truncated 64-bit shift amounts.</p>
|
||
<p>Callers using checked or saturating shift semantics on untrusted shift
|
||
amounts may compute incorrect results.</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><entry><title>RUSTSEC-2026-0219: Vulnerability in nostr</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0219.html</id><updated>2026-08-01T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0219.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0219: Vulnerability in nostr"/><published>2026-07-29T12:00:00+00:00</published><summary xml:lang="en">Remote Denial of Service via malformed NIP-04 IV</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-0219.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nostr/RUSTSEC-2026-0219.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0219">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0219
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Remote Denial of Service via malformed NIP-04 IV</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-07-26">
|
||
July 26, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-07-29">
|
||
July 29, 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/panic.html">#panic</a>
|
||
|
||
<a href="/keywords/nip04.html">#nip04</a>
|
||
|
||
<a href="/keywords/nip47.html">#nip47</a>
|
||
|
||
<a href="/keywords/nwc.html">#nwc</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="aliases">Aliases</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
|
||
<a href="https://github.com/advisories/GHSA-xg7c-246g-6qpv">GHSA-xg7c-246g-6qpv</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="https://github.com/nostrdevkit/nostr/commit/b24619346f666d08ef7fefe27f033b8bc871697f">
|
||
https://github.com/nostrdevkit/nostr/commit/b24619346f666d08ef7fefe27f033b8bc871697f
|
||
</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.6, &#60;0.45.0-alpha.1</code></li>
|
||
|
||
<li><code>&#62;=0.45.0-alpha.6</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt>Affected Functions</dt>
|
||
<dd>Version</dd>
|
||
|
||
<dt><code>nostr::nips::nip04::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#62;=0.1.5</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>nostr::nips::nip04::decrypt_to_bytes</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#62;=0.26.0</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>The <code>nostr</code> crate did not validate the length of the initialization vector
|
||
decoded from the <code>?iv=</code> portion of a NIP-04 encrypted message.</p>
|
||
<p>The decoded IV was converted from a byte slice to the 16-byte AES-CBC IV type
|
||
using a conversion that asserts the slice length. As a result, an IV whose
|
||
decoded length was not exactly 16 bytes caused a panic before ciphertext
|
||
decryption. For example, <code>?iv=AAAA</code> decodes to a three-byte IV and triggers the
|
||
panic.</p>
|
||
<p>Applications that decrypt untrusted NIP-04 content are affected. The issue is
|
||
also reachable through NIP-47 (Nostr Wallet Connect), where response and
|
||
notification events from a malicious or compromised wallet service are passed
|
||
to NIP-04 decryption. If the panic is not isolated, a crafted event can terminate
|
||
the application or disrupt message processing, causing a denial of service.</p>
|
||
<p>The issue does not affect confidentiality or integrity.</p>
|
||
<p>The flaw was corrected by converting the decoded IV to <code>[u8; 16]</code> using a
|
||
checked conversion. Invalid IV lengths now return a <code>Malformed</code> error instead of
|
||
panicking.</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><entry><title>RUSTSEC-2026-0217: Vulnerability in tract-nnef</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0217.html</id><updated>2026-07-28T12:00:00+00:00</updated><category term="memory-exposure"/><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0217.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0217: Vulnerability in tract-nnef"/><published>2026-07-28T12:00:00+00:00</published><summary xml:lang="en">Integer overflow in tract-nnef NNEF tensor parser leads to out-of-bounds read on model load</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/tract-nnef/RUSTSEC-2026-0217.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/tract-nnef/RUSTSEC-2026-0217.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0217">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0217
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Integer overflow in tract-nnef NNEF tensor parser leads to out-of-bounds read on model load</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-06-18">
|
||
June 18, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-07-28">
|
||
July 28, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/tract-nnef.html">tract-nnef</a>
|
||
|
||
(<a href="https://crates.io/crates/tract-nnef">crates.io</a>)
|
||
|
||
|
||
|
||
</dd>
|
||
|
||
<dt id="type">Type</dt>
|
||
<dd>
|
||
|
||
Vulnerability
|
||
|
||
</dd>
|
||
|
||
|
||
<dt id="categories">Categories</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><a href="/categories/memory-exposure.html">memory-exposure</a></li>
|
||
|
||
<li><a href="/categories/denial-of-service.html">denial-of-service</a></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="keywords">Keywords</dt>
|
||
<dd>
|
||
|
||
<a href="/keywords/parsing.html">#parsing</a>
|
||
|
||
<a href="/keywords/nnef.html">#nnef</a>
|
||
|
||
<a href="/keywords/integer-overflow.html">#integer-overflow</a>
|
||
|
||
<a href="/keywords/out-of-bounds-read.html">#out-of-bounds-read</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="aliases">Aliases</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
|
||
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-55093">CVE-2026-55093</a>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<a href="https://github.com/advisories/GHSA-x5mv-8wgw-29hg">GHSA-x5mv-8wgw-29hg</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="https://github.com/sonos/tract/security/advisories/GHSA-x5mv-8wgw-29hg">
|
||
https://github.com/sonos/tract/security/advisories/GHSA-x5mv-8wgw-29hg
|
||
</a>
|
||
</li>
|
||
|
||
|
||
<li>
|
||
<a href="https://github.com/sonos/tract/commit/34c7df2c9bd2a36583e09b52f3e6319bf23102e8">
|
||
https://github.com/sonos/tract/commit/34c7df2c9bd2a36583e09b52f3e6319bf23102e8
|
||
</a>
|
||
</li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="cvss_score">CVSS Score</dt>
|
||
<dd>6.1 <span class="tag medium">
|
||
MEDIUM
|
||
</span></dd>
|
||
|
||
<dt id="cvss_details">CVSS Details</dt>
|
||
<dd>
|
||
<dl>
|
||
|
||
<dt>Attack Vector</dt>
|
||
<dd>Local</dd>
|
||
|
||
<dt>Attack Complexity</dt>
|
||
<dd>Low</dd>
|
||
|
||
<dt>Privileges Required</dt>
|
||
<dd>None</dd>
|
||
|
||
<dt>User Interaction</dt>
|
||
<dd>Required</dd>
|
||
|
||
<dt>Scope</dt>
|
||
<dd>Unchanged</dd>
|
||
|
||
<dt>Confidentiality Impact</dt>
|
||
<dd>Low</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:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H">CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H</a></dd>
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=0.21.16, &#60;0.22.0</code></li>
|
||
|
||
<li><code>&#62;=0.22.2, &#60;0.23.0</code></li>
|
||
|
||
<li><code>&#62;=0.23.1</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt>Affected Functions</dt>
|
||
<dd>Version</dd>
|
||
|
||
<dt><code>tract_nnef::tensors::read_tensor</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;0.21.16</code></li>
|
||
|
||
<li><code>&#62;=0.22.0, &#60;0.22.2</code></li>
|
||
|
||
<li><code>&#62;=0.23.0, &#60;0.23.1</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p><code>tract_nnef::tensors::read_tensor</code> builds a tensor shape from attacker-controlled
|
||
32-bit dimensions and computes both the element count <code>product(shape)</code> and the
|
||
byte allocation <code>product(shape) * size_of(dt)</code> with <strong>unchecked <code>usize</code>
|
||
arithmetic</strong>. In release builds (no <code>overflow-checks</code>) both products wrap modulo
|
||
2^64.</p>
|
||
<p>A crafted NNEF <code>.dat</code> tensor can choose dimensions whose wrapped products
|
||
collapse to a small value that satisfies the header size-consistency check, while
|
||
the true element count stays astronomically large. <code>read_tensor</code> then returns a
|
||
<code>Tensor</code> whose reported <code>len</code> (e.g. <code>2^61 + 7</code>) far exceeds its backing heap
|
||
allocation (e.g. 56 bytes). The unchecked accessor <code>as_slice_unchecked</code>
|
||
(<code>slice::from_raw_parts(ptr, self.len())</code>) subsequently yields a slice spanning
|
||
~18 EiB over the small buffer.</p>
|
||
<p>The out-of-bounds read fires automatically during model build (no inference
|
||
required), reachable through the default <code>DatLoader</code> resource loader via the
|
||
public <code>tract_nnef::nnef().model_for_path</code> / <code>model_for_read</code> API when the
|
||
const-folding <code>as_uniform</code> fast-path materializes the over-long constant. The
|
||
always-on primitive is a bounded adjacent-heap over-read (information
|
||
disclosure); access further past the mapped region SIGSEGVs (denial of service).
|
||
No out-of-bounds write or code execution was demonstrated.</p>
|
||
<p>Affected: every release line prior to the backported fixes — <code>&lt; 0.21.16</code>,
|
||
<code>0.22.0</code>–<code>0.22.1</code>, and <code>0.23.0</code>. The block-quant path had already received an
|
||
analogous blob-size guard; the dense <code>DatLoader</code> path was missed.</p>
|
||
<h2>Mitigation</h2>
|
||
<p>Upgrade to <code>0.21.16</code>, <code>0.22.2</code>, or <code>0.23.1</code>. The fix computes the shape product
|
||
and byte size with <code>checked_mul</code> and rejects the tensor on overflow
|
||
(commit <a href="https://github.com/sonos/tract/commit/34c7df2c9bd2a36583e09b52f3e6319bf23102e8"><code>34c7df2</code></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><entry><title>RUSTSEC-2026-0218: Unsoundness in enum-map</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0218.html</id><updated>2026-07-28T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0218.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0218: Unsoundness in enum-map"/><published>2026-07-28T12:00:00+00:00</published><summary xml:lang="en">`Enum` trait allows type confusion when manually implemented</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/enum-map/RUSTSEC-2026-0218.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/enum-map/RUSTSEC-2026-0218.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0218">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0218
|
||
|
||
</h1>
|
||
<span class="subtitle"><p><code>Enum</code> trait allows type confusion when manually implemented</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-07-21">
|
||
July 21, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-07-28">
|
||
July 28, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/enum-map.html">enum-map</a>
|
||
|
||
(<a href="https://crates.io/crates/enum-map">crates.io</a>)
|
||
|
||
|
||
|
||
</dd>
|
||
|
||
<dt id="type">Type</dt>
|
||
<dd>
|
||
|
||
<span class="tag info">INFO</span>
|
||
Unsound
|
||
|
||
</dd>
|
||
|
||
|
||
<dt id="categories">Categories</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="https://codeberg.org/sugar700/enum-map/src/branch/master/CHANGELOG.md#version-310">
|
||
https://codeberg.org/sugar700/enum-map/src/branch/master/CHANGELOG.md#version-310
|
||
</a>
|
||
</li>
|
||
|
||
|
||
<li>
|
||
<a href="https://github.com/rustsec/advisory-db/issues/3060">
|
||
https://github.com/rustsec/advisory-db/issues/3060
|
||
</a>
|
||
</li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=3.1.0</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
<dt id="unaffected">Unaffected</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;3.0.0-0.gat.0</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>Affected versions of this crate did not require the element type of the <code>Array</code> associated type in the <code>Enum</code> trait to match the array's generic parameter <code>V</code>.</p>
|
||
<p>This can result in type confusion, and consequently memory corruption, when a manual <code>Enum</code> implementation declares an <code>Array&lt;V&gt;</code> whose elements are not actually of type <code>V</code>:</p>
|
||
<pre><code class="language-rust">struct IntentionallyWrong;
|
||
|
||
impl Enum for IntentionallyWrong {
|
||
type Array&lt;V&gt; = [String; 4];
|
||
|
||
fn from_usize(_: usize) -&gt; Self {
|
||
IntentionallyWrong
|
||
}
|
||
|
||
fn into_usize(self) -&gt; usize {
|
||
0
|
||
}
|
||
}
|
||
|
||
enum_map! { IntentionallyWrong =&gt; 42 };
|
||
</code></pre>
|
||
<p>The flaw was corrected in commit <a href="https://codeberg.org/sugar700/enum-map/commit/7a8b8154323d426415a10accf104cd05c394cda9">7a8b815432</a> by adding a <code>Value = V</code> bound to the <code>Array</code> type in the <code>Enum</code> trait.</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> |