mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 16:14:33 -06:00
1533 lines
54 KiB
XML
1533 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>2024-01-22T12: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-2024-0006: Vulnerability in shlex</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0006.html</id><updated>2024-01-22T12:00:00+00:00</updated><category term="code-execution"/><category term="file-disclosure"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0006.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0006: Vulnerability in shlex"/><published>2024-01-22T12:00:00+00:00</published><summary xml:lang="en">Multiple issues involving quote API</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/shlex/RUSTSEC-2024-0006.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/shlex/RUSTSEC-2024-0006.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0006">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0006
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Multiple issues involving quote API</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-01-21">
|
|
January 21, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-01-22">
|
|
January 22, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/shlex.html">shlex</a>
|
|
(<a href="https://crates.io/crates/shlex">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/code-execution.html">code-execution</a></li>
|
|
|
|
<li><a href="/categories/file-disclosure.html">file-disclosure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-r7qv-8r2h-pg27">GHSA-r7qv-8r2h-pg27</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/comex/rust-shlex/security/advisories/GHSA-r7qv-8r2h-pg27">
|
|
https://github.com/comex/rust-shlex/security/advisories/GHSA-r7qv-8r2h-pg27
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=1.3.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>shlex::bytes::join</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;1.2.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>shlex::bytes::quote</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;1.2.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>shlex::join</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;1.2.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>shlex::quote</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;1.2.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h2>Issue 1: Failure to quote characters</h2>
|
|
<p>Affected versions of this crate allowed the bytes <code>{</code> and <code>\xa0</code> to appear
|
|
unquoted and unescaped in command arguments.</p>
|
|
<p>If the output of <code>quote</code> or <code>join</code> is passed to a shell, then what should be a
|
|
single command argument could be interpreted as multiple arguments.</p>
|
|
<p>This does not <em>directly</em> allow arbitrary command execution (you can't inject a
|
|
command substitution or similar). But depending on the command you're running,
|
|
being able to inject multiple arguments where only one is expected could lead
|
|
to undesired consequences, potentially including arbitrary command execution.</p>
|
|
<p>The flaw was corrected in version 1.2.1 by escaping additional characters.
|
|
Updating to 1.3.0 is recommended, but 1.2.1 offers a more minimal fix if
|
|
desired.</p>
|
|
<p>Workaround: Check for the bytes <code>{</code> and <code>\xa0</code> in <code>quote</code>/<code>join</code> input or
|
|
output.</p>
|
|
<p>(Note: <code>{</code> is problematic because it is used for glob expansion. <code>\xa0</code> is
|
|
problematic because it's treated as a word separator in <a href="https://docs.rs/shlex/latest/shlex/quoting_warning/index.html#solved-xa0">specific
|
|
environments</a>.)</p>
|
|
<h2>Issue 2: Dangerous API w.r.t. nul bytes</h2>
|
|
<p>Version 1.3.0 deprecates the <code>quote</code> and <code>join</code> APIs in favor of <code>try_quote</code>
|
|
and <code>try_join</code>, which behave the same except that they have <code>Result</code> return
|
|
type, returning <code>Err</code> if the input contains nul bytes.</p>
|
|
<p>Strings containing nul bytes generally cannot be used in Unix command arguments
|
|
or environment variables, and most shells cannot handle nul bytes even
|
|
internally. If you try to pass one anyway, then the results might be
|
|
security-sensitive in uncommon scenarios. <a href="https://docs.rs/shlex/latest/shlex/quoting_warning/index.html#nul-bytes">More details here.</a></p>
|
|
<p>Due to the low severity, the behavior of the original <code>quote</code> and <code>join</code> APIs
|
|
has not changed; they continue to allow nuls.</p>
|
|
<p>Workaround: Manually check for nul bytes in <code>quote</code>/<code>join</code> input or output.</p>
|
|
<h2>Issue 3: Lack of documentation for interactive shell risks</h2>
|
|
<p>The <code>quote</code> family of functions does not and cannot escape control characters.
|
|
With non-interactive shells this is perfectly safe, as control characters have
|
|
no special effect. But if you writing directly to the standard input of an
|
|
interactive shell (or through a pty), then control characters <a href="https://docs.rs/shlex/latest/shlex/quoting_warning/index.html#control-characters-interactive-contexts-only">can cause
|
|
misbehavior including arbitrary command injection.</a></p>
|
|
<p>This is essentially unfixable, and has not been patched. But as of version
|
|
1.3.0, documentation has been added.</p>
|
|
<p>Future versions of <code>shlex</code> may add API variants that avoid the issue at the
|
|
cost of reduced portability.</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-2024-0005: Unsoundness in threadalone</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0005.html</id><updated>2024-01-22T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0005.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0005: Unsoundness in threadalone"/><published>2024-01-22T12:00:00+00:00</published><summary xml:lang="en">Unsound sending of non-Send types across threads</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/threadalone/RUSTSEC-2024-0005.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/threadalone/RUSTSEC-2024-0005.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0005">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0005
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unsound sending of non-Send types across threads</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-01-07">
|
|
January 7, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-01-22">
|
|
January 22, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/threadalone.html">threadalone</a>
|
|
(<a href="https://crates.io/crates/threadalone">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/cr0sh/threadalone/issues/1">
|
|
https://github.com/cr0sh/threadalone/issues/1
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.2.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Affected versions can run the <code>Drop</code> impl of a non-Send type on a different
|
|
thread than it was created on.</p>
|
|
<p>The flaw occurs when a stderr write performed by the <code>threadalone</code> crate fails,
|
|
for example because stderr is redirected to a location on a filesystem that is
|
|
full, or because stderr is a pipe that has been closed by the reader.</p>
|
|
<p>Dropping a non-Send type on the wrong thread is unsound. If used with a type
|
|
such as a pthread-based <code>MutexGuard</code>, <a href="https://github.com/rust-lang/rust/issues/23465#issuecomment-82730326">the consequence is undefined
|
|
behavior</a>. If used with <code>Rc</code>, there would be a data race on the
|
|
reference count, which is likewise 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-2024-0004: cosmwasm is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0004.html</id><updated>2024-01-21T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0004.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0004: cosmwasm is unmaintained"/><published>2024-01-21T12:00:00+00:00</published><summary xml:lang="en">`cosmwasm` is unmaintained</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/cosmwasm/RUSTSEC-2024-0004.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/cosmwasm/RUSTSEC-2024-0004.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0004">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0004
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>cosmwasm</code> is unmaintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-01-20">
|
|
January 20, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-01-21">
|
|
January 21, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/cosmwasm.html">cosmwasm</a>
|
|
(<a href="https://crates.io/crates/cosmwasm">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unmaintained
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/CosmWasm/cosmwasm/issues/1430">
|
|
https://github.com/CosmWasm/cosmwasm/issues/1430
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The crate <code>cosmwasm</code> is <a href="https://github.com/CosmWasm/cosmwasm/issues/1430">not used anymore</a> since spring 2020.
|
|
The functionality was split in multiple different crates, such as the standard library <code>cosmwasm-std</code> and the virtual machine <code>cosmwasm-vm</code>. An overview can be found in the <a href="https://github.com/CosmWasm/cosmwasm">cosmwasm repository</a>.</p>
|
|
<p>If you have this crate in your dependency tree, this is very likely by mistake and should be corrected.</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-2024-0003: Vulnerability in h2</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0003.html</id><updated>2024-01-17T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0003.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0003: Vulnerability in h2"/><published>2024-01-17T12:00:00+00:00</published><summary xml:lang="en">Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/h2/RUSTSEC-2024-0003.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/h2/RUSTSEC-2024-0003.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0003">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0003
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-01-17">
|
|
January 17, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-01-17">
|
|
January 17, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/h2.html">h2</a>
|
|
(<a href="https://crates.io/crates/h2">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/denial-of-service.html">denial-of-service</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/http.html">#http</a>
|
|
|
|
<a href="/keywords/http2.html">#http2</a>
|
|
|
|
<a href="/keywords/h2.html">#h2</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/Netflix/security-bulletins/blob/master/advisories/third-party/2019-002.md">
|
|
https://github.com/Netflix/security-bulletins/blob/master/advisories/third-party/2019-002.md
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="related">Related</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-9514">CVE-2019-9514</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>^0.3.24</code></li>
|
|
|
|
<li><code>&gt;=0.4.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>An attacker with an HTTP/2 connection to an affected endpoint can send a steady stream of invalid frames to force the
|
|
generation of reset frames on the victim endpoint.
|
|
By closing their recv window, the attacker could then force these resets to be queued in an unbounded fashion,
|
|
resulting in Out Of Memory (OOM) and high CPU usage.</p>
|
|
<p>This fix is corrected in <a href="https://github.com/hyperium/h2/pull/737">hyperium/h2#737</a>, which limits the total number of
|
|
internal error resets emitted by default before the connection is closed.</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-2024-0002: Unsoundness in vmm-sys-util</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0002.html</id><updated>2024-01-13T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0002.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0002: Unsoundness in vmm-sys-util"/><published>2024-01-13T12:00:00+00:00</published><summary xml:lang="en">`serde` deserialization for `FamStructWrapper` lacks bound checks that could potentially lead to out-of-bounds memory access</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/vmm-sys-util/RUSTSEC-2024-0002.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/vmm-sys-util/RUSTSEC-2024-0002.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0002">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0002
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>serde</code> deserialization for <code>FamStructWrapper</code> lacks bound checks that could potentially lead to out-of-bounds memory access</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-01-02">
|
|
January 2, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-01-13">
|
|
January 13, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/vmm-sys-util.html">vmm-sys-util</a>
|
|
(<a href="https://crates.io/crates/vmm-sys-util">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="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-50711">CVE-2023-50711</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-875g-mfp6-g7f9">GHSA-875g-mfp6-g7f9</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/advisories/GHSA-875g-mfp6-g7f9">
|
|
https://github.com/advisories/GHSA-875g-mfp6-g7f9
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>5.7 <span class="tag medium">
|
|
MEDIUM
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack vector</dt><dd>Local</dd>
|
|
|
|
|
|
|
|
<dt>Attack complexity</dt><dd>Low</d>
|
|
|
|
|
|
|
|
<dt>Privileges required</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>User interaction</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Scope</dt><dd>Changed</dd>
|
|
|
|
|
|
|
|
<dt>Confidentiality</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Integrity</dt><dd>Low</dd>
|
|
|
|
|
|
|
|
<dt>Availability</dt><dd>Low</dd>
|
|
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt id="cvss">CVSS Vector</dt>
|
|
<dd><a href="https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L">CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.12.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.5.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>vmm_sys_util::fam::FamStructWrapper::deserialize</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.12.0, &gt;=0.5.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h2>Impact</h2>
|
|
<p>An issue was discovered in the <code>FamStructWrapper::deserialize</code> implementation
|
|
provided by the crate for <code>vmm_sys_util::fam::FamStructWrapper</code>, which can lead
|
|
to out of bounds memory accesses. The deserialization does not check that the
|
|
length stored in the header matches the flexible array length. Mismatch in the
|
|
lengths might allow out of bounds memory access through Rust-safe methods.</p>
|
|
<p>Impacted versions: &gt;= 0.5.0</p>
|
|
<h2>Patches</h2>
|
|
<p>The issue was corrected in version 0.12.0 by inserting a check that verifies
|
|
the lengths of compared flexible arrays are equal for any deserialized header
|
|
and aborting deserialization otherwise. Moreover, the API was changed so that
|
|
header length can only be modified through Rust-unsafe code. This ensures that
|
|
users cannot trigger out-of-bounds memory access from Rust-safe 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-2024-0001: Unsoundness in ferris-says</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0001.html</id><updated>2024-01-13T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0001.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0001: Unsoundness in ferris-says"/><published>2024-01-13T12:00:00+00:00</published><summary xml:lang="en">Unsound use of str::from_utf8_unchecked on bytes which are not UTF-8</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/ferris-says/RUSTSEC-2024-0001.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/ferris-says/RUSTSEC-2024-0001.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0001">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0001
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unsound use of str::from_utf8_unchecked on bytes which are not UTF-8</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-01-13">
|
|
January 13, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-01-13">
|
|
January 13, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/ferris-says.html">ferris-says</a>
|
|
(<a href="https://crates.io/crates/ferris-says">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/rust-lang/ferris-says/pull/21">
|
|
https://github.com/rust-lang/ferris-says/pull/21
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.3.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;=0.1.2</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Affected versions receive a <code>&amp;[u8]</code> from the caller through a safe API, and pass
|
|
it directly to the unsafe <code>str::from_utf8_unchecked</code> function.</p>
|
|
<p>The behavior of <code>ferris_says::say</code> is undefined if the bytes from the caller
|
|
don't happen to be valid UTF-8.</p>
|
|
<p>The flaw was corrected in <a href="https://github.com/rust-lang/ferris-says/pull/21">ferris-says#21</a> by using the safe <code>str::from_utf8</code>
|
|
instead, and returning an error on invalid input. However this fix has not yet
|
|
been published to crates.io as a patch version for 0.2.</p>
|
|
<p>Separately, <a href="https://github.com/rust-lang/ferris-says/pull/32">ferris-says#32</a> has introduced a different API for version 0.3
|
|
which accepts input as <code>&amp;str</code> rather than <code>&amp;[u8]</code>, so is unaffected by this 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-2023-0078: Unsoundness in tracing</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0078.html</id><updated>2024-01-13T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0078.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0078: Unsoundness in tracing"/><published>2024-01-13T12:00:00+00:00</published><summary xml:lang="en">Potential stack use-after-free in `Instrumented::into_inner`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/tracing/RUSTSEC-2023-0078.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/tracing/RUSTSEC-2023-0078.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2023-0078">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0078
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Potential stack use-after-free in <code>Instrumented::into_inner</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-10-19">
|
|
October 19, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-01-13">
|
|
January 13, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/tracing.html">tracing</a>
|
|
(<a href="https://crates.io/crates/tracing">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/use-after-free.html">#use-after-free</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/tokio-rs/tracing/pull/2765">
|
|
https://github.com/tokio-rs/tracing/pull/2765
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.1.40</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;=0.1.37</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>tracing::instrument::Instrumented::into_inner</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.1.38</code></li>
|
|
|
|
<li><code>&lt;0.1.40</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The implementation of the <a href="https://docs.rs/tracing/latest/tracing/instrument/struct.Instrumented.html#method.into_inner"><code>Instrumented::into_inner</code></a> method in affected
|
|
versions of this crate contains undefined behavior due to incorrect use of
|
|
<a href="https://doc.rust-lang.org/std/mem/fn.forget.html"><code>std::mem::forget</code></a> The function creates <code>*const</code> pointers to <code>self</code>, calls
|
|
<a href="https://doc.rust-lang.org/std/mem/fn.forget.html"><code>mem::forget(self)</code></a>, and then moves values out of those
|
|
pointers using <a href="https://doc.rust-lang.org/std/primitive.pointer.html#method.read-1"><code>std::ptr::read</code></a>.</p>
|
|
<pre><code class="language-rust">// To manually destructure `Instrumented` without `Drop`, we
|
|
// move it into a ManuallyDrop and use pointers to its fields
|
|
let span: *const Span = &amp;this.span;
|
|
let inner: *const ManuallyDrop&lt;T&gt; = &amp;this.inner;
|
|
mem::forget(self);
|
|
// SAFETY: Those pointers are valid for reads, because `Drop` didn't
|
|
// run, and properly aligned, because `Instrumented` isn't
|
|
// `#[repr(packed)]`.
|
|
let _span = unsafe { span.read() };
|
|
let inner = unsafe { inner.read() };
|
|
</code></pre>
|
|
<p>However, the <a href="https://doc.rust-lang.org/std/mem/fn.forget.html"><code>mem::forget</code> documentation</a> states:</p>
|
|
<blockquote>
|
|
<p>Any resources the value manages, such as heap memory or a file handle, will
|
|
linger forever in an unreachable state. <strong>However, it does not guarantee that
|
|
pointers to this memory will remain valid.</strong></p>
|
|
</blockquote>
|
|
<p>This means that these pointers are no longer valid. This could result in a stack
|
|
use-after-free if LLVM chooses to reuse <code>self</code>'s stack slot for a rebinding
|
|
after the call to <a href="https://doc.rust-lang.org/std/mem/fn.forget.html"><code>std::mem::forget</code></a>.</p>
|
|
<p>This undefined behavior has not been observed to cause miscompilation as of Rust
|
|
1.73.0. However, any use of this method with the affected versions of <code>tracing</code>
|
|
are unsound.</p>
|
|
<p>The flaw was corrected in commit <a href="https://github.com/tokio-rs/tracing/commit/20a1762b3fd5f1fafead198fd18e469c68683721">20a1762</a> (<a href="https://github.com/tokio-rs/tracing/pull/2765">PR #2765</a>) by replacing the use of
|
|
<a href="https://doc.rust-lang.org/std/mem/fn.forget.html"><code>std::mem::forget</code></a> with <code>std::mem::ManuallyDrop</code>, ensuring that the stack slot
|
|
is not reused and the pointers remain valid when they are read. The fix is
|
|
published in <code>tracing</code> <a href="https://crates.io/crates/tracing/0.1.40">v0.1.40</a>. Affected versions have been yanked from
|
|
crates.io.</p>
|
|
<p>Thanks to <a href="https://github.com/cramertj">Taylor Cramer</a> and <a href="https://github.com/manishearth">Manish Goregaokar</a> for finding and correcting
|
|
this issue!</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-2023-0077: Vulnerability in rosenpass</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0077.html</id><updated>2023-12-21T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0077.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0077: Vulnerability in rosenpass"/><published>2023-12-21T12:00:00+00:00</published><summary xml:lang="en">Remotely exploitable DoS condition in Rosenpass &lt;=0.2.0</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/rosenpass/RUSTSEC-2023-0077.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/rosenpass/RUSTSEC-2023-0077.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2023-0077">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0077
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Remotely exploitable DoS condition in Rosenpass &lt;=0.2.0</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-11-04">
|
|
November 4, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-12-21">
|
|
December 21, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/rosenpass.html">rosenpass</a>
|
|
(<a href="https://crates.io/crates/rosenpass">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/remote.html">#remote</a>
|
|
|
|
<a href="/keywords/single-byte.html">#single-byte</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/rosenpass/rosenpass/commit/93439858d1c44294a7b377f775c4fc897a370bb2">
|
|
https://github.com/rosenpass/rosenpass/commit/93439858d1c44294a7b377f775c4fc897a370bb2
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.2.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Affected version do this crate did not validate the size of buffers when attempting to decode messages.</p>
|
|
<p>This allows an attacker to trigger a panic by sending a UDP datagram with a 1 byte payload over network.</p>
|
|
<p>This flaw was corrected by validating the size of the buffers before attempting to decode the message.</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-2023-0075: Unsoundness in unsafe-libyaml</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0075.html</id><updated>2023-12-20T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0075.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0075: Unsoundness in unsafe-libyaml"/><published>2023-12-20T12:00:00+00:00</published><summary xml:lang="en">Unaligned write of u64 on 32-bit and 16-bit platforms</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/unsafe-libyaml/RUSTSEC-2023-0075.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/unsafe-libyaml/RUSTSEC-2023-0075.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2023-0075">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0075
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unaligned write of u64 on 32-bit and 16-bit platforms</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-12-20">
|
|
December 20, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-12-20">
|
|
December 20, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/unsafe-libyaml.html">unsafe-libyaml</a>
|
|
(<a href="https://crates.io/crates/unsafe-libyaml">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unsound
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/unaligned-write.html">#unaligned-write</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/dtolnay/unsafe-libyaml/issues/21">
|
|
https://github.com/dtolnay/unsafe-libyaml/issues/21
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.2.10</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Affected versions allocate memory using the alignment of <code>usize</code> and write data
|
|
to it of type <code>u64</code>, without using <code>core::ptr::write_unaligned</code>. In platforms
|
|
with sub-64bit alignment for <code>usize</code> (including wasm32 and x86) these writes
|
|
are insufficiently aligned some of the time.</p>
|
|
<p>If using an ordinary optimized standard library, the bug exhibits Undefined
|
|
Behavior so may or may not behave in any sensible way, depending on
|
|
optimization settings and hardware and other things. If using a Rust standard
|
|
library built with debug assertions enabled, the bug manifests deterministically
|
|
in a crash (non-unwinding panic) saying <em>&quot;ptr::write requires that the pointer
|
|
argument is aligned and non-null&quot;</em>.</p>
|
|
<p>No 64-bit platform is impacted by the bug.</p>
|
|
<p>The flaw was corrected by allocating with adequately high alignment on all
|
|
platforms.</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-2023-0076: cpython is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0076.html</id><updated>2023-12-20T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0076.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0076: cpython is unmaintained"/><published>2023-12-20T12:00:00+00:00</published><summary xml:lang="en">`cpython` is unmaintained</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/cpython/RUSTSEC-2023-0076.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/cpython/RUSTSEC-2023-0076.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2023-0076">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0076
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>cpython</code> is unmaintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-11-14">
|
|
November 14, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-12-20">
|
|
December 20, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/cpython.html">cpython</a>
|
|
(<a href="https://crates.io/crates/cpython">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unmaintained
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/dgrunwald/rust-cpython/commit/e815555">
|
|
https://github.com/dgrunwald/rust-cpython/commit/e815555
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/dgrunwald/rust-cpython/issues/265">
|
|
https://github.com/dgrunwald/rust-cpython/issues/265
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/dgrunwald/rust-cpython/issues/294">
|
|
https://github.com/dgrunwald/rust-cpython/issues/294
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <code>cpython</code> crate and the underlying <code>python3-sys</code> and <code>python27-sys</code> crates have been marked as <a href="https://github.com/dgrunwald/rust-cpython/commit/e815555">no longer actively maintained</a> by the developer.</p>
|
|
<p>There are also open issues for unsound code that is currently in these crates:</p>
|
|
<ul>
|
|
<li><a href="https://github.com/dgrunwald/rust-cpython/issues/265">cpython#265</a>: Using some string functions causes segmentation faults on big-endian architectures. Due to incorrect bitfield manipulations, it is possible to create invalid Python objects that crash the Python interpreter.</li>
|
|
<li><a href="https://github.com/dgrunwald/rust-cpython/issues/294">cpython#294</a>: Python 3.12 is not supported. Due to ABI changes in Python 3.12, calling some string functions will result in invalid Python objects and / or cause out-of-bounds memory accesses.</li>
|
|
</ul>
|
|
<h2>Recommended alternatives</h2>
|
|
<ul>
|
|
<li><a href="https://crates.io/crates/pyo3"><code>pyo3</code></a> (version 0.19.2 and newer)</li>
|
|
</ul>
|
|
<p>The <code>pyo3</code> crate is actively maintained. Preliminary support for Python 3.12 was added in version 0.19.2, and version 0.20.0 was released with full support for Python 3.12.</p>
|
|
<p>Both versions implement string functions correctly on big-endian architectures. The endianness issue affecting the <code>cpython</code> crate was fixed in recent versions of <code>pyo3</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></feed> |