mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 16:14:33 -06:00
1661 lines
54 KiB
XML
1661 lines
54 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-02-06T12: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-2025-0145: Vulnerability in uniswap-utils</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0145.html</id><updated>2026-02-06T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0145.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0145: Vulnerability in uniswap-utils"/><published>2026-02-06T12:00:00+00:00</published><summary xml:lang="en">`uniswap-utils` was removed from crates.io for malicious code</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/uniswap-utils/RUSTSEC-2025-0145.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/uniswap-utils/RUSTSEC-2025-0145.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0145">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0145
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>uniswap-utils</code> was removed from crates.io for malicious code</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-12-03">
|
|
December 3, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-02-06">
|
|
February 6, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/uniswap-utils.html">uniswap-utils</a>
|
|
(<a href="https://crates.io/crates/uniswap-utils">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://blog.rust-lang.org/2025/12/03/crates.io-malicious-crates-evm-units-and-uniswap-utils/">
|
|
https://blog.rust-lang.org/2025/12/03/crates.io-malicious-crates-evm-units-and-uniswap-utils/
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://socket.dev/blog/malicious-rust-crate-evm-units-serves-cross-platform-payloads">
|
|
https://socket.dev/blog/malicious-rust-crate-evm-units-serves-cross-platform-payloads
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>It depended on the <code>evm-units</code> crate, which appeared to be attempting to steal cryptocurrency.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0146: Vulnerability in sha-rust</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0146.html</id><updated>2026-02-06T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0146.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0146: Vulnerability in sha-rust"/><published>2026-02-06T12:00:00+00:00</published><summary xml:lang="en">`sha-rust` was removed from crates.io for malicious code</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/sha-rust/RUSTSEC-2025-0146.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/sha-rust/RUSTSEC-2025-0146.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0146">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0146
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>sha-rust</code> was removed from crates.io for malicious code</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-12-05">
|
|
December 5, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-02-06">
|
|
February 6, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/sha-rust.html">sha-rust</a>
|
|
(<a href="https://crates.io/crates/sha-rust">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://blog.rust-lang.org/2025/12/05/crates.io-malicious-crates-finch-rust-and-sha-rust/">
|
|
https://blog.rust-lang.org/2025/12/05/crates.io-malicious-crates-finch-rust-and-sha-rust/
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://socket.dev/blog/malicious-crate-mimicking-finch-exfiltrates-credentials">
|
|
https://socket.dev/blog/malicious-crate-mimicking-finch-exfiltrates-credentials
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>It appeared to be attempting to steal credentials from local files.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0147: Vulnerability in evm-units</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0147.html</id><updated>2026-02-06T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0147.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0147: Vulnerability in evm-units"/><published>2026-02-06T12:00:00+00:00</published><summary xml:lang="en">`evm-units` was removed from crates.io for malicious code</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/evm-units/RUSTSEC-2025-0147.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/evm-units/RUSTSEC-2025-0147.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0147">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0147
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>evm-units</code> was removed from crates.io for malicious code</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-12-03">
|
|
December 3, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-02-06">
|
|
February 6, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/evm-units.html">evm-units</a>
|
|
(<a href="https://crates.io/crates/evm-units">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://blog.rust-lang.org/2025/12/03/crates.io-malicious-crates-evm-units-and-uniswap-utils/">
|
|
https://blog.rust-lang.org/2025/12/03/crates.io-malicious-crates-evm-units-and-uniswap-utils/
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://socket.dev/blog/malicious-rust-crate-evm-units-serves-cross-platform-payloads">
|
|
https://socket.dev/blog/malicious-rust-crate-evm-units-serves-cross-platform-payloads
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>It appeared to be attempting to steal cryptocurrency.</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-0009: Vulnerability in time</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0009.html</id><updated>2026-02-06T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0009.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0009: Vulnerability in time"/><published>2026-02-06T12:00:00+00:00</published><summary xml:lang="en">Denial of Service via Stack Exhaustion</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/time/RUSTSEC-2026-0009.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/time/RUSTSEC-2026-0009.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0009">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0009
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Denial of Service via Stack Exhaustion</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-02-05">
|
|
February 5, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-02-06">
|
|
February 6, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/time.html">time</a>
|
|
(<a href="https://crates.io/crates/time">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/denial-of-service.html">denial-of-service</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/stack.html">#stack</a>
|
|
|
|
<a href="/keywords/exhaustion.html">#exhaustion</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-25727">CVE-2026-25727</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-r6v5-fh4h-64xc">GHSA-r6v5-fh4h-64xc</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/time-rs/time/blob/main/CHANGELOG.md#0347-2026-02-05">
|
|
https://github.com/time-rs/time/blob/main/CHANGELOG.md#0347-2026-02-05
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>6.8 <span class="tag medium">
|
|
MEDIUM
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack Complexity</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Attack Requirements</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Attack Vector</dt>
|
|
<dd>Network</dd>
|
|
|
|
<dt>Privileges Required</dt>
|
|
<dd>Low</dd>
|
|
|
|
<dt>Availability Impact to the Subsequent System</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Confidentiality Impact to the Subsequent System</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Integrity Impact to the Subsequent System</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>User Interaction</dt>
|
|
<dd>Active</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:H/AT:N/PR:L/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H">CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.3.47</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.3.6</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>time::Date::parse</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.3.6, &#60;0.3.47</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>time::OffsetDateTime::parse</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.3.6, &#60;0.3.47</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>time::PrimitiveDateTime::parse</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.3.6, &#60;0.3.47</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>time::Time::parse</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.3.6, &#60;0.3.47</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>time::UtcDateTime::parse</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.3.38, &#60;0.3.47</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>time::UtcOffset::parse</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.3.6, &#60;0.3.47</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>time::parsing::Parsed::parse_item</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.3.6, &#60;0.3.47</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h2>Impact</h2>
|
|
<p>When user-provided input is provided to any type that parses with the RFC 2822 format, a denial of
|
|
service attack via stack exhaustion is possible. The attack relies on formally deprecated and
|
|
rarely-used features that are part of the RFC 2822 format used in a malicious manner. Ordinary,
|
|
non-malicious input will never encounter this scenario.</p>
|
|
<h2>Patches</h2>
|
|
<p>A limit to the depth of recursion was added in v0.3.47. From this version, an error will be returned
|
|
rather than exhausting the stack.</p>
|
|
<h2>Workarounds</h2>
|
|
<p>Limiting the length of user input is the simplest way to avoid stack exhaustion, as the amount of
|
|
the stack consumed would be at most a factor of the length of the input.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0148: Vulnerability in finch-rust</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0148.html</id><updated>2026-02-06T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0148.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0148: Vulnerability in finch-rust"/><published>2026-02-06T12:00:00+00:00</published><summary xml:lang="en">`finch-rust` was removed from crates.io for malicious code</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/finch-rust/RUSTSEC-2025-0148.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/finch-rust/RUSTSEC-2025-0148.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0148">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0148
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>finch-rust</code> was removed from crates.io for malicious code</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-12-05">
|
|
December 5, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-02-06">
|
|
February 6, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/finch-rust.html">finch-rust</a>
|
|
(<a href="https://crates.io/crates/finch-rust">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://blog.rust-lang.org/2025/12/05/crates.io-malicious-crates-finch-rust-and-sha-rust/">
|
|
https://blog.rust-lang.org/2025/12/05/crates.io-malicious-crates-finch-rust-and-sha-rust/
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://socket.dev/blog/malicious-crate-mimicking-finch-exfiltrates-credentials">
|
|
https://socket.dev/blog/malicious-crate-mimicking-finch-exfiltrates-credentials
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>It depended on the <code>sha-rust</code> crate, which appeared to be attempting to steal credentials from local files.</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-0008: Unsoundness in git2</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0008.html</id><updated>2026-02-05T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0008.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0008: Unsoundness in git2"/><published>2026-02-04T12:00:00+00:00</published><summary xml:lang="en">Potential undefined behavior when dereferencing Buf struct</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/git2/RUSTSEC-2026-0008.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/git2/RUSTSEC-2026-0008.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0008">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0008
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Potential undefined behavior when dereferencing Buf struct</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-02-02">
|
|
February 2, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-02-04">
|
|
February 4, 2026
|
|
</time>
|
|
|
|
<time datetime="2026-02-05">
|
|
(last modified: February 5, 2026)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/git2.html">git2</a>
|
|
(<a href="https://crates.io/crates/git2">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/undefined-behavior.html">#undefined-behavior</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-j39j-6gw9-jw6h">GHSA-j39j-6gw9-jw6h</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/rust-lang/git2-rs/pull/1213">
|
|
https://github.com/rust-lang/git2-rs/pull/1213
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.20.4</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>if we dereference the Buf struct right after calling new() or default() on Buf struct, it passes Null Pointer to the unsafe function slice::from_raw_parts. Based on the safety section documentation of function,
|
|
data must be non-null and aligned even for zero-length slices or slices of ZSTs. Thus, passing Null Pointer will lead to undefined behavior.</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-0007: Vulnerability in bytes</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0007.html</id><updated>2026-02-04T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2026-0007.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0007: Vulnerability in bytes"/><published>2026-02-03T12:00:00+00:00</published><summary xml:lang="en">Integer overflow in `BytesMut::reserve`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/bytes/RUSTSEC-2026-0007.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/bytes/RUSTSEC-2026-0007.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0007">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0007
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Integer overflow in <code>BytesMut::reserve</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-02-03">
|
|
February 3, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-02-03">
|
|
February 3, 2026
|
|
</time>
|
|
|
|
<time datetime="2026-02-04">
|
|
(last modified: February 4, 2026)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/bytes.html">bytes</a>
|
|
(<a href="https://crates.io/crates/bytes">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/integer-overflow.html">#integer-overflow</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-25541">CVE-2026-25541</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-434x-w66g-qw3r">GHSA-434x-w66g-qw3r</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/advisories/GHSA-434x-w66g-qw3r">
|
|
https://github.com/advisories/GHSA-434x-w66g-qw3r
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=1.11.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;1.2.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>In the unique reclaim path of <code>BytesMut::reserve</code>, the condition</p>
|
|
<pre><code class="language-rs">if v_capacity &gt;= new_cap + offset
|
|
</code></pre>
|
|
<p>uses an unchecked addition. When <code>new_cap + offset</code> overflows <code>usize</code> in release builds, this condition may incorrectly pass, causing <code>self.cap</code> to be set to a value that exceeds the actual allocated capacity. Subsequent APIs such as <code>spare_capacity_mut()</code> then trust this corrupted <code>cap</code> value and may create out-of-bounds slices, leading to UB.</p>
|
|
<p>This behavior is observable in release builds (integer overflow wraps), whereas debug builds panic due to overflow checks.</p>
|
|
<h2>PoC</h2>
|
|
<pre><code class="language-rs">use bytes::*;
|
|
|
|
fn main() {
|
|
let mut a = BytesMut::from(&amp;b&quot;hello world&quot;[..]);
|
|
let mut b = a.split_off(5);
|
|
|
|
// Ensure b becomes the unique owner of the backing storage
|
|
drop(a);
|
|
|
|
// Trigger overflow in new_cap + offset inside reserve
|
|
b.reserve(usize::MAX - 6);
|
|
|
|
// This call relies on the corrupted cap and may cause UB &amp; HBO
|
|
b.put_u8(b'h');
|
|
}
|
|
</code></pre>
|
|
<h1>Workarounds</h1>
|
|
<p>Users of <code>BytesMut::reserve</code> are only affected if integer overflow checks are configured to wrap. When integer overflow is configured to panic, this issue does not apply.</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/advisories/GHSA-434x-w66g-qw3r">https://github.com/advisories/GHSA-434x-w66g-qw3r</a>
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0143: Vulnerability in capnp</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0143.html</id><updated>2026-01-29T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0143.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0143: Vulnerability in capnp"/><published>2026-01-27T12:00:00+00:00</published><summary xml:lang="en">Unsound APIs of public `constant::Reader` and `StructSchema`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/capnp/RUSTSEC-2025-0143.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/capnp/RUSTSEC-2025-0143.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0143">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0143
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unsound APIs of public <code>constant::Reader</code> and <code>StructSchema</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-12-24">
|
|
December 24, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-01-27">
|
|
January 27, 2026
|
|
</time>
|
|
|
|
<time datetime="2026-01-29">
|
|
(last modified: January 29, 2026)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/capnp.html">capnp</a>
|
|
(<a href="https://crates.io/crates/capnp">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/unsoundness.html">#unsoundness</a>
|
|
|
|
<a href="/keywords/undefined-behavior.html">#undefined-behavior</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-5w5r-mf82-595p">GHSA-5w5r-mf82-595p</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/capnproto/capnproto-rust/issues/605">
|
|
https://github.com/capnproto/capnproto-rust/issues/605
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.24.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>capnp::constant::Reader::get</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.24.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>capnp::schema::StructSchema::new</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&#60;0.24.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The safe API functions <code>constant::Reader::get</code> and <code>StructSchema::new</code> rely on <code>PointerReader::get_root_unchecked</code>, which can cause undefined behavior (UB) by constructing arbitrary words or schemas.</p>
|
|
<h2><code>Reader::get</code></h2>
|
|
<pre><code class="language-rust">pub fn get(&amp;self) -&gt; Result&lt;&lt;T as Owned&gt;::Reader&lt;'static&gt;&gt; {
|
|
// ...
|
|
// UNSAFE: access `words` without validation
|
|
}
|
|
</code></pre>
|
|
<h2><code>StructSchema::new</code></h2>
|
|
<pre><code class="language-rust">pub fn new(builder: RawBrandedStructSchema) -&gt; StructSchema {
|
|
// ...
|
|
// UNSAFE: access encoded nodes without validation
|
|
}
|
|
</code></pre>
|
|
<p>This vulnerability allows safe Rust code to trigger UB, which violates Rust's safety guarantees.</p>
|
|
<p>The issue is resolved in version <code>0.24.0</code> by making constructor functions unsafe and mark the fields of struct as visible only in the crate.</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-0006: Vulnerability in wasmtime</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0006.html</id><updated>2026-01-30T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0006.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0006: Vulnerability in wasmtime"/><published>2026-01-27T12:00:00+00:00</published><summary xml:lang="en">Wasmtime segfault or unused out-of-sandbox load with `f64.copysign` operator on x86-64</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/wasmtime/RUSTSEC-2026-0006.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/wasmtime/RUSTSEC-2026-0006.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0006">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0006
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Wasmtime segfault or unused out-of-sandbox load with <code>f64.copysign</code> operator on x86-64</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-01-26">
|
|
January 26, 2026
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-01-27">
|
|
January 27, 2026
|
|
</time>
|
|
|
|
<time datetime="2026-01-30">
|
|
(last modified: January 30, 2026)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/wasmtime.html">wasmtime</a>
|
|
(<a href="https://crates.io/crates/wasmtime">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-24116">CVE-2026-24116</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-vc8c-j3xm-xj73">GHSA-vc8c-j3xm-xj73</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-vc8c-j3xm-xj73">
|
|
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-vc8c-j3xm-xj73
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>4.1 <span class="tag medium">
|
|
MEDIUM
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack Complexity</dt>
|
|
<dd>Low</dd>
|
|
|
|
<dt>Attack Requirements</dt>
|
|
<dd>Present</dd>
|
|
|
|
<dt>Attack Vector</dt>
|
|
<dd>Local</dd>
|
|
|
|
<dt>Privileges Required</dt>
|
|
<dd>Low</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>Active</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:L/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N">CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=41.0.1</code></li>
|
|
|
|
<li><code>&#62;=40.0.3, &#60;41.0.0</code></li>
|
|
|
|
<li><code>&#62;=36.0.5, &#60;37.0.0</code></li>
|
|
|
|
<li><code>&#60;29.0.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>This is an entry in the RustSec database for the Wasmtime security advisory
|
|
located at
|
|
https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-vc8c-j3xm-xj73
|
|
For more information see the GitHub-hosted security advisory.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2025-0144: Vulnerability in ml-dsa</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0144.html</id><updated>2026-01-27T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0144.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0144: Vulnerability in ml-dsa"/><published>2026-01-27T12:00:00+00:00</published><summary xml:lang="en">Timing side-channel in ML-DSA decomposition</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/ml-dsa/RUSTSEC-2025-0144.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/ml-dsa/RUSTSEC-2025-0144.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0144">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0144
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Timing side-channel in ML-DSA decomposition</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-12-12">
|
|
December 12, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-01-27">
|
|
January 27, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/ml-dsa.html">ml-dsa</a>
|
|
(<a href="https://crates.io/crates/ml-dsa">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="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-22705">CVE-2026-22705</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-hcp2-x6j4-29j7">GHSA-hcp2-x6j4-29j7</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/RustCrypto/signatures/security/advisories/GHSA-hcp2-x6j4-29j7">
|
|
https://github.com/RustCrypto/signatures/security/advisories/GHSA-hcp2-x6j4-29j7
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>6.4 <span class="tag medium">
|
|
MEDIUM
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack Vector</dt>
|
|
<dd>Adjacent</dd>
|
|
|
|
<dt>Attack Complexity</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Privileges Required</dt>
|
|
<dd>Low</dd>
|
|
|
|
<dt>User Interaction</dt>
|
|
<dd>None</dd>
|
|
|
|
<dt>Scope</dt>
|
|
<dd>Unchanged</dd>
|
|
|
|
<dt>Confidentiality Impact</dt>
|
|
<dd>High</dd>
|
|
|
|
<dt>Integrity Impact</dt>
|
|
<dd>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:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N">CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N</a></dd>
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&#62;=0.1.0-rc.3</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h3>Summary</h3>
|
|
<p>A timing side-channel was discovered in the Decompose algorithm which is used during ML-DSA signing to generate hints for the signature.</p>
|
|
<h3>Details</h3>
|
|
<p>The analysis was performed using a constant-time analyzer that examines compiled assembly code for instructions with data-dependent timing behavior. The analyzer flags:</p>
|
|
<ul>
|
|
<li><strong>UDIV/SDIV instructions</strong>: Hardware division instructions have early termination optimizations where execution time depends on operand values.</li>
|
|
</ul>
|
|
<p>The <code>decompose</code> function used a hardware division instruction to compute <code>r1.0 / TwoGamma2::U32</code>. This function is called during signing through <code>high_bits()</code> and <code>low_bits()</code>, which process values derived from secret key components:</p>
|
|
<ul>
|
|
<li><code>(&amp;w - &amp;cs2).low_bits()</code> where <code>cs2</code> is derived from secret key component <code>s2</code></li>
|
|
<li><code>Hint::new()</code> calls <code>high_bits()</code> on values derived from secret key component <code>t0</code></li>
|
|
</ul>
|
|
<p><strong>Original Code</strong>:</p>
|
|
<pre><code class="language-rust">fn decompose&lt;TwoGamma2: Unsigned&gt;(self) -&gt; (Elem, Elem) {
|
|
// ...
|
|
let mut r1 = r_plus - r0;
|
|
r1.0 /= TwoGamma2::U32; // Variable-time division on secret-derived data
|
|
(r1, r0)
|
|
}
|
|
</code></pre>
|
|
<h3>Impact</h3>
|
|
<p>The dividend (<code>r1.0</code>) is derived from secret key material. An attacker with precise timing measurements could extract information about the signing key by observing timing variations in the division operation.</p>
|
|
<h3>Mitigation</h3>
|
|
<p>Integer division was replaced with a constant-time Barrett reduction.</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/RustCrypto/signatures/security/advisories/GHSA-hcp2-x6j4-29j7">https://github.com/RustCrypto/signatures/security/advisories/GHSA-hcp2-x6j4-29j7</a>
|
|
|
|
|
|
</p>
|
|
</article></content></entry></feed> |