mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 17:37:51 -06:00
1604 lines
54 KiB
XML
1604 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-07T12: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-0149: Vulnerability in below</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0149.html</id><updated>2026-02-07T12:00:00+00:00</updated><category term="privilege-escalation"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0149.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0149: Vulnerability in below"/><published>2026-02-07T12:00:00+00:00</published><summary xml:lang="en">World Writable Directory in /var/log/below Allows Local Privilege Escalation</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/below/RUSTSEC-2025-0149.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/below/RUSTSEC-2025-0149.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0149">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2025-0149
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>World Writable Directory in /var/log/below Allows Local Privilege Escalation</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2025-03-12">
|
|
March 12, 2025
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2026-02-07">
|
|
February 7, 2026
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/below.html">below</a>
|
|
(<a href="https://crates.io/crates/below">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="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-27591">CVE-2025-27591</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://www.openwall.com/lists/oss-security/2025/03/12/1">
|
|
https://www.openwall.com/lists/oss-security/2025/03/12/1
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>7.3 <span class="tag high">
|
|
HIGH
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack Complexity</dt>
|
|
<dd>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>None</dd>
|
|
|
|
<dt>Availability Impact to the Vulnerable System</dt>
|
|
<dd>High</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:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N">CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N</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>Below is a tool for recording and displaying system data like
|
|
hardware utilization and cgroup information on Linux.</p>
|
|
<h2>Symlink Attack in <code>/var/log/below/error_root.log</code></h2>
|
|
<p>Below's systemd service runs with full <code>root</code> privileges. It attempts to
|
|
create a world-writable directory in <code>/var/log/below</code>. Even if the
|
|
directory already exists, the Rust code ensures <a href="https://github.com/facebookincubator/below/blob/v0.8.1/below/src/main.rs#L379">1</a> that it receives
|
|
mode 0777 permissions:</p>
|
|
<pre><code> if perm.mode() &amp; 0o777 != 0o777 {
|
|
perm.set_mode(0o777);
|
|
match dir.set_permissions(perm) {
|
|
Ok(()) =&gt; {}
|
|
Err(e) =&gt; {
|
|
bail!(
|
|
&quot;Failed to set permissions on {}: {}&quot;,
|
|
path.to_string_lossy(),
|
|
e
|
|
);
|
|
}
|
|
}
|
|
}
|
|
</code></pre>
|
|
<p>This logic leads to different outcomes depending on the packaging on Linux
|
|
distributions:</p>
|
|
<ul>
|
|
<li>in openSUSE Tumbleweed the directory was packaged with 01755
|
|
permissions (below.spec <a href="https://build.opensuse.org/projects/openSUSE:Factory/packages/below/files/below.spec?expand=1&amp;rev=5e78e7f743f87bea8648eeee673c649b">2</a> line 73), thus causing the
|
|
<code>set_permissions()</code> call to run, resulting in a directory with mode
|
|
0777 during runtime.</li>
|
|
<li>in Gentoo Linux the directory is created with mode 01755 resulting in
|
|
the same outcome as on openSUSE Tumbleweed (below.ebuild <a href="https://github.com/gentoo/gentoo/blob/master/sys-process/below/below-0.8.1-r1.ebuild#L344">3</a>). Where
|
|
the 01755 mode is exactly coming from is not fully clear, maybe the
|
|
<code>cargo</code> build process assigns these permissions during installation.</li>
|
|
<li>in Fedora Linux the directory is packaged with 01777 permissions, thus
|
|
the <code>set_permissions()</code> code will not run, because the <code>if</code> condition
|
|
masks out the sticky bit. The directory stays at mode 01777
|
|
(rust-below.spec <a href="https://src.fedoraproject.org/rpms/rust-below/blob/6ae58353b5d12e58462425c20a2aedfbae2e769a/f/rust-below.spec#_108">4</a>).</li>
|
|
<li>the Arch Linux AUR package <a href="https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=below#n34">5</a> (maybe wrongly) does not pre-create
|
|
the log directory. Thus the <code>set_permissions()</code> code will run and
|
|
create the directory with mode 0777.</li>
|
|
</ul>
|
|
<p>Below creates a log file in <code>/var/log/below/error_root.log</code> and assigns
|
|
mode 0666 to it. This (somewhat confusingly) happens via a <code>log_dir</code>
|
|
variable <a href="https://github.com/facebookincubator/below/blob/v0.8.1/below/src/main.rs#L552">6</a>, which has been changed to point to the <code>error_root.log</code>
|
|
file. The 0666 permission assignment to the logfile happens in
|
|
<code>logging::setup()</code> <a href="https://github.com/facebookincubator/below/blob/v0.8.1/below/src/open_source/logging.rs#L68">7</a>, also accompanied by a somewhat strange comment
|
|
in the code.</p>
|
|
<p>A local unprivileged attacker can stage a symlink attack in this
|
|
location and cause an arbitrary file in the system to obtain 0666
|
|
permissions, likely leading to a full local root exploit, if done right,
|
|
e.g. by pointing the symlink to <code>/etc/shadow</code>. Even if the file already
|
|
exists it can be removed and replaced by a symlink, because of the
|
|
world-writable directory permissions. The attack is thus not limited to
|
|
scenarios in which the file has not yet been created by Below.</p>
|
|
<h2>Further Issues</h2>
|
|
<p>Even on Fedora Linux, where <code>/var/log/below</code> has &quot;safe&quot; 01777
|
|
permissions, there is a time window during which problems can arise. As
|
|
long as <code>below.service</code> has not been started, another local user can
|
|
pre-create <code>/var/log/below/error_root.log</code> and e.g. place a FIFO special
|
|
file there. This will pose a local DoS against the below service, since
|
|
it will fail to open the path and thus fail to start.</p>
|
|
<p>If <code>/var/log/below</code> were to be deleted for any reason, then Below would
|
|
still recreate it using the bad 0777 mode permissions, which can also
|
|
happen on distributions that initially package <code>/var/log/below</code> using
|
|
permissions that do not trigger the <code>set_permissions()</code> call in Below's
|
|
code.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-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-2026-0010: Vulnerability in polymarket-clients-sdk</title><id>https://rustsec.org/advisories/RUSTSEC-2026-0010.html</id><updated>2026-02-06T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2026-0010.html" rel="alternate" type="text/html" title="RUSTSEC-2026-0010: Vulnerability in polymarket-clients-sdk"/><published>2026-02-06T12:00:00+00:00</published><summary xml:lang="en">`polymarket-clients-sdk` 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/polymarket-clients-sdk/RUSTSEC-2026-0010.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/polymarket-clients-sdk/RUSTSEC-2026-0010.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2026-0010">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2026-0010
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>polymarket-clients-sdk</code> was removed from crates.io for malicious code</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2026-02-06">
|
|
February 6, 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/polymarket-clients-sdk.html">polymarket-clients-sdk</a>
|
|
(<a href="https://crates.io/crates/polymarket-clients-sdk">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>It appeared to be typosquatting existing crate
|
|
<a href="https://crates.io/crates/polymarket-client-sdk"><code>polymarket-client-sdk</code></a> (<code>clients</code> vs <code>client</code>)
|
|
and attempting to steal credentials from local files.</p>
|
|
<p>The malicious crate had 6 versions published on 2026-02-05 and had been downloaded only 59 times.
|
|
There were no crates depending on this crate on crates.io.</p>
|
|
<p>Thanks to <a href="https://socket.dev/">Socket.dev</a> for detecting and reporting this to the crates.io team!</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></feed> |