mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 18:34:31 -06:00
4079 lines
139 KiB
XML
4079 lines
139 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-20T12: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-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-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><entry><title>RUSTSEC-2026-0141: Vulnerability in lettre</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0141.html</id><updated>2026-05-14T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0141.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0141: Vulnerability in lettre"/><published>2026-05-14T12:00:00+00:00</published><summary xml:lang="en">TLS hostname verification disabled when using Boring TLS backend</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/lettre/RUSTSEC-2026-0141.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/lettre/RUSTSEC-2026-0141.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0141">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0141
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>TLS hostname verification disabled when using Boring TLS backend</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/lettre.html">lettre</a>
|
|
|
|
(<a href="https://crates.io/crates/lettre">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/crypto-failure.html">crypto-failure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/tls.html">#tls</a>
|
|
|
|
<a href="/keywords/smtp.html">#smtp</a>
|
|
|
|
<a href="/keywords/mitm.html">#mitm</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-4pj9-g833-qx53">GHSA-4pj9-g833-qx53</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/lettre/lettre/security/advisories/GHSA-4pj9-g833-qx53">
|
|
https://github.com/lettre/lettre/security/advisories/GHSA-4pj9-g833-qx53
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>9.1 <span class="tag critical">
|
|
CRITICAL
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack Complexity</dt>
|
|
<dd>Low</dd>
|
|
|
|
<dt>Attack Requirements</dt>
|
|
<dd>Present</dd>
|
|
|
|
<dt>Attack Vector</dt>
|
|
<dd>Network</dd>
|
|
|
|
<dt>Privileges Required</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Availability Impact to the Subsequent System</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Confidentiality Impact to the Subsequent System</dt>
|
|
<dd>Low</dd>
|
|
|
|
<dt>Integrity Impact to the Subsequent System</dt>
|
|
<dd>Low</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>High</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:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N">CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.11.22</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.10.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>An inverted-boolean bug in lettre's <code>boring-tls</code> integration silently
|
|
disables TLS hostname verification for callers using the default (strict)
|
|
configuration. An on-path attacker presenting any chain-valid certificate
|
|
for any domain can intercept SMTP submission, including PLAIN/LOGIN
|
|
credentials and message contents, against any lettre user built with the
|
|
<code>boring-tls</code> feature. Other TLS backends (<code>native-tls</code>, <code>rustls</code>) are
|
|
unaffected.</p>
|
|
<p>The bug was introduced in v0.10.1 and persists through v0.11.21 (latest).</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-0142: Unsoundness in mutringbuf</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0142.html</id><updated>2026-05-14T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0142.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0142: Unsoundness in mutringbuf"/><published>2026-05-14T12:00:00+00:00</published><summary xml:lang="en">Double-free in `vmem` storage reachable from safe Rust (predecessor of `oneringbuf`)</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/mutringbuf/RUSTSEC-2026-0142.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/mutringbuf/RUSTSEC-2026-0142.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0142">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0142
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Double-free in <code>vmem</code> storage reachable from safe Rust (predecessor of <code>oneringbuf</code>)</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/mutringbuf.html">mutringbuf</a>
|
|
|
|
(<a href="https://crates.io/crates/mutringbuf">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>
|
|
|
|
<a href="/keywords/unmaintained.html">#unmaintained</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/Skilvingr/rust-mutringbuf">
|
|
https://github.com/Skilvingr/rust-mutringbuf
|
|
</a>
|
|
</li>
|
|
|
|
<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>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>mutringbuf::VmemStorage::new</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>*</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p><code>mutringbuf</code> is the archived predecessor of <a href="https://crates.io/crates/oneringbuf"><code>oneringbuf</code></a> — the crate was renamed and the GitHub repository was archived on 2025-11-20. All released versions up to <code>1.0.0</code> carry the same <code>vmem</code>-feature double-free bug that affects <code>oneringbuf</code>, with the same code paths and the same reproduction shape.</p>
|
|
<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) 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. 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 remain inside the mmap region. The ring-buffer destructor then 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: mutringbuf::SharedVmemRB&lt;Vec&lt;u32&gt;&gt; = mutringbuf::SharedVmemRB::from(v);
|
|
drop(rb);
|
|
// glibc: free(): double free detected in tcache 2 -&gt; abort
|
|
</code></pre>
|
|
<h2>Fix</h2>
|
|
<p><code>mutringbuf</code> is no longer maintained. The author renamed the crate to <a href="https://crates.io/crates/oneringbuf"><code>oneringbuf</code></a> and shipped the fix as <code>oneringbuf 0.7.1</code> (upstream PR <a href="https://github.com/skilvingr/rust-oneringbuf/pull/3">skilvingr/rust-oneringbuf#3</a>). All <code>mutringbuf</code> versions have been yanked from crates.io. Users should migrate to <code>oneringbuf &gt;= 0.7.1</code>.</p>
|
|
<p>See the parallel advisory for the <code>oneringbuf</code> crate for the full technical write-up of the bug.</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-0125: Vulnerability in libcrux-ml-dsa</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0125.html</id><updated>2026-05-20T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0125.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0125: Vulnerability in libcrux-ml-dsa"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Signature Verification on AVX2 Platforms Mishandles Edge Case</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/libcrux-ml-dsa/RUSTSEC-2026-0125.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/libcrux-ml-dsa/RUSTSEC-2026-0125.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0125">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0125
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Signature Verification on AVX2 Platforms Mishandles Edge Case</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-05">
|
|
May 5, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
<time datetime="2026-05-20">
|
|
(last modified: May 20, 2026)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/libcrux-ml-dsa.html">libcrux-ml-dsa</a>
|
|
|
|
(<a href="https://crates.io/crates/libcrux-ml-dsa">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-fhvh-vw7h-9xf3">GHSA-fhvh-vw7h-9xf3</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/cryspen/libcrux/pull/1398">
|
|
https://github.com/cryspen/libcrux/pull/1398
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/C2SP/wycheproof/pull/234">
|
|
https://github.com/C2SP/wycheproof/pull/234
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/tink-crypto/tink-go/pull/48">
|
|
https://github.com/tink-crypto/tink-go/pull/48
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>8.2 <span class="tag high">
|
|
HIGH
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack Complexity</dt>
|
|
<dd>Low</dd>
|
|
|
|
<dt>Attack Requirements</dt>
|
|
<dd>Present</dd>
|
|
|
|
<dt>Attack Vector</dt>
|
|
<dd>Network</dd>
|
|
|
|
<dt>Privileges Required</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Availability Impact to the Subsequent System</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Confidentiality Impact to the Subsequent System</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Integrity Impact to the Subsequent System</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>User Interaction</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Availability Impact to the Vulnerable System</dt>
|
|
<dd>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:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N">CVSS:4.0/AV:N/AC:L/AT:P/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;=0.0.9</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt>Affected Architectures</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>x86_64</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The AVX2 implementation of ML-DSA verification incorrectly implemented
|
|
the <code>use_hint</code> function, mishandling an edge case that should lead to
|
|
signature rejection.</p>
|
|
<h2>Impact</h2>
|
|
<p>An attacker could make the ML-DSA verifier accept a crafted invalid
|
|
signature under a maliciously generated verification key, if the AVX2
|
|
implementation is used.</p>
|
|
<h2>Mitigation</h2>
|
|
<p>From version <code>0.0.9</code> the edge case is handled correctly and invalid
|
|
signatures are rejected.</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-0126: Security notice about libcrux-ml-dsa</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0126.html</id><updated>2026-05-13T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0126.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0126: Security notice about libcrux-ml-dsa"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">AVX2 Implementation Did Not Fully Reduce Intermediate Values</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/libcrux-ml-dsa/RUSTSEC-2026-0126.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/libcrux-ml-dsa/RUSTSEC-2026-0126.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0126">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0126
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>AVX2 Implementation Did Not Fully Reduce Intermediate Values</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-04-27">
|
|
April 27, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/libcrux-ml-dsa.html">libcrux-ml-dsa</a>
|
|
|
|
(<a href="https://crates.io/crates/libcrux-ml-dsa">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Notice
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/cryspen/libcrux/pull/1395">
|
|
https://github.com/cryspen/libcrux/pull/1395
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.0.9</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt>Affected Architectures</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>x86_64</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The AVX2 implementation of ML-DSA did not fully reduce intermediate
|
|
inputs to the inverse NTT, which leads to a testable difference in
|
|
panic behaviour of internal functions compared to the portable
|
|
implementation.</p>
|
|
<h2>Impact</h2>
|
|
<p>We are not aware of inputs to the public key generation, signing or
|
|
verification APIs that trigger a panic in the AVX2 implementation
|
|
because the intermediate values were not fully reduced.</p>
|
|
<h2>Mitigation</h2>
|
|
<p>From version <code>0.0.9</code> intermediate values on AVX2 platforms are fully
|
|
reduced in alignment with the portable implementation.</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-0140: Vulnerability in dynoxide-rs</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0140.html</id><updated>2026-05-19T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0140.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0140: Vulnerability in dynoxide-rs"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">DNS rebinding and cross-origin CSRF in dynoxide&apos;s MCP HTTP transport</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/dynoxide-rs/RUSTSEC-2026-0140.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/dynoxide-rs/RUSTSEC-2026-0140.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0140">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0140
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>DNS rebinding and cross-origin CSRF in dynoxide's MCP HTTP transport</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-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
<time datetime="2026-05-19">
|
|
(last modified: May 19, 2026)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/dynoxide-rs.html">dynoxide-rs</a>
|
|
|
|
(<a href="https://crates.io/crates/dynoxide-rs">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/dns-rebinding.html">#dns-rebinding</a>
|
|
|
|
<a href="/keywords/csrf.html">#csrf</a>
|
|
|
|
<a href="/keywords/mcp.html">#mcp</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42559">CVE-2026-42559</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-89vp-x53w-74fx">GHSA-89vp-x53w-74fx</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-fvh2-gm75-j4j7">GHSA-fvh2-gm75-j4j7</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/nubo-db/dynoxide/security/advisories/GHSA-fvh2-gm75-j4j7">
|
|
https://github.com/nubo-db/dynoxide/security/advisories/GHSA-fvh2-gm75-j4j7
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/nubo-db/dynoxide/releases/tag/v0.9.13">
|
|
https://github.com/nubo-db/dynoxide/releases/tag/v0.9.13
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="related">Related</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-89vp-x53w-74fx">GHSA-89vp-x53w-74fx</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>8.8 <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>Required</dd>
|
|
|
|
<dt>Scope</dt>
|
|
<dd>Unchanged</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:R/S:U/C:H/I:H/A:H">CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.9.13</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.9.3</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>dynoxide's MCP HTTP transport was vulnerable to DNS rebinding via its transitive <code>rmcp</code> dependency, plus a related cross-origin CSRF gap.</p>
|
|
<p>A malicious web page could make the user's browser send requests to a local <code>dynoxide mcp --http</code> or <code>dynoxide serve --mcp</code> server with a non-loopback <code>Host</code> header, which the server would then process. The Host check alone did not close a related cross-origin CSRF vector: a page could <code>fetch</code> the loopback endpoint with <code>mode: 'no-cors'</code>, and the Host header would match while the Origin header went unchecked.</p>
|
|
<p>Affected MCP write tools include <code>put_item</code>, <code>update_item</code>, <code>delete_item</code>, <code>create_table</code>, and <code>batch_write_item</code>.</p>
|
|
<p>The stdio transport (<code>dynoxide mcp</code> without <code>--http</code>) is not affected.</p>
|
|
<h2>Patches</h2>
|
|
<p>dynoxide 0.9.13 closes both vectors:</p>
|
|
<ul>
|
|
<li>Upgrades <code>rmcp</code> from 1.1.1 to 1.6.0 (which ships a default Host-header allowlist).</li>
|
|
<li>Sets explicit <code>allowed_hosts</code> and <code>allowed_origins</code> on <code>StreamableHttpServerConfig</code>.</li>
|
|
</ul>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2026-0130: Unsoundness in caja</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0130.html</id><updated>2026-05-13T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0130.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0130: Unsoundness in caja"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Out-of-bounds read/write in `Index` and `IndexMut` implementations</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/caja/RUSTSEC-2026-0130.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/caja/RUSTSEC-2026-0130.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0130">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0130
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Out-of-bounds read/write in <code>Index</code> and <code>IndexMut</code> implementations</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-02">
|
|
May 2, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/caja.html">caja</a>
|
|
|
|
(<a href="https://crates.io/crates/caja">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/out-of-bounds.html">#out-of-bounds</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/EmanuelGCC/Caja/issues/1">
|
|
https://github.com/EmanuelGCC/Caja/issues/1
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.3.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <code>Index</code> and <code>IndexMut</code> implementations for <code>Caja</code> use unchecked pointer
|
|
arithmetic without bounds validation. Creating a <code>Caja</code> with a small key and
|
|
then accessing an out-of-range index causes out-of-bounds reads or writes
|
|
beyond the allocated memory.</p>
|
|
<p>This can be triggered through safe public APIs — the <code>[]</code> indexing operator
|
|
on a <code>Caja</code> with an out-of-range index — with no <code>unsafe</code> required from the
|
|
caller.</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-0128: Unsoundness in emap</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0128.html</id><updated>2026-05-13T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0128.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0128: Unsoundness in emap"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Double-free and use-after-free in `Keys::next()`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/emap/RUSTSEC-2026-0128.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/emap/RUSTSEC-2026-0128.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0128">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0128
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Double-free and use-after-free in <code>Keys::next()</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-02">
|
|
May 2, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/emap.html">emap</a>
|
|
|
|
(<a href="https://crates.io/crates/emap">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>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/yegor256/emap/issues/168">
|
|
https://github.com/yegor256/emap/issues/168
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p><code>Keys::next()</code> uses <code>ptr::read</code> to move out the <code>Option&lt;V&gt;</code> by value, which
|
|
drops the contained <code>V</code> when <code>V</code> is non-Copy (e.g. <code>String</code>). This leaves a
|
|
dangling value in the map's storage slot. Subsequent <code>get()</code> operations on
|
|
that key return a dangling reference to already-freed memory.</p>
|
|
<p>This can be triggered through safe public APIs — <code>Map::keys()</code>,
|
|
<code>Keys::next()</code>, and <code>Map::get()</code> — with no <code>unsafe</code> required from the
|
|
caller. Under Miri, accessing the freed slot produces &quot;Undefined Behavior:
|
|
pointer not dereferenceable: alloc has been freed, so this pointer is
|
|
dangling&quot;.</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-0132: Unsoundness in ssdeep</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0132.html</id><updated>2026-05-17T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0132.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0132: Unsoundness in ssdeep"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Potential out-of-bounds write via public `Context` fields</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/ssdeep/RUSTSEC-2026-0132.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/ssdeep/RUSTSEC-2026-0132.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0132">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
<span class="withdrawn">RUSTSEC-2026-0132</span>
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Potential out-of-bounds write via public <code>Context</code> fields</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
<hr>
|
|
<p class="warning">This advisory has been withdrawn and should be ignored. It is kept only for reference.</p>
|
|
<hr>
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-02">
|
|
May 2, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
<time datetime="2026-05-17">
|
|
(last modified: May 17, 2026)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/ssdeep.html">ssdeep</a>
|
|
|
|
(<a href="https://crates.io/crates/ssdeep">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/out-of-bounds.html">#out-of-bounds</a>
|
|
|
|
<a href="/keywords/encapsulation.html">#encapsulation</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/rustysec/fuzzyhash-rs/issues/14">
|
|
https://github.com/rustysec/fuzzyhash-rs/issues/14
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <code>Context</code> struct has all fields public (<code>pub d_len</code>, <code>pub digest</code>, etc.).
|
|
Code from other modules within the same crate can directly modify <code>d_len</code> to a
|
|
value exceeding the <code>digest</code> vector length. When <code>reset()</code> is subsequently
|
|
called, <code>self.digest[self.d_len as usize] = 0</code> becomes an out-of-bounds write.</p>
|
|
<h2>Withdrawal</h2>
|
|
<p>This advisory has been withdrawn because the above unsoundness cannot be
|
|
triggered in safe code by dependents of the crate, as the <code>Context</code> struct
|
|
is not public. It merely represents an opportunity for improvement for the
|
|
crate's internals.</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-0124: Vulnerability in libcrux-chacha20poly1305</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0124.html</id><updated>2026-05-20T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0124.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0124: Vulnerability in libcrux-chacha20poly1305"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Potential Panic on Overlong Ciphertext Buffer</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/libcrux-chacha20poly1305/RUSTSEC-2026-0124.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/libcrux-chacha20poly1305/RUSTSEC-2026-0124.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0124">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0124
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Potential Panic on Overlong Ciphertext Buffer</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-03-29">
|
|
March 29, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
<time datetime="2026-05-20">
|
|
(last modified: May 20, 2026)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/libcrux-chacha20poly1305.html">libcrux-chacha20poly1305</a>
|
|
|
|
(<a href="https://crates.io/crates/libcrux-chacha20poly1305">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-hc3c-63hc-2r9f">GHSA-hc3c-63hc-2r9f</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/cryspen/libcrux/pull/1386">
|
|
https://github.com/cryspen/libcrux/pull/1386
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>8.2 <span class="tag high">
|
|
HIGH
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack Complexity</dt>
|
|
<dd>Low</dd>
|
|
|
|
<dt>Attack Requirements</dt>
|
|
<dd>Present</dd>
|
|
|
|
<dt>Attack Vector</dt>
|
|
<dd>Network</dd>
|
|
|
|
<dt>Privileges Required</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Availability Impact to the Subsequent System</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Confidentiality Impact to the Subsequent System</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Integrity Impact to the Subsequent System</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>User Interaction</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Availability Impact to the Vulnerable System</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Confidentiality Impact to the Vulnerable System</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Integrity Impact to the Vulnerable System</dt>
|
|
<dd>None</dd>
|
|
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt id="cvss">CVSS Vector</dt>
|
|
|
|
|
|
<dd><a href="https://www.first.org/cvss/calculator/3.1#CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N">CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.0.8</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>libcrux_chacha20poly1305::encrypt</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.0.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>libcrux_chacha20poly1305::xchacha20_poly1305::encrypt</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.0.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>An application that passes in a ciphertext buffer of length greater
|
|
than <code>ptxt.len() + TAG_LEN</code> to <code>libcrux_chacha20poly1305::encrypt</code> or
|
|
<code>libcrux_chacha20poly1305::xchacha20_poly1305::encrypt</code> would
|
|
experience a panic.</p>
|
|
<h2>Impact</h2>
|
|
<p>An application where the length of the ciphertext buffer is under
|
|
attacker control could be made to crash.</p>
|
|
<h2>Mitigation</h2>
|
|
<p>The fix makes it so that <code>libcrux_chacha20poly1305::encrypt</code> and
|
|
<code>libcrux_chacha20poly1305::xchacha20_poly1305::encrypt</code> no longer
|
|
panic in this case, but instead write out the ciphertext and tag into
|
|
the first <code>ptxt.len() + TAG_LEN</code> bytes of the provided buffer.</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-0138: Unsoundness in diesel-async</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0138.html</id><updated>2026-05-13T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0138.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0138: Unsoundness in diesel-async"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Unsound access to padding bytes while serializing date/time values using the Mysql backend</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/diesel-async/RUSTSEC-2026-0138.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/diesel-async/RUSTSEC-2026-0138.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0138">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0138
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unsound access to padding bytes while serializing date/time values using the Mysql backend</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-04-30">
|
|
April 30, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/diesel-async.html">diesel-async</a>
|
|
|
|
(<a href="https://crates.io/crates/diesel-async">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/diesel-rs/diesel_async/security/advisories/GHSA-ff9q-rm55-q7qr">
|
|
https://github.com/diesel-rs/diesel_async/security/advisories/GHSA-ff9q-rm55-q7qr
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</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>Diesel-async uses the mysql-async crate for interacting with Mysql compatible databases. This library already provides access to deserialized data for date/time releated types. Diesel-async then translated these deserialized data back to their serialized binary representation to hook into diesels desearialization framework.</p>
|
|
<p>While serializing these data/time values again Diesel-async relied on a cast between the <code>MysqlTime</code> <code>#[repr(C)]</code> struct (defined by Diesel) and a byte array. As this cast exposes padding bytes contained in this struct, this is undefined behaviour.</p>
|
|
<p>This vulnerability affects any user deserializing date/time values using the Mysql backend and diesel-async.</p>
|
|
<p>This affects any usage of the following functions with a <code>AsyncMysqlConnection</code> provided by diesel-async:</p>
|
|
<ul>
|
|
<li><code>diesel::serialize::FromSql&lt;Timestamp, Mysql&gt;</code></li>
|
|
<li><code>diesel::serialize::FromSql&lt;Time, Mysql&gt;</code></li>
|
|
<li><code>diesel::serialize::FromSql&lt;Date, Mysql&gt;</code></li>
|
|
<li><code>diesel::serialize::FromSql&lt;DateTime, Mysql&gt;</code></li>
|
|
</ul>
|
|
<h2>Mitigation</h2>
|
|
<p>The preferred mitigation to the outlined problem is to update to Diesel-async version 0.9.0 or newer, which includes fixes for the problem.</p>
|
|
<h2>Resolution</h2>
|
|
<p>Diesel-async now just calls a safe serialization method provided by Diesel 2.3.9 and newer</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-0129: Unsoundness in dahl-salso</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0129.html</id><updated>2026-05-13T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0129.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0129: Unsoundness in dahl-salso"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Buffer overflow in `Clusterings::from_i32_column_major_order()`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/dahl-salso/RUSTSEC-2026-0129.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/dahl-salso/RUSTSEC-2026-0129.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0129">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0129
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Buffer overflow in <code>Clusterings::from_i32_column_major_order()</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-02">
|
|
May 2, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/dahl-salso.html">dahl-salso</a>
|
|
|
|
(<a href="https://crates.io/crates/dahl-salso">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/out-of-bounds.html">#out-of-bounds</a>
|
|
|
|
<a href="/keywords/buffer-overflow.html">#buffer-overflow</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/dbdahl/rust-dahl-salso/issues/1">
|
|
https://github.com/dbdahl/rust-dahl-salso/issues/1
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.6.8</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <code>from_i32_column_major_order</code> method can create inconsistent internal
|
|
state. When <code>labels</code> length and <code>n_items</code> mismatch, <code>n_clusterings</code> becomes
|
|
<code>labels.len() / n_items</code> (truncated), but subsequent calls to <code>label()</code> use
|
|
indices that exceed the internal data bounds, causing a buffer overflow.</p>
|
|
<p>For example, <code>Clusterings::from_i32_column_major_order(&amp;[1,2,3,4,5], 3)</code>
|
|
creates clusterings with <code>n_clusterings = 5/3 = 1</code>. Then
|
|
<code>clusterings.label(1, 0)</code> accesses index <code>1*3 = 3</code>, but only 3 elements
|
|
exist (indices 0,1,2), causing out-of-bounds access.</p>
|
|
<p>This can be triggered through safe public APIs —
|
|
<code>from_i32_column_major_order()</code> and <code>label()</code> — with no <code>unsafe</code> required
|
|
from the caller.</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-0139: Unsoundness in metacall</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0139.html</id><updated>2026-05-13T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0139.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0139: Unsoundness in metacall"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Null-pointer dereference and double-free via safe APIs</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/metacall/RUSTSEC-2026-0139.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/metacall/RUSTSEC-2026-0139.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0139">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0139
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Null-pointer dereference and double-free via safe APIs</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-02">
|
|
May 2, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/metacall.html">metacall</a>
|
|
|
|
(<a href="https://crates.io/crates/metacall">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/null-pointer.html">#null-pointer</a>
|
|
|
|
<a href="/keywords/undefined-behavior.html">#undefined-behavior</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/metacall/core/issues/618">
|
|
https://github.com/metacall/core/issues/618
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Two soundness violations exist in the Rust bindings for MetaCall:</p>
|
|
<p><strong>Null-pointer dereference:</strong> <code>MetaCallFuture::new_raw()</code> accepts a raw
|
|
pointer without validation. The <code>Debug</code> impl calls <code>Box::from_raw(self.data)</code>
|
|
on it. Passing a null pointer causes the <code>Debug</code> impl to construct a
|
|
<code>NonNull</code> from null, producing undefined behavior.</p>
|
|
<p><strong>Double-free:</strong> <code>MetaCallPointer::clone()</code> shares the same <code>rust_value</code> raw
|
|
pointer between the clone and the original. Calling <code>get_value_untyped()</code> on
|
|
both clones calls <code>Box::from_raw</code> on the same pointer twice, resulting in a
|
|
double-free.</p>
|
|
<p>Both issues can be triggered through safe public APIs —
|
|
<code>MetaCallFuture::new_raw()</code>, <code>MetaCallPointer::new()</code>, <code>clone()</code>, and
|
|
<code>get_value_untyped()</code> — with no <code>unsafe</code> required from the caller.</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-0131: Unsoundness in bitchomp</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0131.html</id><updated>2026-05-13T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0131.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0131: Unsoundness in bitchomp"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Double-free in `Chomp::inner()`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/bitchomp/RUSTSEC-2026-0131.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/bitchomp/RUSTSEC-2026-0131.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0131">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0131
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Double-free in <code>Chomp::inner()</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-02">
|
|
May 2, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/bitchomp.html">bitchomp</a>
|
|
|
|
(<a href="https://crates.io/crates/bitchomp">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>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/KingPEPSALT/bitchomp/issues/5">
|
|
https://github.com/KingPEPSALT/bitchomp/issues/5
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p><code>Chomp::inner()</code> uses <code>std::ptr::read_unaligned</code> to move out the value from a
|
|
raw pointer. If the original value is an owned type (e.g. <code>Box</code>), calling
|
|
<code>inner()</code> moves out the ownership, but the original variable will still be
|
|
dropped at the end of its scope. This causes the same heap memory to be freed
|
|
twice, resulting in a double-free and undefined behavior.</p>
|
|
<p>This can be triggered through safe public APIs — <code>Chomp::new()</code> and
|
|
<code>Chomp::inner()</code> — with no <code>unsafe</code> required from the caller.</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-0127: Unsoundness in accessor</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0127.html</id><updated>2026-05-13T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0127.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0127: Unsoundness in accessor"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Integer overflow in `array::ReadWrite::new()` leading to potential memory corruption</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/accessor/RUSTSEC-2026-0127.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/accessor/RUSTSEC-2026-0127.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0127">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0127
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Integer overflow in <code>array::ReadWrite::new()</code> leading to potential memory corruption</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-02">
|
|
May 2, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/accessor.html">accessor</a>
|
|
|
|
(<a href="https://crates.io/crates/accessor">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/integer-overflow.html">#integer-overflow</a>
|
|
|
|
<a href="/keywords/out-of-bounds.html">#out-of-bounds</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/toku-sa-n/accessor/issues/49">
|
|
https://github.com/toku-sa-n/accessor/issues/49
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>In <code>array::ReadWrite::new()</code> (line 83 of <code>accessor/src/array.rs</code>),
|
|
<code>let bytes = mem::size_of::&lt;T&gt;() * len</code> can overflow <code>usize</code> when <code>len</code> is
|
|
very large. In release mode, this silently wraps, potentially making
|
|
<code>bytes = 0</code>. The mapper then maps with 0 bytes, and subsequent accesses
|
|
(e.g. <code>read_volatile_at</code>) lead to undefined behavior or memory corruption.</p>
|
|
<p>Note: <code>array::ReadWrite::new()</code> itself is <code>unsafe</code>, so direct triggering
|
|
requires an <code>unsafe</code> block. However, the integer overflow violates the
|
|
implicit safety contract expected by callers and can lead to memory
|
|
corruption downstream.</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-0133: Unsoundness in auto_vec</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0133.html</id><updated>2026-05-13T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0133.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0133: Unsoundness in auto_vec"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Invalid pointer arithmetic in `iter()` and `iter_mut()`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/auto_vec/RUSTSEC-2026-0133.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/auto_vec/RUSTSEC-2026-0133.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0133">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0133
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Invalid pointer arithmetic in <code>iter()</code> and <code>iter_mut()</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-05-02">
|
|
May 2, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/auto_vec.html">auto_vec</a>
|
|
|
|
(<a href="https://crates.io/crates/auto_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/out-of-bounds.html">#out-of-bounds</a>
|
|
|
|
<a href="/keywords/pointer-arithmetic.html">#pointer-arithmetic</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/lluvz/AutoVec/issues/1">
|
|
https://github.com/lluvz/AutoVec/issues/1
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <code>iter()</code> and <code>iter_mut()</code> APIs compute
|
|
<code>current = (&amp;children[0] as *const *const RawAutoChild).sub(1)</code>, which
|
|
performs pointer subtraction going before the start of the allocation. This
|
|
is undefined behavior per Rust's pointer arithmetic rules.</p>
|
|
<p>This can be triggered through safe public APIs — <code>iter()</code> and <code>iter_mut()</code>
|
|
— with no <code>unsafe</code> required from the caller.</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-0134: Unsoundness in diesel</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0134.html</id><updated>2026-05-13T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0134.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0134: Unsoundness in diesel"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Unsound access to padding bytes while serializing date/time values using the Mysql backend</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/diesel/RUSTSEC-2026-0134.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/diesel/RUSTSEC-2026-0134.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0134">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0134
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unsound access to padding bytes while serializing date/time values using the Mysql backend</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-04-24">
|
|
April 24, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/diesel.html">diesel</a>
|
|
|
|
(<a href="https://crates.io/crates/diesel">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/diesel-rs/diesel/pull/5042">
|
|
https://github.com/diesel-rs/diesel/pull/5042
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=2.3.8</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>diesel::serialize::ToSql&#60;Date,Mysql&#62;</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>diesel::serialize::ToSql&#60;DateTime,Mysql&#62;</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>diesel::serialize::ToSql&#60;Time,Mysql&#62;</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>diesel::serialize::ToSql&#60;Timestamp,Mysql&#62;</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Diesel relies on libmysqlclient for interacting with Mysql compatible databases. This library requires to provide date/time values according to the byte layout of their <code>MYSQL_TIME</code> type.</p>
|
|
<p>Diesel replicated this type as <code>#[repr(C)]</code> struct, populated all the fields of this struct and then casted this value to an array of bytes. As this cast exposes padding bytes contained in this struct, this is undefined behaviour.</p>
|
|
<p>This vulnerability affects any user serializing date/time values using the Mysql backend.</p>
|
|
<h2>Mitigation</h2>
|
|
<p>The preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem.</p>
|
|
<h2>Resolution</h2>
|
|
<p>Diesel now manually serializes the relevant data without accessing the padding bytes.</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-0136: Vulnerability in diesel</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0136.html</id><updated>2026-05-20T12:00:00+00:00</updated><category term="format-injection"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0136.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0136: Vulnerability in diesel"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Command injection in Diesel&apos;s implementation of `COPY FROM`/`COPY TO`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/diesel/RUSTSEC-2026-0136.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/diesel/RUSTSEC-2026-0136.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0136">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0136
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Command injection in Diesel's implementation of <code>COPY FROM</code>/<code>COPY TO</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-04-24">
|
|
April 24, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
<time datetime="2026-05-20">
|
|
(last modified: May 20, 2026)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/diesel.html">diesel</a>
|
|
|
|
(<a href="https://crates.io/crates/diesel">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="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-m9p2-fxp5-v3fp">GHSA-m9p2-fxp5-v3fp</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/diesel-rs/diesel/pull/5042">
|
|
https://github.com/diesel-rs/diesel/pull/5042
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=2.3.8</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>diesel::pg::CopyFromQuery::with_default</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>diesel::pg::CopyFromQuery::with_delimiter</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>diesel::pg::CopyFromQuery::with_escape</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>diesel::pg::CopyFromQuery::with_null</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>diesel::pg::CopyFromQuery::with_quote</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>diesel::pg::CopyToQuery::with_delimiter</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>diesel::pg::CopyToQuery::with_escape</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>diesel::pg::CopyToQuery::with_null</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>diesel::pg::CopyToQuery::with_quote</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Diesel allows users to configure various options for PostgreSQL's <code>COPY FROM</code> and <code>COPY TO</code> statements. These configurations are partially provided as strings or characters.</p>
|
|
<p>Diesel did not check if any these user-provided options contain a quote character <code>'</code>, which can lead to the injection of additional options in the current <code>COPY FROM</code>/<code>COPY TO</code> statement.</p>
|
|
<p>This vulnerability affects any user of <code>COPY FROM</code>/<code>COPY TO</code> that passes user-provided input to any of the affected functions. It can result in modifications of options in the current statement, but it is not possible inject additional statements.</p>
|
|
<h2>Mitigation</h2>
|
|
<p>The preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem.</p>
|
|
<h2>Resolution</h2>
|
|
<p>Diesel now correctly escapes any quotes contained in the provided arguments.</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-0135: Unsoundness in diesel</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0135.html</id><updated>2026-05-13T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0135.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0135: Unsoundness in diesel"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Unsound transmute while debug/display printing batch Insert statements in Diesel&apos;s SQLite backend</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/diesel/RUSTSEC-2026-0135.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/diesel/RUSTSEC-2026-0135.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0135">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0135
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unsound transmute while debug/display printing batch Insert statements in Diesel's SQLite backend</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-04-24">
|
|
April 24, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/diesel.html">diesel</a>
|
|
|
|
(<a href="https://crates.io/crates/diesel">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/diesel-rs/diesel/pull/5042">
|
|
https://github.com/diesel-rs/diesel/pull/5042
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=2.3.8</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>diesel::debug_query</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Diesel allows users to output the generated SQL for any query DSL construct via th <code>diesel::debug_query</code> function as <code>Display</code> and <code>Debug</code> output.</p>
|
|
<p>For the particular implementation used by batch Insert statements in the SQLite backend Diesel relied on an unspecified transmute between types with a <code>#[repr(rust)]</code> layout. This is formally undefined behaviour as the compiler is free to change the layout of these types at any time.</p>
|
|
<p>This vulnerability affects users that print out batch insert statements constructed using an array/vector of values without default values using <code>diesel::debug_query</code> on the SQLite backend.</p>
|
|
<h2>Mitigation</h2>
|
|
<p>The preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem.</p>
|
|
<h2>Resolution</h2>
|
|
<p>Diesel now uses a sound cast instead.</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-0137: Vulnerability in diesel</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0137.html</id><updated>2026-05-20T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0137.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0137: Vulnerability in diesel"/><published>2026-05-13T12:00:00+00:00</published><summary xml:lang="en">Possible unaligned data access for implementations of `SqliteAggregate`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/diesel/RUSTSEC-2026-0137.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/diesel/RUSTSEC-2026-0137.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0137">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0137
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Possible unaligned data access for implementations of <code>SqliteAggregate</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-04-24">
|
|
April 24, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-05-13">
|
|
May 13, 2026
|
|
</time>
|
|
|
|
<time datetime="2026-05-20">
|
|
(last modified: May 20, 2026)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/diesel.html">diesel</a>
|
|
|
|
(<a href="https://crates.io/crates/diesel">crates.io</a>)
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-q8x8-jrhj-fh9p">GHSA-q8x8-jrhj-fh9p</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/diesel-rs/diesel/pull/5042">
|
|
https://github.com/diesel-rs/diesel/pull/5042
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=2.3.8</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>diesel::sqlite::SqliteAggregate</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;2.3.8</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Diesel allows to register custom aggregate SQL functions for SQLite via the <code>SqliteAggregate</code> interface.</p>
|
|
<p>To store an instance of the custom aggregate processor Diesel relied on the <code>sqlite3_aggregate_context</code> function provided by sqlite. This function doesn't provide any guarantees about alignment of the returned allocation, which in turn can lead to problems if the type implementing requires a special alignment, e.g. via a custom <code>#[align(x)]</code> attribute on the type implementing this trait. This affects any user of <code>SqliteAggregate</code> that registers the custom aggregate function with an SQLite connection, while using a non-standard alignment on the type implementing this trait.</p>
|
|
<h2>Mitigation</h2>
|
|
<p>The preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem.</p>
|
|
<h2>Resolution</h2>
|
|
<p>Diesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation.</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> |