mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 10:24:32 -06:00
1776 lines
62 KiB
XML
1776 lines
62 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-18T12: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-0258: Vulnerability in h2</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0258.html</id><updated>2026-08-18T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0258.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0258: Vulnerability in h2"/><published>2026-08-18T12:00:00+00:00</published><summary xml:lang="en">h2 unbounded empty DATA frames</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/h2/RUSTSEC-2026-0258.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/h2/RUSTSEC-2026-0258.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0258">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0258
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>h2 unbounded empty DATA frames</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-08-17">
|
|
August 17, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-08-18">
|
|
August 18, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/h2.html">h2</a>
|
|
|
|
(<a href="https://crates.io/crates/h2">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/http.html">#http</a>
|
|
|
|
<a href="/keywords/http2.html">#http2</a>
|
|
|
|
<a href="/keywords/h2.html">#h2</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-q83h-524g-xf6h">GHSA-q83h-524g-xf6h</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/hyperium/hyper/security/advisories/GHSA-q83h-524g-xf6h">
|
|
https://github.com/hyperium/hyper/security/advisories/GHSA-q83h-524g-xf6h
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.4.16</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The h2 crate, used internally by hyper, had a flaw that would accept and queue empty DATA frames without limit.
|
|
If streams were not actively drained, this could lead to unbounded memory usage, or a panic if the length overflows.</p>
|
|
<p>Low severity.</p>
|
|
<p>Patched in v0.4.16.</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-0255: Unsoundness in sized-chunks</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0255.html</id><updated>2026-08-12T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0255.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0255: Unsoundness in sized-chunks"/><published>2026-08-12T12:00:00+00:00</published><summary xml:lang="en">Panic-safety unsoundness in `Chunk`, `RingBuffer`, and `InlineArray` (use-after-free / double-free)</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/sized-chunks/RUSTSEC-2026-0255.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/sized-chunks/RUSTSEC-2026-0255.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0255">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0255
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Panic-safety unsoundness in <code>Chunk</code>, <code>RingBuffer</code>, and <code>InlineArray</code> (use-after-free / double-free)</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-08-11">
|
|
August 11, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-08-12">
|
|
August 12, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/sized-chunks.html">sized-chunks</a>
|
|
|
|
(<a href="https://crates.io/crates/sized-chunks">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="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/panic-safety.html">#panic-safety</a>
|
|
|
|
<a href="/keywords/memory-safety.html">#memory-safety</a>
|
|
|
|
<a href="/keywords/use-after-free.html">#use-after-free</a>
|
|
|
|
<a href="/keywords/double-free.html">#double-free</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>sized_chunks::Chunk::clear</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.7.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>sized_chunks::Chunk::drop_left</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.7.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>sized_chunks::Chunk::drop_right</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.7.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>sized_chunks::InlineArray::clear</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.7.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>sized_chunks::RingBuffer::clear</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.7.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>sized_chunks::RingBuffer::drop_left</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.7.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>sized_chunks::RingBuffer::drop_right</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.7.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Several methods in <code>sized-chunks</code> drop elements before updating the length/boundary metadata. If an element's <code>Drop</code> panics during the drop, the metadata update is skipped, so the container still treats the already-dropped elements as live. When the container's own <code>Drop</code> runs, those elements are visited again — a use-after-free / double-free reachable from safe Rust.</p>
|
|
<p>The <code>RingBuffer</code> methods require the <code>ringbuffer</code> feature. This is distinct from RUSTSEC-2020-0041 (<code>Chunk::clone</code> / <code>insert_from</code>, fixed in 0.6.3); the methods here are still affected in 0.7.0. The repository is archived with issues/PRs disabled and no fix available.</p>
|
|
<h2>Impact</h2>
|
|
<ul>
|
|
<li><strong>CWE-415 (Double Free):</strong> the same allocation is freed twice.</li>
|
|
<li><strong>CWE-416 (Use-After-Free):</strong> a freed allocation is accessed during a repeated <code>Drop</code>.</li>
|
|
</ul>
|
|
<p>Reachable entirely from safe Rust via <code>catch_unwind</code> with element types whose <code>Drop</code> can panic.</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-2025-0170: Unsoundness in hugepage-rs</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0170.html</id><updated>2026-08-12T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0170.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0170: Unsoundness in hugepage-rs"/><published>2026-08-12T12:00:00+00:00</published><summary xml:lang="en">`hugepage_rs::dealloc` may allow invalid memory deallocation from safe code</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/hugepage-rs/RUSTSEC-2025-0170.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/hugepage-rs/RUSTSEC-2025-0170.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0170">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0170
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>hugepage_rs::dealloc</code> may allow invalid memory deallocation from safe code</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-04-24">
|
|
April 24, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-08-12">
|
|
August 12, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/hugepage-rs.html">hugepage-rs</a>
|
|
|
|
(<a href="https://crates.io/crates/hugepage-rs">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://github.com/cppcoffee/hugepage-rs/issues/5">
|
|
https://github.com/cppcoffee/hugepage-rs/issues/5
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/cppcoffee/hugepage-rs/pull/6">
|
|
https://github.com/cppcoffee/hugepage-rs/pull/6
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/cppcoffee/hugepage-rs/commit/2b30bdf227f39b1c9ed7af16ea0cc3957f88da18">
|
|
https://github.com/cppcoffee/hugepage-rs/commit/2b30bdf227f39b1c9ed7af16ea0cc3957f88da18
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.1.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>hugepage_rs::dealloc</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.1.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p><code>hugepage_rs::dealloc</code> was a publicly accessible safe function. It accepted an arbitrary raw pointer and <code>Layout</code>, then forwarded them to the hugepage allocator's <code>GlobalAlloc::dealloc</code> implementation.</p>
|
|
<p><code>GlobalAlloc::dealloc</code> requires callers to ensure that the pointer denotes a block of memory currently allocated by the allocator and that the layout is the same layout used for the allocation. The safe wrapper neither verified these requirements nor marked them as
|
|
unsafe preconditions for callers.</p>
|
|
<p>Affected versions therefore allowed safe Rust code to call <code>dealloc</code> with an invalid pointer, a pointer not allocated by the hugepage allocator, or an incorrect layout, which could cause undefined behavior.</p>
|
|
<p>The upstream repository fixed this in version <code>0.1.1</code> by marking <code>dealloc</code> as unsafe and documenting the caller's safety requirements.</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-0257: Vulnerability in webbrowser</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0257.html</id><updated>2026-08-12T12:00:00+00:00</updated><category term="format-injection"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0257.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0257: Vulnerability in webbrowser"/><published>2026-08-12T12:00:00+00:00</published><summary xml:lang="en">Unix `BROWSER` handling allows browser argument injection</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/webbrowser/RUSTSEC-2026-0257.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/webbrowser/RUSTSEC-2026-0257.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0257">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0257
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unix <code>BROWSER</code> handling allows browser argument injection</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-07-29">
|
|
July 29, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-08-12">
|
|
August 12, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/webbrowser.html">webbrowser</a>
|
|
|
|
(<a href="https://crates.io/crates/webbrowser">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/argument-injection.html">#argument-injection</a>
|
|
|
|
<a href="/keywords/browser.html">#browser</a>
|
|
|
|
<a href="/keywords/unix.html">#unix</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-2ph8-5cr8-hr33">GHSA-2ph8-5cr8-hr33</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/amodm/webbrowser-rs/security/advisories/GHSA-2ph8-5cr8-hr33">
|
|
https://github.com/amodm/webbrowser-rs/security/advisories/GHSA-2ph8-5cr8-hr33
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/amodm/webbrowser-rs/commit/31d1b924885551c0e553909d27c738ca6958a0f3">
|
|
https://github.com/amodm/webbrowser-rs/commit/31d1b924885551c0e553909d27c738ca6958a0f3
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/amodm/webbrowser-rs/releases/tag/v1.2.2">
|
|
https://github.com/amodm/webbrowser-rs/releases/tag/v1.2.2
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=1.2.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>webbrowser::open</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=1.2.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>webbrowser::open_browser</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=1.2.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>webbrowser::open_browser_with_options</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=1.2.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>On Unix platforms handled by <code>src/unix.rs</code>, affected versions substitute the
|
|
caller-supplied URL into the <code>BROWSER</code> environment-variable template before
|
|
tokenizing the resulting string with <code>split_ascii_whitespace()</code>. If an
|
|
application passes an attacker-controlled non-HTTP(S) URL whose parsed form
|
|
retains spaces and the effective <code>BROWSER</code> template contains <code>%s</code>, text that
|
|
should remain within one URL argument becomes additional browser arguments.</p>
|
|
<p>The issue was reproduced with Chromium by injecting
|
|
<code>--remote-debugging-port</code>, which exposed a local DevTools endpoint, and
|
|
<code>--proxy-server</code>, which redirected browser traffic through an
|
|
attacker-controlled proxy. The available arguments and resulting impact depend
|
|
on the browser launched by the affected application.</p>
|
|
<p>Version 1.2.2 fixes the issue by tokenizing the <code>BROWSER</code> template before
|
|
substituting the URL, preserving the URL as part of a single argument. Users
|
|
should upgrade to version 1.2.2 or later. Applications that only need HTTP(S)
|
|
URLs can also enable the crate's <code>hardened</code> feature as defense in depth.</p>
|
|
<p>This issue was reported by
|
|
<a href="https://github.com/dywzju09-blip">@dywzju09-blip</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-0254: Unsoundness in sp-sized-chunks</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0254.html</id><updated>2026-08-12T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0254.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0254: Unsoundness in sp-sized-chunks"/><published>2026-08-12T12:00:00+00:00</published><summary xml:lang="en">Panic-safety unsoundness in `Chunk` and `InlineArray` (use-after-free / double-free)</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/sp-sized-chunks/RUSTSEC-2026-0254.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/sp-sized-chunks/RUSTSEC-2026-0254.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0254">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0254
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Panic-safety unsoundness in <code>Chunk</code> and <code>InlineArray</code> (use-after-free / double-free)</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-08-11">
|
|
August 11, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-08-12">
|
|
August 12, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/sp-sized-chunks.html">sp-sized-chunks</a>
|
|
|
|
(<a href="https://crates.io/crates/sp-sized-chunks">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="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/panic-safety.html">#panic-safety</a>
|
|
|
|
<a href="/keywords/memory-safety.html">#memory-safety</a>
|
|
|
|
<a href="/keywords/use-after-free.html">#use-after-free</a>
|
|
|
|
<a href="/keywords/double-free.html">#double-free</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>sp_sized_chunks::Chunk::clear</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.1.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>sp_sized_chunks::Chunk::drop_left</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.1.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>sp_sized_chunks::Chunk::drop_right</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.1.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>sp_sized_chunks::InlineArray::clear</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.1.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Several methods in <code>sp-sized-chunks</code> drop elements before updating the container's length/boundary metadata. If an element's <code>Drop</code> panics during the drop, the metadata update is skipped, so the container still treats the already-dropped elements as live. When the container is later dropped, its own <code>Drop</code> re-visits those slots and drops the freed elements again — a use-after-free / double-free reachable from safe Rust.</p>
|
|
<p><code>sp-sized-chunks</code> is a fork of <code>sized-chunks</code> (companion advisory filed separately) and carries the same bug. The repository is archived and the crate is still on 0.1.0 with no fix available.</p>
|
|
<h2>Impact</h2>
|
|
<ul>
|
|
<li><strong>CWE-415 (Double Free):</strong> the same allocation is freed twice (e.g. an element holding <code>Box&lt;T&gt;</code>).</li>
|
|
<li><strong>CWE-416 (Use-After-Free):</strong> an element reads its own freed allocation during <code>Drop</code> (e.g. <code>String</code>) — confirmed under AddressSanitizer.</li>
|
|
</ul>
|
|
<p>All are reachable from safe Rust via <code>catch_unwind</code> with element types whose <code>Drop</code> can panic.</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-0256: Unsoundness in circular-buffer</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0256.html</id><updated>2026-08-12T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0256.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0256: Unsoundness in circular-buffer"/><published>2026-08-12T12:00:00+00:00</published><summary xml:lang="en">Panic-safety unsoundness in `truncate_back`, `truncate_front`, `clear`, and `extend_from_slice` (use-after-free / double-free)</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/circular-buffer/RUSTSEC-2026-0256.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/circular-buffer/RUSTSEC-2026-0256.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0256">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0256
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Panic-safety unsoundness in <code>truncate_back</code>, <code>truncate_front</code>, <code>clear</code>, and <code>extend_from_slice</code> (use-after-free / double-free)</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-08-11">
|
|
August 11, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-08-12">
|
|
August 12, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/circular-buffer.html">circular-buffer</a>
|
|
|
|
(<a href="https://crates.io/crates/circular-buffer">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="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/panic-safety.html">#panic-safety</a>
|
|
|
|
<a href="/keywords/memory-safety.html">#memory-safety</a>
|
|
|
|
<a href="/keywords/use-after-free.html">#use-after-free</a>
|
|
|
|
<a href="/keywords/double-free.html">#double-free</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/andreacorbellini/rust-circular-buffer/blob/master/CHANGELOG.md">
|
|
https://github.com/andreacorbellini/rust-circular-buffer/blob/master/CHANGELOG.md
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=2.0.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>circular_buffer::CircularBuffer::clear</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>circular_buffer::CircularBuffer::extend_from_slice</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>circular_buffer::CircularBuffer::truncate_back</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>circular_buffer::CircularBuffer::truncate_front</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.0.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Several methods in <code>circular-buffer</code> drop elements before updating the buffer's start/end metadata. If an element's <code>Drop</code> panics during the drop, the metadata update is skipped, so the buffer still treats the already-dropped elements as live. When the buffer is later dropped (or used after the panic is caught), those elements are visited again — a use-after-free / double-free reachable from safe Rust.</p>
|
|
<h2>Impact</h2>
|
|
<ul>
|
|
<li><strong>CWE-415 (Double Free):</strong> the same allocation is freed twice.</li>
|
|
<li><strong>CWE-416 (Use-After-Free):</strong> a freed allocation is accessed during a repeated <code>Drop</code>.</li>
|
|
</ul>
|
|
<p>Reachable entirely from safe Rust via <code>catch_unwind</code> with element types whose <code>Drop</code> can panic.</p>
|
|
<h2>Fix</h2>
|
|
<p>Fixed in <code>circular-buffer</code> 2.0.1 by adjusting the buffer's start/end metadata before the elements are dropped.</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-2025-0169: Unsoundness in stainless_ffmpeg</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0169.html</id><updated>2026-08-11T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0169.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0169: Unsoundness in stainless_ffmpeg"/><published>2026-08-11T12:00:00+00:00</published><summary xml:lang="en">`FormatContext` stream accessors can cause undefined behavior from safe code</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/stainless_ffmpeg/RUSTSEC-2025-0169.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/stainless_ffmpeg/RUSTSEC-2025-0169.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0169">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0169
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>FormatContext</code> stream accessors can cause undefined behavior from safe code</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-04-24">
|
|
April 24, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-08-11">
|
|
August 11, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/stainless_ffmpeg.html">stainless_ffmpeg</a>
|
|
|
|
(<a href="https://crates.io/crates/stainless_ffmpeg">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unsound
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/nomalab/stainless-ffmpeg/issues/63">
|
|
https://github.com/nomalab/stainless-ffmpeg/issues/63
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/nomalab/stainless-ffmpeg/pull/64">
|
|
https://github.com/nomalab/stainless-ffmpeg/pull/64
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/nomalab/stainless-ffmpeg/commit/a649e8cb4e7c9859279d1dc85051df5e7a4932f7">
|
|
https://github.com/nomalab/stainless-ffmpeg/commit/a649e8cb4e7c9859279d1dc85051df5e7a4932f7
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.6.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>stainless_ffmpeg::format_context::FormatContext::get_codec_id</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.6.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>stainless_ffmpeg::format_context::FormatContext::get_stream</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.6.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>stainless_ffmpeg::format_context::FormatContext::get_stream_type</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.6.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>stainless_ffmpeg::format_context::FormatContext::get_stream_type_name</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.6.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Affected versions of <code>stainless_ffmpeg</code> exposed several safe public methods on <code>FormatContext</code> that accepted a <code>stream_index</code> parameter and used it in unsafe pointer operations without checking whether the index was valid. These methods performed pointer arithmetic and dereferenced the resulting stream pointer. Safe callers could pass a negative or out-of-bounds <code>stream_index</code>, which could cause out-of-bounds pointer access and undefined behavior from safe Rust code.</p>
|
|
<p>The issue was fixed in version <code>0.6.0</code> by marking the affected stream accessor methods as <code>unsafe</code> and documenting that callers must ensure <code>stream_index</code> is a valid stream index.</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-0253: Unsoundness in lru</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0253.html</id><updated>2026-08-11T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0253.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0253: Unsoundness in lru"/><published>2026-08-11T12:00:00+00:00</published><summary xml:lang="en">Potential use-after-free due to lack of panic safety in `LruCache::pop()`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/lru/RUSTSEC-2026-0253.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/lru/RUSTSEC-2026-0253.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0253">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0253
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Potential use-after-free due to lack of panic safety in <code>LruCache::pop()</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-12">
|
|
May 12, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-08-11">
|
|
August 11, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/lru.html">lru</a>
|
|
|
|
(<a href="https://crates.io/crates/lru">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="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/panic-safety.html">#panic-safety</a>
|
|
|
|
<a href="/keywords/memory-safety.html">#memory-safety</a>
|
|
|
|
<a href="/keywords/use-after-free.html">#use-after-free</a>
|
|
|
|
<a href="/keywords/double-free.html">#double-free</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/jeromefroe/lru-rs/pull/238">
|
|
https://github.com/jeromefroe/lru-rs/pull/238
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.18.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p><code>LruCache::pop()</code> in <code>lru</code> was not panic-safe. If the <code>Drop</code> implementation of a stored key panics during <code>pop()</code>, <code>self.detach()</code> is never called, leaving dangling pointers in the internal doubly-linked list.</p>
|
|
<p>A subsequent cache operation that triggers eviction can then dereference these dangling pointers:</p>
|
|
<ul>
|
|
<li>The node is freed from the map, but remains linked in the LRU list due to the skipped <code>detach()</code> call</li>
|
|
<li>When a new insertion causes eviction, the LRU traversal encounters the dangling pointer</li>
|
|
<li>This results in a write to already-freed memory during the eviction process</li>
|
|
</ul>
|
|
<h2>Impact</h2>
|
|
<ul>
|
|
<li><strong>CWE-416 (Use-After-Free):</strong> memory corruption when subsequent cache operations access freed node pointers in the linked list</li>
|
|
<li><strong>CWE-415 (Double Free):</strong> potential heap corruption when the same memory is freed multiple times</li>
|
|
</ul>
|
|
<p>Both types of undefined behavior can be invoked in safe Rust, but only if unwinding panics are enabled and <code>std::panic::catch_unwind</code> is used with key types that have potentially-panicking <code>Drop</code> implementations.</p>
|
|
<h2>Fix</h2>
|
|
<p>Fixed in <code>lru</code> 0.18.2 by detaching the node from the linked list before freeing it and dropping the key (<a href="https://github.com/jeromefroe/lru-rs/pull/238">lru-rs#238</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-0252: Unsoundness in orx-split-vec</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0252.html</id><updated>2026-08-11T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0252.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0252: Unsoundness in orx-split-vec"/><published>2026-08-11T12:00:00+00:00</published><summary xml:lang="en">Panic-safety unsoundness in `SplitVec::extend_from_slice` (uninitialized read)</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/orx-split-vec/RUSTSEC-2026-0252.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/orx-split-vec/RUSTSEC-2026-0252.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0252">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0252
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Panic-safety unsoundness in <code>SplitVec::extend_from_slice</code> (uninitialized read)</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-08-11">
|
|
August 11, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-08-11">
|
|
August 11, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/orx-split-vec.html">orx-split-vec</a>
|
|
|
|
(<a href="https://crates.io/crates/orx-split-vec">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="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/panic-safety.html">#panic-safety</a>
|
|
|
|
<a href="/keywords/memory-safety.html">#memory-safety</a>
|
|
|
|
<a href="/keywords/uninitialized-read.html">#uninitialized-read</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/orxfun/orx-split-vec/issues/95">
|
|
https://github.com/orxfun/orx-split-vec/issues/95
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=4.0.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p><code>SplitVec::extend_from_slice</code> increments the logical length <code>self.len</code> before cloning the incoming elements into the reserved slots. If an element's <code>Clone</code> panics mid-fill, unwinding leaves <code>self.len</code> counting slots that were never initialized. A later safe read (<code>get</code>, indexing, <code>iter</code>) then reads one of those uninitialized slots.</p>
|
|
<p>This is reachable from safe Rust — a read of uninitialized memory (CWE-908). It is not a double-free: <code>SplitVec</code> has no manual <code>Drop</code> and its elements live in a standard <code>Vec</code>, so the defect is a read, not a free.</p>
|
|
<h2>Impact</h2>
|
|
<p>A safe read after the panic returns a value built from uninitialized bytes. For a heap-owning element type such as <code>String</code>, the resulting value has garbage length/pointer fields.</p>
|
|
<p>Confirmed under Miri. AddressSanitizer stays silent for this class, since the uninitialized bytes are consumed as a non-dereferenced field rather than an invalid load or free.</p>
|
|
<h2>Fix</h2>
|
|
<p>Fixed in <code>orx-split-vec</code> 4.0.0, which no longer commits the length before the elements are cloned.</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-2025-0168: Vulnerability in zip</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0168.html</id><updated>2026-08-11T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0168.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0168: Vulnerability in zip"/><published>2026-08-11T12:00:00+00:00</published><summary xml:lang="en">Incorrect path canonicalization during Archive Extraction Leading to Arbitrary File Write</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/zip/RUSTSEC-2025-0168.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/zip/RUSTSEC-2025-0168.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0168">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0168
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Incorrect path canonicalization during Archive Extraction Leading to Arbitrary File Write</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-03-16">
|
|
March 16, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-08-11">
|
|
August 11, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/zip.html">zip</a>
|
|
|
|
(<a href="https://crates.io/crates/zip">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/file-overwrite.html">#file-overwrite</a>
|
|
|
|
<a href="/keywords/symlink.html">#symlink</a>
|
|
|
|
<a href="/keywords/path-traversal.html">#path-traversal</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-29787">CVE-2025-29787</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-94vh-gphv-8pm8">GHSA-94vh-gphv-8pm8</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8">
|
|
https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>7.3 <span class="tag high">
|
|
HIGH
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack Complexity</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Attack Requirements</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Attack Vector</dt>
|
|
<dd>Network</dd>
|
|
|
|
<dt>Privileges Required</dt>
|
|
<dd>Low</dd>
|
|
|
|
<dt>Availability Impact to the Subsequent System</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Confidentiality Impact to the Subsequent System</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Integrity Impact to the Subsequent System</dt>
|
|
<dd>High</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>Low</dd>
|
|
|
|
<dt>Integrity Impact to the Vulnerable System</dt>
|
|
<dd>High</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:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:H/SI:H/SA:H">CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:H/SI:H/SA:H</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=2.3.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;1.3.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>zip::read::ZipArchive::extract</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.0, &#62;=1.3.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>zip::unstable::stream::ZipStreamReader::extract</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.0, &#62;=1.3.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>In the archive extraction routine of affected versions of the zip crate, symbolic links earlier in the archive are allowed to be used for later files in the archive without validation of the final canonicalized path, allowing maliciously crafted archives to overwrite arbitrary files in the file system when extracted.</p>
|
|
<p>For more details, see the GitHub-hosted security advisory: <a href="https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8">https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8</a></p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC-BY-4.0.html">CC-BY-4.0</a>
|
|
license.
|
|
|
|
|
|
|
|
|
|
Source: <a href="https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8">https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8</a>
|
|
|
|
|
|
</p>
|
|
</article></content></entry></feed> |