mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 10:34:31 -06:00
2067 lines
69 KiB
XML
2067 lines
69 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-07-29T12: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-0219: Vulnerability in nostr</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0219.html</id><updated>2026-07-29T12: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>
|
||
|
||
</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="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><entry><title>RUSTSEC-2026-0216: Vulnerability in nostr</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0216.html</id><updated>2026-07-27T12: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>
|
||
|
||
</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="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> (info@mhd-shekho.com, <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-0214: gumdrop is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0214.html</id><updated>2026-07-23T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0214.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0214: gumdrop is unmaintained"/><published>2026-07-23T12:00:00+00:00</published><summary xml:lang="en">gumdrop is unmaintained</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/gumdrop/RUSTSEC-2026-0214.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/gumdrop/RUSTSEC-2026-0214.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0214">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0214
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>gumdrop is unmaintained</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-07-22">
|
||
July 22, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-07-23">
|
||
July 23, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/gumdrop.html">gumdrop</a>
|
||
|
||
(<a href="https://crates.io/crates/gumdrop">crates.io</a>)
|
||
|
||
|
||
|
||
</dd>
|
||
|
||
<dt id="type">Type</dt>
|
||
<dd>
|
||
|
||
<span class="tag info">INFO</span>
|
||
Unmaintained
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="https://github.com/murarth/gumdrop/issues/63">
|
||
https://github.com/murarth/gumdrop/issues/63
|
||
</a>
|
||
</li>
|
||
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
no patched versions
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>The gumdrop crate is unmaintained, and all versions are affected.</p>
|
||
<p>Recommended alternatives:</p>
|
||
<ul>
|
||
<li><a href="https://crates.io/crates/clap">clap</a> is the most popular by far</li>
|
||
<li><a href="https://crates.io/crates/bpaf">bpaf</a> is a more lightweight alternative</li>
|
||
</ul>
|
||
|
||
|
||
<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-0215: smallstr is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0215.html</id><updated>2026-07-23T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0215.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0215: smallstr is unmaintained"/><published>2026-07-23T12:00:00+00:00</published><summary xml:lang="en">smallstr is unmaintained</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/smallstr/RUSTSEC-2026-0215.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/smallstr/RUSTSEC-2026-0215.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0215">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0215
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>smallstr is unmaintained</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-07-22">
|
||
July 22, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-07-23">
|
||
July 23, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/smallstr.html">smallstr</a>
|
||
|
||
(<a href="https://crates.io/crates/smallstr">crates.io</a>)
|
||
|
||
|
||
|
||
</dd>
|
||
|
||
<dt id="type">Type</dt>
|
||
<dd>
|
||
|
||
<span class="tag info">INFO</span>
|
||
Unmaintained
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
no patched versions
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>The smallstr crate is unmaintained, and all versions are affected.</p>
|
||
<p>Recommended alternatives:</p>
|
||
<ul>
|
||
<li><a href="https://crates.io/crates/compact_str">compact_str</a> is the most popular by far</li>
|
||
<li><a href="https://crates.io/crates/smol_str">smol_str</a> focuses on immutable strings</li>
|
||
</ul>
|
||
|
||
|
||
<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-0213: Vulnerability in ammonia</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0213.html</id><updated>2026-07-22T12:00:00+00:00</updated><category term="format-injection"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0213.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0213: Vulnerability in ammonia"/><published>2026-07-22T12:00:00+00:00</published><summary xml:lang="en">XSS in ammonia via SVG `animate` and `set` animation tags</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/ammonia/RUSTSEC-2026-0213.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/ammonia/RUSTSEC-2026-0213.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0213">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0213
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>XSS in ammonia via SVG <code>animate</code> and <code>set</code> animation tags</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-22">
|
||
July 22, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/ammonia.html">ammonia</a>
|
||
|
||
(<a href="https://crates.io/crates/ammonia">crates.io</a>)
|
||
|
||
|
||
|
||
</dd>
|
||
|
||
<dt id="type">Type</dt>
|
||
<dd>
|
||
|
||
Vulnerability
|
||
|
||
</dd>
|
||
|
||
|
||
<dt id="categories">Categories</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><a href="/categories/format-injection.html">format-injection</a></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="keywords">Keywords</dt>
|
||
<dd>
|
||
|
||
<a href="/keywords/html.html">#html</a>
|
||
|
||
<a href="/keywords/xss.html">#xss</a>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
<dt id="aliases">Aliases</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
|
||
<a href="https://github.com/advisories/GHSA-m6mh-2hw2-555x">GHSA-m6mh-2hw2-555x</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=4.1.4</code></li>
|
||
|
||
<li><code>&#62;=4.0.3, &#60;4.1.0</code></li>
|
||
|
||
<li><code>&#62;=3.3.3, &#60;4.0.0</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>The following SVG will produce a link with a javascript scheme.
|
||
If the user clicks this link, they will run it.</p>
|
||
<pre><code class="language-xml">&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;
|
||
&lt;a&gt;
|
||
&lt;set attributeName=&quot;href&quot; to=&quot;javascript:alert('SET_XSS')&quot;&gt;&lt;/set&gt;
|
||
&lt;text y=&quot;30&quot;&gt;Click set&lt;/text&gt;
|
||
&lt;/a&gt;
|
||
&lt;/svg&gt;
|
||
</code></pre>
|
||
<p>Ammonia did not apply attribute filters based on <code>attributeName</code>,
|
||
so the contents of the <code>to</code>, <code>from</code>, and <code>values</code> tags were not sanitized as URLs.</p>
|
||
<p>Applications that do not explicitly allow either of these tags should not be affected,
|
||
since neither are allowed by default.</p>
|
||
<hr />
|
||
<p><strong>Discovered by:</strong> <a href="https://github.com/koyokr">Younghun Ko (@koyokr)</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-0207: Vulnerability in libcrux-sha3</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0207.html</id><updated>2026-07-17T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0207.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0207: Vulnerability in libcrux-sha3"/><published>2026-07-17T12:00:00+00:00</published><summary xml:lang="en">Incorrect Output of Incremental Portable SHAKE API on Multiple Squeeze Calls</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/libcrux-sha3/RUSTSEC-2026-0207.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/libcrux-sha3/RUSTSEC-2026-0207.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0207">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0207
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Incorrect Output of Incremental Portable SHAKE API on Multiple Squeeze Calls</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-04-22">
|
||
April 22, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-07-17">
|
||
July 17, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/libcrux-sha3.html">libcrux-sha3</a>
|
||
|
||
(<a href="https://crates.io/crates/libcrux-sha3">crates.io</a>)
|
||
|
||
|
||
|
||
</dd>
|
||
|
||
<dt id="type">Type</dt>
|
||
<dd>
|
||
|
||
Vulnerability
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="https://github.com/celabshq/libcrux/pull/1389">
|
||
https://github.com/celabshq/libcrux/pull/1389
|
||
</a>
|
||
</li>
|
||
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="cvss_score">CVSS Score</dt>
|
||
<dd>8.2 <span class="tag high">
|
||
HIGH
|
||
</span></dd>
|
||
|
||
<dt id="cvss_details">CVSS Details</dt>
|
||
<dd>
|
||
<dl>
|
||
|
||
<dt>Attack Complexity</dt>
|
||
<dd>Low</dd>
|
||
|
||
<dt>Attack Requirements</dt>
|
||
<dd>Present</dd>
|
||
|
||
<dt>Attack Vector</dt>
|
||
<dd>Network</dd>
|
||
|
||
<dt>Privileges Required</dt>
|
||
<dd>None</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>None</dd>
|
||
|
||
<dt>Availability Impact to the Vulnerable System</dt>
|
||
<dd>High</dd>
|
||
|
||
<dt>Confidentiality Impact to the Vulnerable System</dt>
|
||
<dd>None</dd>
|
||
|
||
<dt>Integrity Impact to the Vulnerable System</dt>
|
||
<dd>None</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:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N">CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N</a></dd>
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=0.0.10</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt>Affected Functions</dt>
|
||
<dd>Version</dd>
|
||
|
||
<dt><code>libcrux_sha3::portable::incremental::Shake128Xof::squeeze</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.9</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_sha3::portable::incremental::Shake256Xof::squeeze</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.9</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>The incremental squeeze functions in the portable SHAKE XOF API, when
|
||
attempting to squeeze an output using multiple calls to <code>squeeze</code>,
|
||
rather than squeezing the full output at once, could output incorrect
|
||
values. Internally, output blocks that were not completely squeezed
|
||
were not buffered for the next call to <code>squeeze</code>, which would
|
||
consequently drop bytes of the correct squeeze output if the preceding
|
||
call requested an output of length in bytes not cleanly divisible by
|
||
<code>RATE</code> (168 for SHAKE128, 136 for SHAKE256).</p>
|
||
<h2>Impact</h2>
|
||
<p>This bug impacts users that rely on this XOF API to squeeze output in
|
||
multiple calls where any of the calls request an output length that is
|
||
not divisible by <code>RATE</code>. It does not impact the use of libcrux-sha3 in
|
||
libcrux-ml-kem or libcrux-ml-dsa.</p>
|
||
<h2>Mitigation</h2>
|
||
<p>Starting from version <code>0.0.10</code> the squeeze functions correctly output
|
||
all squeezed bytes independent of the number of <code>squeeze</code> calls and
|
||
the output lengths requested in each call.</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-0208: Vulnerability in libcrux-sha3</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0208.html</id><updated>2026-07-17T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0208.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0208: Vulnerability in libcrux-sha3"/><published>2026-07-17T12:00:00+00:00</published><summary xml:lang="en">Potential Panic in AVX2 SHAKE-256</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/libcrux-sha3/RUSTSEC-2026-0208.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/libcrux-sha3/RUSTSEC-2026-0208.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0208">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0208
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Potential Panic in AVX2 SHAKE-256</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-05-21">
|
||
May 21, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-07-17">
|
||
July 17, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/libcrux-sha3.html">libcrux-sha3</a>
|
||
|
||
(<a href="https://crates.io/crates/libcrux-sha3">crates.io</a>)
|
||
|
||
|
||
|
||
</dd>
|
||
|
||
<dt id="type">Type</dt>
|
||
<dd>
|
||
|
||
Vulnerability
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="https://github.com/celabshq/libcrux/pull/1456">
|
||
https://github.com/celabshq/libcrux/pull/1456
|
||
</a>
|
||
</li>
|
||
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="cvss_score">CVSS Score</dt>
|
||
<dd>8.2 <span class="tag high">
|
||
HIGH
|
||
</span></dd>
|
||
|
||
<dt id="cvss_details">CVSS Details</dt>
|
||
<dd>
|
||
<dl>
|
||
|
||
<dt>Attack Complexity</dt>
|
||
<dd>Low</dd>
|
||
|
||
<dt>Attack Requirements</dt>
|
||
<dd>Present</dd>
|
||
|
||
<dt>Attack Vector</dt>
|
||
<dd>Network</dd>
|
||
|
||
<dt>Privileges Required</dt>
|
||
<dd>None</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>None</dd>
|
||
|
||
<dt>Availability Impact to the Vulnerable System</dt>
|
||
<dd>High</dd>
|
||
|
||
<dt>Confidentiality Impact to the Vulnerable System</dt>
|
||
<dd>None</dd>
|
||
|
||
<dt>Integrity Impact to the Vulnerable System</dt>
|
||
<dd>None</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:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N">CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N</a></dd>
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
<ul>
|
||
|
||
<li><code>&#62;=0.0.10</code></li>
|
||
|
||
</ul>
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt>Affected Functions</dt>
|
||
<dd>Version</dd>
|
||
|
||
<dt><code>libcrux_sha3::avx2::x4::shake256</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.9</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>The AVX2-optimized implementation of SHAKE-256 intended for use in
|
||
ML-KEM and ML-DSA would panic if the length of the output buffers was
|
||
greater than 32 and not a multiple of 8, due to an out-of-bounds
|
||
indexing operation.</p>
|
||
<h2>Impact</h2>
|
||
<p>This bug impacts users on AVX2 platforms that use the
|
||
<code>libcrux_sha3::avx2::x4::shake256</code> API outside of ML-KEM or ML-DSA
|
||
with output buffers of length <code>&gt; 32</code> and not divisible by <code>8</code>. It does
|
||
not impact the use in ML-KEM or ML-DSA because there output buffer
|
||
lengths are always divisible by <code>8</code>.</p>
|
||
<h2>Mitigation</h2>
|
||
<p>Starting from version <code>0.0.10</code>, the AVX2-optimized SHAKE-256 will no
|
||
longer panic on output buffer lengths <code>&gt; 32</code> that are not divisible by
|
||
<code>8</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-0211: Vulnerability in libcrux-aesgcm</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0211.html</id><updated>2026-07-17T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0211.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0211: Vulnerability in libcrux-aesgcm"/><published>2026-07-17T12:00:00+00:00</published><summary xml:lang="en">Non-constant time Authentication Tag Check in AES-GCM Decryption</summary><content xml:lang="en" type="html"> <article>
|
||
|
||
<span class="floating-menu">
|
||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/libcrux-aesgcm/RUSTSEC-2026-0211.md">History</a> ⋅
|
||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/libcrux-aesgcm/RUSTSEC-2026-0211.md">Edit</a> ⋅
|
||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0211">JSON (OSV)</a>
|
||
</span>
|
||
|
||
|
||
<header>
|
||
<h1>
|
||
|
||
RUSTSEC-2026-0211
|
||
|
||
</h1>
|
||
<span class="subtitle"><p>Non-constant time Authentication Tag Check in AES-GCM Decryption</p>
|
||
</span>
|
||
</header>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt id="reported">Reported</dt>
|
||
<dd>
|
||
<time datetime="2026-07-14">
|
||
July 14, 2026
|
||
</time>
|
||
</dd>
|
||
|
||
<dt id="issued">Issued</dt>
|
||
<dd>
|
||
<time datetime="2026-07-17">
|
||
July 17, 2026
|
||
</time>
|
||
|
||
</dd>
|
||
|
||
<dt id="package">Package</dt>
|
||
<dd>
|
||
|
||
|
||
<a href="/packages/libcrux-aesgcm.html">libcrux-aesgcm</a>
|
||
|
||
(<a href="https://crates.io/crates/libcrux-aesgcm">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="details">References</dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="https://github.com/celabshq/libcrux/pull/1528">
|
||
https://github.com/celabshq/libcrux/pull/1528
|
||
</a>
|
||
</li>
|
||
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
<dt id="cvss_score">CVSS Score</dt>
|
||
<dd>6.3 <span class="tag medium">
|
||
MEDIUM
|
||
</span></dd>
|
||
|
||
<dt id="cvss_details">CVSS Details</dt>
|
||
<dd>
|
||
<dl>
|
||
|
||
<dt>Attack Complexity</dt>
|
||
<dd>Low</dd>
|
||
|
||
<dt>Attack Requirements</dt>
|
||
<dd>Present</dd>
|
||
|
||
<dt>Attack Vector</dt>
|
||
<dd>Network</dd>
|
||
|
||
<dt>Privileges Required</dt>
|
||
<dd>None</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>None</dd>
|
||
|
||
<dt>Availability Impact to the Vulnerable System</dt>
|
||
<dd>None</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:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N">CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N</a></dd>
|
||
|
||
|
||
|
||
|
||
<dt id="patched">Patched</dt>
|
||
<dd>
|
||
|
||
no patched versions
|
||
|
||
</dd>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<dl>
|
||
<dt>Affected Functions</dt>
|
||
<dd>Version</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::AesGcm128Key::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::AesGcm256Key::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_128::AesGcm128::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_128::Key::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_128::KeyRef::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_128::neon::Key::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_128::neon::KeyRef::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_128::neon::NeonAesGcm128::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_128::portable::Key::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_128::portable::KeyRef::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_128::portable::PortableAesGcm128::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_128::x64::Key::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_128::x64::KeyRef::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_128::x64::X64AesGcm128::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_256::AesGcm256::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_256::Key::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_256::KeyRef::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_256::neon::Key::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_256::neon::KeyRef::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_256::neon::NeonAesGcm256::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_256::portable::Key::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_256::portable::KeyRef::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_256::portable::PortableAesGcm256::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_256::x64::Key::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_256::x64::KeyRef::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
<dt><code>libcrux_aesgcm::aes_gcm_256::x64::X64AesGcm256::decrypt</code></dt>
|
||
<dd>
|
||
<ul>
|
||
|
||
<li><code>&#60;=0.0.8</code></li>
|
||
|
||
</ul>
|
||
</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<h3 id="description">Description</h3>
|
||
<p>AES-GCM decryption used an implementation for checking the provided
|
||
authentication tag against the recomputed authentication tag that was
|
||
intended to be constant-time, but resulted in non-constant-time code
|
||
generation in certain circumstances.
|
||
Note that <code>libcrux-aesgcm</code> does not give guarantees on constant-time
|
||
code generation and possible mitigations must be considered
|
||
on a best-effort basis.</p>
|
||
<h2>Impact</h2>
|
||
<p>Users of <code>libcrux-aesgcm</code> that expose a decryption oracle to an
|
||
attacker, which allows repeatedly querying for the same ciphertext
|
||
were at risk from timing side-channel attacks, depending on their
|
||
compilation environment. In the worst case, this could lead to
|
||
recovery of the recomputed authentication tag by the attacker, which
|
||
enables ciphertext forgery.</p>
|
||
<h2>Mitigation</h2>
|
||
<p>Starting from version <code>0.0.9</code> (published as <code>libcrux-aes@v0.0.9</code>),
|
||
AES-GCM decryption uses a different, best-effort constant-time
|
||
implementation of the tag check, which has been checked to reliably
|
||
lead to constant time code generation, at the moment.</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> |