mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 17:04:32 -06:00
1837 lines
64 KiB
XML
1837 lines
64 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-05-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-0151: Vulnerability in jxl-grid</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0151.html</id><updated>2026-05-29T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0151.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0151: Vulnerability in jxl-grid"/><published>2026-05-29T12:00:00+00:00</published><summary xml:lang="en">Out-of-bounds writes due to integer overflow in jxl-grid on 32-bit platforms</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/jxl-grid/RUSTSEC-2026-0151.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/jxl-grid/RUSTSEC-2026-0151.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0151">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0151
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Out-of-bounds writes due to integer overflow in jxl-grid on 32-bit platforms</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-29">
|
|
May 29, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-29">
|
|
May 29, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/jxl-grid.html">jxl-grid</a>
|
|
|
|
(<a href="https://crates.io/crates/jxl-grid">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-5pmv-rx8r-wmv5">GHSA-5pmv-rx8r-wmv5</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/tirr-c/jxl-oxide/security/advisories/GHSA-5pmv-rx8r-wmv5">
|
|
https://github.com/tirr-c/jxl-oxide/security/advisories/GHSA-5pmv-rx8r-wmv5
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.6.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>On 32-bit platforms, decoding a crafted image may lead to out-of-bounds writes due to integer overflow in length calculation. This could allow arbitrary code execution.</p>
|
|
<h3>Details &amp; PoC</h3>
|
|
<p>The test listed below fail under miri with command <code>cargo +nightly miri test --release -p jxl-grid</code></p>
|
|
<p>Or you can use Address Sanitizer, which ignores Rust-specific UB like aliasing but still flags out-of-bounds accesses:</p>
|
|
<p><code>RUSTFLAGS=-Zsanitizer=address cargo +nightly test -Zbuild-std -p jxl-grid --release --target x86_64-unknown-linux-gnu</code></p>
|
|
<p>The following tests should be appended to <code>crates/jxl-grid/src/test/subgrids.rs</code>:</p>
|
|
<pre><code class="language-rust">mod miri_ub {
|
|
use super::*;
|
|
|
|
// `AlignedGrid::with_alloc_tracker` computes `width * height` unchecked. In release, overflow
|
|
// can create a tiny backing buffer for huge logical dimensions.
|
|
#[test]
|
|
fn aligned_grid_dimension_product_overflows() {
|
|
let width = usize::MAX / 2 + 1;
|
|
let mut grid = AlignedGrid::&lt;u8&gt;::with_alloc_tracker(width, 2, None).unwrap();
|
|
let mut subgrid = grid.as_subgrid_mut();
|
|
*subgrid.get_mut(0, 1) = 1;
|
|
std::hint::black_box(grid);
|
|
}
|
|
}
|
|
</code></pre>
|
|
<p>This issue can be reachable through decoding a crafted image in two ways:</p>
|
|
<ol>
|
|
<li>
|
|
<p><strong>Huge actual frame</strong>
|
|
A frame such as <code>65536 x 65536</code> passes the current frame area limit (<code>2^32 &lt;= 2^40</code>) but overflows <code>usize</code> element count on 32-bit. Rendering then allocates too-small <code>AlignedGrid</code>s in modular/VarDCT/filter paths and later writes through mutable subgrids.</p>
|
|
</li>
|
|
<li>
|
|
<p><strong>Huge canvas plus tiny cropped frame</strong>
|
|
This is the more practical “small payload, huge logical output” case. A bitstream-controlled frame crop can be tiny, but if the canvas/default requested region is huge, composition can allocate an output grid sized to the canvas/ROI at crates/jxl-render/src/blend.rs. That is bitstream frame cropping, not API crop. With a 32-bit target and a full requested image region whose area overflows, this can happen through ordinary <code>render_frame()</code>.</p>
|
|
</li>
|
|
</ol>
|
|
|
|
|
|
<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-0150: audiopus_sys is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0150.html</id><updated>2026-05-27T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0150.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0150: audiopus_sys is unmaintained"/><published>2026-05-22T12:00:00+00:00</published><summary xml:lang="en">audiopus_sys 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/audiopus_sys/RUSTSEC-2026-0150.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/audiopus_sys/RUSTSEC-2026-0150.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0150">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0150
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>audiopus_sys is unmaintained</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-05-22">
|
|
May 22, 2026
|
|
</time>
|
|
|
|
<time datetime="2026-05-27">
|
|
(last modified: May 27, 2026)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/audiopus_sys.html">audiopus_sys</a>
|
|
|
|
(<a href="https://crates.io/crates/audiopus_sys">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/Lakelezz/audiopus_sys/issues/22">
|
|
https://github.com/Lakelezz/audiopus_sys/issues/22
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/rustsec/advisory-db/issues/2704">
|
|
https://github.com/rustsec/advisory-db/issues/2704
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/Lakelezz/audiopus_sys/pull/23">
|
|
https://github.com/Lakelezz/audiopus_sys/pull/23
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>audiopus_sys is implicitly unmaintained and holds a reference to CMake versions with which CMake 4.0 is not backwards compatible, causing cargo builds to error. An effort to contact the maintainer was made on June 10th, 2025 with no reply. A separate 2025 PR was made (from a different user) addressing the CMake 4.0 issue with no reply. The last commit to audiopus_sys is dated 5 years ago.</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-0149: Vulnerability in wasmtime-wasi</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0149.html</id><updated>2026-05-22T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0149.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0149: Vulnerability in wasmtime-wasi"/><published>2026-05-22T12:00:00+00:00</published><summary xml:lang="en">WASI path_open(TRUNCATE) bypasses `FilePerms::WRITE` host restriction</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/wasmtime-wasi/RUSTSEC-2026-0149.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/wasmtime-wasi/RUSTSEC-2026-0149.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0149">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0149
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>WASI path_open(TRUNCATE) bypasses <code>FilePerms::WRITE</code> host restriction</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-05-22">
|
|
May 22, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/wasmtime-wasi.html">wasmtime-wasi</a>
|
|
|
|
(<a href="https://crates.io/crates/wasmtime-wasi">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-47261">CVE-2026-47261</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-2r75-cxrj-cmph">GHSA-2r75-cxrj-cmph</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2r75-cxrj-cmph">
|
|
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2r75-cxrj-cmph
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>7.5 <span class="tag high">
|
|
HIGH
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack Vector</dt>
|
|
<dd>Network</dd>
|
|
|
|
<dt>Attack Complexity</dt>
|
|
<dd>Low</dd>
|
|
|
|
<dt>Privileges Required</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>User Interaction</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Scope</dt>
|
|
<dd>Unchanged</dd>
|
|
|
|
<dt>Confidentiality Impact</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Integrity Impact</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Availability Impact</dt>
|
|
<dd>None</dd>
|
|
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt id="cvss">CVSS Vector</dt>
|
|
|
|
|
|
<dd><a href="https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=24.0.9, &#60;25.0.0</code></li>
|
|
|
|
<li><code>&#62;=36.0.10, &#60;37.0.0</code></li>
|
|
|
|
<li><code>&#62;=44.0.2, &#60;45.0.0</code></li>
|
|
|
|
<li><code>&#62;=45.0.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>This is an entry in the RustSec database for the Wasmtime security advisory
|
|
located at
|
|
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2r75-cxrj-cmph
|
|
For more information see the GitHub-hosted security advisory.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2026-0148: Vulnerability in boxlite</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0148.html</id><updated>2026-05-20T12:00:00+00:00</updated><category term="privilege-escalation"/><category term="file-disclosure"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0148.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0148: Vulnerability in boxlite"/><published>2026-05-20T12:00:00+00:00</published><summary xml:lang="en">OCI layer symlink escape → arbitrary host write</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/boxlite/RUSTSEC-2026-0148.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/boxlite/RUSTSEC-2026-0148.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0148">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0148
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>OCI layer symlink escape → arbitrary host write</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-16">
|
|
May 16, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-20">
|
|
May 20, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/boxlite.html">boxlite</a>
|
|
|
|
(<a href="https://crates.io/crates/boxlite">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/privilege-escalation.html">privilege-escalation</a></li>
|
|
|
|
<li><a href="/categories/file-disclosure.html">file-disclosure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/sandbox.html">#sandbox</a>
|
|
|
|
<a href="/keywords/container.html">#container</a>
|
|
|
|
<a href="/keywords/oci.html">#oci</a>
|
|
|
|
<a href="/keywords/tar.html">#tar</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-2026-46703">CVE-2026-46703</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-f396-4rp4-7v2j">GHSA-f396-4rp4-7v2j</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/boxlite-ai/boxlite/security/advisories/GHSA-f396-4rp4-7v2j">
|
|
https://github.com/boxlite-ai/boxlite/security/advisories/GHSA-f396-4rp4-7v2j
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/boxlite-ai/boxlite/pull/429">
|
|
https://github.com/boxlite-ai/boxlite/pull/429
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/boxlite-ai/boxlite/pull/446">
|
|
https://github.com/boxlite-ai/boxlite/pull/446
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/boxlite-ai/boxlite/pull/461">
|
|
https://github.com/boxlite-ai/boxlite/pull/461
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>10 <span class="tag critical">
|
|
CRITICAL
|
|
</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>Changed</dd>
|
|
|
|
<dt>Confidentiality Impact</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Integrity Impact</dt>
|
|
<dd>High</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:C/C:H/I:H/A:H">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.9.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Affected versions of <code>boxlite</code> extract OCI image layer tarballs without
|
|
fully containing path resolution to the extraction root. A crafted layer
|
|
containing a symlink whose target is an absolute on-host path (e.g.
|
|
<code>escape -&gt; /tmp</code>) followed by a file entry that resolves through that
|
|
symlink (e.g. <code>escape/&lt;path&gt;/pwned.txt</code>) caused the extractor to write
|
|
the payload to the host filesystem outside the intended rootfs directory.</p>
|
|
<p>The fix in v0.9.0 routes every destructive filesystem operation through a
|
|
<code>SafeRoot</code> handle (<code>openat2(RESOLVE_IN_ROOT)</code> on Linux, lexical fallback
|
|
elsewhere) so that no tar entry can resolve outside the extraction root,
|
|
even with adversarial symlinks placed by earlier entries in the same
|
|
layer.</p>
|
|
<p>This is a container-escape during image extraction, exploitable by any
|
|
user who pulls or loads a malicious OCI image — including via
|
|
<code>SimpleBox(rootfs_path=...)</code> from an untrusted local layout.</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-0147: Vulnerability in boxlite</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0147.html</id><updated>2026-05-20T12:00:00+00:00</updated><category term="privilege-escalation"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0147.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0147: Vulnerability in boxlite"/><published>2026-05-20T12:00:00+00:00</published><summary xml:lang="en">Read-only volume remount bypass via guest CAP_SYS_ADMIN</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/boxlite/RUSTSEC-2026-0147.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/boxlite/RUSTSEC-2026-0147.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0147">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0147
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Read-only volume remount bypass via guest CAP_SYS_ADMIN</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-16">
|
|
May 16, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-20">
|
|
May 20, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/boxlite.html">boxlite</a>
|
|
|
|
(<a href="https://crates.io/crates/boxlite">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/privilege-escalation.html">privilege-escalation</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/sandbox.html">#sandbox</a>
|
|
|
|
<a href="/keywords/container.html">#container</a>
|
|
|
|
<a href="/keywords/vm.html">#vm</a>
|
|
|
|
<a href="/keywords/virtiofs.html">#virtiofs</a>
|
|
|
|
<a href="/keywords/mount.html">#mount</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-46695">CVE-2026-46695</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-g6ww-w5j2-r7x3">GHSA-g6ww-w5j2-r7x3</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/boxlite-ai/boxlite/security/advisories/GHSA-g6ww-w5j2-r7x3">
|
|
https://github.com/boxlite-ai/boxlite/security/advisories/GHSA-g6ww-w5j2-r7x3
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/boxlite-ai/boxlite/pull/454">
|
|
https://github.com/boxlite-ai/boxlite/pull/454
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>10 <span class="tag critical">
|
|
CRITICAL
|
|
</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>Changed</dd>
|
|
|
|
<dt>Confidentiality Impact</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Integrity Impact</dt>
|
|
<dd>High</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:C/C:H/I:H/A:H">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.9.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Affected versions of <code>boxlite</code> mount host directories shared via virtiofs
|
|
as guest-side read-only by setting <code>MS_RDONLY</code> from the guest. Because the
|
|
default guest capability set included <code>CAP_SYS_ADMIN</code>, untrusted code
|
|
running inside a sandbox could execute <code>mount -o remount,rw &lt;path&gt;</code> to
|
|
re-flag the share as read-write and then write through to the host
|
|
filesystem — fully escaping the read-only contract <code>boxlite</code> advertised
|
|
to callers.</p>
|
|
<p>The fix in v0.9.0 enforces read-only at the hypervisor level via
|
|
<code>krun_add_virtiofs3</code> (so the guest's <code>MS_RDONLY</code> is no longer the
|
|
authoritative gate) and drops <code>CAP_SYS_ADMIN</code> from the default guest
|
|
capability set (matching Docker's defaults).</p>
|
|
<p>This is a sandbox-escape bug: <code>boxlite</code> is a sandboxing runtime, so the
|
|
read-only invariant is part of its security contract. CVSS rated 10.0 by
|
|
the upstream advisory.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0162: Unsoundness in vku</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0162.html</id><updated>2026-05-20T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0162.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0162: Unsoundness in vku"/><published>2026-05-20T12:00:00+00:00</published><summary xml:lang="en">`VMABuffer::set_data` may allow out-of-bounds writes 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/vku/RUSTSEC-2025-0162.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/vku/RUSTSEC-2025-0162.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0162">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0162
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>VMABuffer::set_data</code> may allow out-of-bounds writes from safe code</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-04-23">
|
|
April 23, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-20">
|
|
May 20, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/vku.html">vku</a>
|
|
|
|
(<a href="https://crates.io/crates/vku">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/ArrowMaxGithub/vku/issues/5">
|
|
https://github.com/ArrowMaxGithub/vku/issues/5
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/ArrowMaxGithub/vku/commit/ce02c19ec35e5ee84c00ec5005be9d6d44599b5f">
|
|
https://github.com/ArrowMaxGithub/vku/commit/ce02c19ec35e5ee84c00ec5005be9d6d44599b5f
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.4.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>vku::VMABuffer::set_data</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;=0.3.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p><code>VMABuffer::set_data</code> was a publicly accessible safe function. It accepted an arbitrary <code>offset</code> and a data slice, then used the offset in unsafe pointer arithmetic before copying the slice into a mapped allocation.</p>
|
|
<p>Affected versions did not check that the requested write range fit within the allocation before calling <code>ptr.add(offset)</code> and <code>copy_from_nonoverlapping</code>. Safe Rust code could therefore trigger an out-of-bounds write by passing an offset outside the mapped allocation.</p>
|
|
<p>This makes the safe API unsound, since callers can trigger undefined behavior without using <code>unsafe</code>.</p>
|
|
<p>Version <code>0.4.0</code> added a bounds check before performing the pointer arithmetic and copy.</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-0145: Vulnerability in astral-tokio-tar</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0145.html</id><updated>2026-05-19T12:00:00+00:00</updated><category term="file-disclosure"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0145.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0145: Vulnerability in astral-tokio-tar"/><published>2026-05-19T12:00:00+00:00</published><summary xml:lang="en">PAX Header Desynchronization in astral-tokio-tar</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/astral-tokio-tar/RUSTSEC-2026-0145.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/astral-tokio-tar/RUSTSEC-2026-0145.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0145">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0145
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>PAX Header Desynchronization in astral-tokio-tar</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-18">
|
|
May 18, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-19">
|
|
May 19, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/astral-tokio-tar.html">astral-tokio-tar</a>
|
|
|
|
(<a href="https://crates.io/crates/astral-tokio-tar">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/file-disclosure.html">file-disclosure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/tar.html">#tar</a>
|
|
|
|
<a href="/keywords/chmod.html">#chmod</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-3cv2-h65g-fgmm">GHSA-3cv2-h65g-fgmm</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-3cv2-h65g-fgmm">
|
|
https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-3cv2-h65g-fgmm
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.6.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Versions of astral-tokio-tar prior to 0.6.2 contain a PAX header interpretation bug that allows manipulated entries to be made selectively visible or invisible during extraction with astral-tokio-tar versus other tar implementations. An attacker could use this differential to smuggle unexpected files onto a victim's filesystem.</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-0146: Vulnerability in anchor-lang</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0146.html</id><updated>2026-05-19T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0146.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0146: Vulnerability in anchor-lang"/><published>2026-05-19T12:00:00+00:00</published><summary xml:lang="en">`InterfaceAccount` allows account substitution between unexpected types</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/anchor-lang/RUSTSEC-2026-0146.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/anchor-lang/RUSTSEC-2026-0146.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0146">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0146
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>InterfaceAccount</code> allows account substitution between unexpected types</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-08">
|
|
May 8, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-19">
|
|
May 19, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/anchor-lang.html">anchor-lang</a>
|
|
|
|
(<a href="https://crates.io/crates/anchor-lang">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/solana.html">#solana</a>
|
|
|
|
<a href="/keywords/anchor.html">#anchor</a>
|
|
|
|
<a href="/keywords/account-validation.html">#account-validation</a>
|
|
|
|
<a href="/keywords/interface-account.html">#interface-account</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-429q-fhh4-r6hj">GHSA-429q-fhh4-r6hj</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/otter-sec/anchor/security/advisories/GHSA-429q-fhh4-r6hj">
|
|
https://github.com/otter-sec/anchor/security/advisories/GHSA-429q-fhh4-r6hj
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/otter-sec/anchor/pull/3837">
|
|
https://github.com/otter-sec/anchor/pull/3837
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/otter-sec/anchor/pull/4139">
|
|
https://github.com/otter-sec/anchor/pull/4139
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/otter-sec/anchor/commit/26ef36968a62e28a1f028e7adae4806af30c747d">
|
|
https://github.com/otter-sec/anchor/commit/26ef36968a62e28a1f028e7adae4806af30c747d
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>8.7 <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>None</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>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:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N">CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=1.0.0-rc.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;1.0.0-rc.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Affected versions of <code>anchor-lang</code> allowed <code>InterfaceAccount</code> to accept accounts
|
|
with an unexpected Anchor discriminator. A change to <code>InterfaceAccount</code> caused
|
|
checked deserialization to be bypassed for this account wrapper, so validation
|
|
proved only that the account owner matched one of the accepted interface owners.
|
|
It did not prove that the account data belonged to the expected account type.</p>
|
|
<p>Programs using <code>InterfaceAccount</code> rely on Anchor to enforce both owner and
|
|
account-type validation before the handler runs. With discriminator checking
|
|
disabled, an attacker could pass another account type owned by an accepted
|
|
program and have it deserialized through the expected interface wrapper. This
|
|
could bypass account-type assumptions made by the program and lead to incorrect
|
|
authorization or state handling.</p>
|
|
<p>The issue was fixed in <code>anchor-lang</code> 1.0.0-rc.2 by restoring checked
|
|
deserialization for <code>InterfaceAccount::try_from</code>, while keeping explicitly
|
|
unchecked behavior available only through the unchecked API. Users should
|
|
upgrade to <code>anchor-lang</code> 1.0.0-rc.2 or later.</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/otter-sec/anchor/security/advisories/GHSA-429q-fhh4-r6hj">https://github.com/otter-sec/anchor/security/advisories/GHSA-429q-fhh4-r6hj</a>
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2026-0144: Vulnerability in anchor-lang</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0144.html</id><updated>2026-05-18T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0144.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0144: Vulnerability in anchor-lang"/><published>2026-05-18T12:00:00+00:00</published><summary xml:lang="en">`Program&lt;System&gt;` accepts arbitrary executable programs</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/anchor-lang/RUSTSEC-2026-0144.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/anchor-lang/RUSTSEC-2026-0144.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0144">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0144
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>Program&lt;System&gt;</code> accepts arbitrary executable programs</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-07">
|
|
May 7, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-18">
|
|
May 18, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/anchor-lang.html">anchor-lang</a>
|
|
|
|
(<a href="https://crates.io/crates/anchor-lang">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/solana.html">#solana</a>
|
|
|
|
<a href="/keywords/anchor.html">#anchor</a>
|
|
|
|
<a href="/keywords/account-validation.html">#account-validation</a>
|
|
|
|
<a href="/keywords/system-program.html">#system-program</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-45137">CVE-2026-45137</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-c6rc-8jpp-2fgc">GHSA-c6rc-8jpp-2fgc</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/otter-sec/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc">
|
|
https://github.com/otter-sec/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/solana-foundation/anchor/releases/tag/v1.0.2">
|
|
https://github.com/solana-foundation/anchor/releases/tag/v1.0.2
|
|
</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 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>Low</dd>
|
|
|
|
<dt>Integrity Impact</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Availability Impact</dt>
|
|
<dd>None</dd>
|
|
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt id="cvss">CVSS Vector</dt>
|
|
|
|
|
|
<dd><a href="https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=1.0.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;1.0.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Affected versions of <code>anchor-lang</code> did not properly validate accounts declared
|
|
as <code>Program&lt;'info, System&gt;</code>. The generic <code>Program&lt;T&gt;</code> validation path used
|
|
<code>Pubkey::default()</code> as a sentinel to decide whether any executable program
|
|
should be accepted. Since the system program id is also the default pubkey,
|
|
<code>Program&lt;'info, System&gt;</code> was treated like the untyped <code>Program&lt;'info&gt;</code> case and
|
|
accepted any executable program account.</p>
|
|
<p>Programs commonly rely on <code>Program&lt;'info, System&gt;</code> to ensure that CPI calls and
|
|
instruction builders target the real Solana system program. With the faulty
|
|
validation, an attacker could supply another executable program where the system
|
|
program was expected, causing downstream logic to make false assumptions about
|
|
payments, account creation, or other system-program CPIs.</p>
|
|
<p>The issue was fixed in <code>anchor-lang</code> 1.0.2 by separating the typed
|
|
<code>Program&lt;T&gt;</code> validation path from the untyped <code>Program&lt;()&gt;</code> path, so
|
|
<code>Program&lt;'info, System&gt;</code> now checks the provided account key against the system
|
|
program id. Users should upgrade to <code>anchor-lang</code> 1.0.2 or later.</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/otter-sec/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc">https://github.com/otter-sec/anchor/security/advisories/GHSA-c6rc-8jpp-2fgc</a>
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2026-0143: Unsoundness in oneringbuf</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0143.html</id><updated>2026-05-14T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0143.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0143: Unsoundness in oneringbuf"/><published>2026-05-14T12:00:00+00:00</published><summary xml:lang="en">Double-free in `vmem` storage reachable from safe Rust</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/oneringbuf/RUSTSEC-2026-0143.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/oneringbuf/RUSTSEC-2026-0143.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0143">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0143
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Double-free in <code>vmem</code> storage reachable from safe Rust</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-14">
|
|
May 14, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-14">
|
|
May 14, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/oneringbuf.html">oneringbuf</a>
|
|
|
|
(<a href="https://crates.io/crates/oneringbuf">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/double-free.html">#double-free</a>
|
|
|
|
<a href="/keywords/use-after-free.html">#use-after-free</a>
|
|
|
|
<a href="/keywords/vmem.html">#vmem</a>
|
|
|
|
<a href="/keywords/drop.html">#drop</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/skilvingr/rust-oneringbuf/pull/3">
|
|
https://github.com/skilvingr/rust-oneringbuf/pull/3
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.7.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>oneringbuf::VmemStorage::new</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.7.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>When the <code>vmem</code> feature is enabled, <code>VmemStorage&lt;T&gt;::new(Box&lt;[UnsafeSyncCell&lt;T&gt;]&gt;)</code> (and every public constructor that funnels through it — <code>ConcurrentHeapRB::default(cap)</code>, <code>ConcurrentHeapRB::from(Vec&lt;T&gt;)</code>, <code>From&lt;Box&lt;[T]&gt;&gt;</code>, etc.) bit-copies the input buffer into a freshly <code>mmap</code>'d region with <code>ptr::copy_nonoverlapping</code>, then lets the source <code>Box&lt;[UnsafeSyncCell&lt;T&gt;]&gt;</code> drop normally.</p>
|
|
<p>Because <code>UnsafeSyncCell&lt;T&gt;</code> has a <code>Drop</code> impl that runs <code>assume_init_drop</code> on its inner <code>MaybeUninit&lt;T&gt;</code>, the source-side <code>T</code> values are dropped at the end of <code>new</code>, while bitwise duplicates (carrying the same heap pointers for <code>String</code>, <code>Box</code>, <code>Vec</code>, <code>Arc</code>, …) remain inside the mmap region. When the ring buffer is later destructed, the destructor's <code>drop_in_place</code> over the slice runs <code>UnsafeSyncCell::drop</code> a second time on every cell — a deterministic double-free of every heap-owning element. Reachable from 100% safe Rust.</p>
|
|
<h2>Trigger</h2>
|
|
<pre><code class="language-rust">let v: Vec&lt;Vec&lt;u32&gt;&gt; = (0..1024).map(|i| vec![i, i+1, i+2]).collect();
|
|
let rb: oneringbuf::SharedVmemRB&lt;Vec&lt;u32&gt;&gt; = oneringbuf::SharedVmemRB::from(v);
|
|
drop(rb);
|
|
// glibc: free(): double free detected in tcache 2 -&gt; abort
|
|
// ASan: AddressSanitizer: attempting double-free
|
|
</code></pre>
|
|
<p>Any <code>T</code> with a non-trivial <code>Drop</code> reproduces deterministically.</p>
|
|
<h2>Fix</h2>
|
|
<p>Fixed in <code>0.7.1</code> via upstream PR <a href="https://github.com/skilvingr/rust-oneringbuf/pull/3">skilvingr/rust-oneringbuf#3</a>, which deallocates the source <code>Box&lt;[UnsafeSyncCell&lt;T&gt;]&gt;</code> without running per-element <code>Drop</code> after the bytes have been copied into the mmap region. Vulnerable versions (<code>&lt; 0.7.1</code>) have been yanked from crates.io.</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> |