mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 18:24:31 -06:00
1770 lines
62 KiB
XML
1770 lines
62 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-17T12: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-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><entry><title>RUSTSEC-2023-0074: Vulnerability in zerocopy</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0074.html</id><updated>2023-12-18T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0074.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0074: Vulnerability in zerocopy"/><published>2023-12-18T12:00:00+00:00</published><summary xml:lang="en">Some Ref methods are unsound with some type parameters</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/zerocopy/RUSTSEC-2023-0074.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/zerocopy/RUSTSEC-2023-0074.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2023-0074">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0074
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Some Ref methods are unsound with some type parameters</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-12-14">
|
|
December 14, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-12-18">
|
|
December 18, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/zerocopy.html">zerocopy</a>
|
|
(<a href="https://crates.io/crates/zerocopy">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/ref.html">#ref</a>
|
|
|
|
<a href="/keywords/refcell.html">#refcell</a>
|
|
|
|
<a href="/keywords/mutable-aliasing.html">#mutable-aliasing</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/google/zerocopy/issues/716">
|
|
https://github.com/google/zerocopy/issues/716
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.2.9, &lt;0.3.0</code></li>
|
|
|
|
<li><code>&gt;=0.3.2, &lt;0.4.0</code></li>
|
|
|
|
<li><code>&gt;=0.4.1, &lt;0.5.0</code></li>
|
|
|
|
<li><code>&gt;=0.5.2, &lt;0.6.0</code></li>
|
|
|
|
<li><code>&gt;=0.6.6, &lt;0.7.0</code></li>
|
|
|
|
<li><code>&gt;=0.7.31</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.2.2</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>zerocopy::Ref::into_mut</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.2.2, &lt;0.2.9</code></li>
|
|
|
|
<li><code>&gt;=0.3.0, &lt;0.3.2</code></li>
|
|
|
|
<li><code>&gt;=0.4.0, &lt;0.4.1</code></li>
|
|
|
|
<li><code>&gt;=0.5.0, &lt;0.5.2</code></li>
|
|
|
|
<li><code>&gt;=0.6.0, &lt;0.6.6</code></li>
|
|
|
|
<li><code>&gt;=0.7.0, &lt;0.7.31</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>zerocopy::Ref::into_mut_slice</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.2.2, &lt;0.2.9</code></li>
|
|
|
|
<li><code>&gt;=0.3.0, &lt;0.3.2</code></li>
|
|
|
|
<li><code>&gt;=0.4.0, &lt;0.4.1</code></li>
|
|
|
|
<li><code>&gt;=0.5.0, &lt;0.5.2</code></li>
|
|
|
|
<li><code>&gt;=0.6.0, &lt;0.6.6</code></li>
|
|
|
|
<li><code>&gt;=0.7.0, &lt;0.7.31</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>zerocopy::Ref::into_ref</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.2.2, &lt;0.2.9</code></li>
|
|
|
|
<li><code>&gt;=0.3.0, &lt;0.3.2</code></li>
|
|
|
|
<li><code>&gt;=0.4.0, &lt;0.4.1</code></li>
|
|
|
|
<li><code>&gt;=0.5.0, &lt;0.5.2</code></li>
|
|
|
|
<li><code>&gt;=0.6.0, &lt;0.6.6</code></li>
|
|
|
|
<li><code>&gt;=0.7.0, &lt;0.7.31</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>zerocopy::Ref::into_slice</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.2.2, &lt;0.2.9</code></li>
|
|
|
|
<li><code>&gt;=0.3.0, &lt;0.3.2</code></li>
|
|
|
|
<li><code>&gt;=0.4.0, &lt;0.4.1</code></li>
|
|
|
|
<li><code>&gt;=0.5.0, &lt;0.5.2</code></li>
|
|
|
|
<li><code>&gt;=0.6.0, &lt;0.6.6</code></li>
|
|
|
|
<li><code>&gt;=0.7.0, &lt;0.7.31</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <code>Ref</code> methods <code>into_ref</code>, <code>into_mut</code>, <code>into_slice</code>, and <code>into_slice_mut</code> are unsound
|
|
and may allow safe code to exhibit undefined behavior when used with <code>Ref&lt;B, T&gt;</code> where <code>B</code>
|
|
is <a href="https://doc.rust-lang.org/core/cell/struct.Ref.html"><code>cell::Ref</code></a> or
|
|
<a href="https://doc.rust-lang.org/core/cell/struct.RefMut.html"><code>cell::RefMut</code></a>. Note that these
|
|
methods remain sound when used with <code>B</code> types other than <code>cell::Ref</code> or <code>cell::RefMut</code>.</p>
|
|
<p>See https://github.com/google/zerocopy/issues/716 for a more in-depth analysis.</p>
|
|
<p>The current plan is to yank the affected versions soon. See
|
|
https://github.com/google/zerocopy/issues/679 for more detail.</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-0073: Vulnerability in candid</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0073.html</id><updated>2023-12-09T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0073.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0073: Vulnerability in candid"/><published>2023-12-09T12:00:00+00:00</published><summary xml:lang="en">Infinite decoding loop through specially crafted payload</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/candid/RUSTSEC-2023-0073.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/candid/RUSTSEC-2023-0073.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2023-0073">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0073
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Infinite decoding loop through specially crafted payload</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-12-08">
|
|
December 8, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-12-09">
|
|
December 9, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/candid.html">candid</a>
|
|
(<a href="https://crates.io/crates/candid">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/candid.html">#candid</a>
|
|
|
|
<a href="/keywords/canister.html">#canister</a>
|
|
|
|
<a href="/keywords/icp.html">#icp</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-6245">CVE-2023-6245</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-7787-p7x6-fq3j">GHSA-7787-p7x6-fq3j</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/dfinity/candid/pull/478">
|
|
https://github.com/dfinity/candid/pull/478
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>7.5 <span class="tag high">
|
|
HIGH
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack vector</dt><dd>Network</dd>
|
|
|
|
|
|
|
|
<dt>Attack complexity</dt><dd>Low</d>
|
|
|
|
|
|
|
|
<dt>Privileges required</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>User interaction</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Scope</dt><dd>Unchanged</dd>
|
|
|
|
|
|
|
|
<dt>Confidentiality</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Integrity</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Availability</dt><dd>High</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:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.9.10</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.9.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>candid::Decode</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.9.0, &lt;0.9.10</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The Candid library causes a Denial of Service while parsing a specially crafted payload with <code>empty</code> data type. For example, if the payload is <code>record { * ; empty }</code> and the canister interface expects <code>record { * }</code> then the rust candid decoder treats <code>empty</code> as an extra field required by the type. The problem with type <code>empty</code> is that the candid rust library wrongly categorizes <code>empty</code> as a recoverable error when skipping the field and thus causing an infinite decoding loop.</p>
|
|
<p>Canisters using affected versions of candid are exposed to denial of service by causing the decoding to run indefinitely until the canister traps due to reaching maximum instruction limit per execution round. Repeated exposure to the payload will result in degraded performance of the canister.</p>
|
|
<p>For asset canister users, <code>dfx</code> versions <code>&gt;= 0.14.4</code> to <code>&lt;= 0.15.2-beta.0</code> ships asset canister with an affected version of candid.</p>
|
|
<h3>Unaffected</h3>
|
|
<ul>
|
|
<li>Rust canisters using candid <code>&lt; 0.9.0</code> or <code>&gt;= 0.9.10</code></li>
|
|
<li>Rust canister interfaces of type other than <code>record { * }</code></li>
|
|
<li>Motoko based canisters</li>
|
|
<li>dfx (for asset canister) <code>&lt;= 0.14.3</code> or <code>&gt;= 0.15.2</code></li>
|
|
</ul>
|
|
<h3>References</h3>
|
|
<ul>
|
|
<li><a href="https://github.com/dfinity/candid/security/advisories/GHSA-7787-p7x6-fq3j">GitHub Security Advisory (GHSA-7787-p7x6-fq3j)</a></li>
|
|
<li><a href="https://github.com/dfinity/candid/pull/478">dfinity/candid/pull/478</a></li>
|
|
<li><a href="https://internetcomputer.org/docs/current/references/candid-ref">Candid Library Reference</a></li>
|
|
<li><a href="https://github.com/dfinity/candid/blob/master/spec/Candid.md">Candid Specification</a></li>
|
|
<li><a href="https://internetcomputer.org/docs/current/references/ic-interface-spec">Internet Computer Specification</a></li>
|
|
</ul>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0071: Vulnerability in rsa</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0071.html</id><updated>2023-12-15T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0071.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0071: Vulnerability in rsa"/><published>2023-11-28T12:00:00+00:00</published><summary xml:lang="en">Marvin Attack: potential key recovery through timing sidechannels</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/rsa/RUSTSEC-2023-0071.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/rsa/RUSTSEC-2023-0071.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2023-0071">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0071
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Marvin Attack: potential key recovery through timing sidechannels</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-11-22">
|
|
November 22, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-11-28">
|
|
November 28, 2023
|
|
</time>
|
|
|
|
<time datetime="2023-12-15">
|
|
(last modified: December 15, 2023)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/rsa.html">rsa</a>
|
|
(<a href="https://crates.io/crates/rsa">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/crypto-failure.html">crypto-failure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/cryptography.html">#cryptography</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-49092">CVE-2023-49092</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-c38w-74pg-36hr">GHSA-c38w-74pg-36hr</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-4grx-2x9w-596c">GHSA-4grx-2x9w-596c</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/RustCrypto/RSA/issues/19#issuecomment-1822995643">
|
|
https://github.com/RustCrypto/RSA/issues/19#issuecomment-1822995643
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://people.redhat.com/~hkario/marvin/">
|
|
https://people.redhat.com/~hkario/marvin/
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>5.9 <span class="tag medium">
|
|
MEDIUM
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack vector</dt><dd>Network</dd>
|
|
|
|
|
|
|
|
<dt>Attack complexity</dt><dd>High</d>
|
|
|
|
|
|
|
|
<dt>Privileges required</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>User interaction</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Scope</dt><dd>Unchanged</dd>
|
|
|
|
|
|
|
|
<dt>Confidentiality</dt><dd>High</dd>
|
|
|
|
|
|
|
|
<dt>Integrity</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Availability</dt><dd>None</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:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N">CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h3>Impact</h3>
|
|
<p>Due to a non-constant-time implementation, information about the private key is leaked through timing information which is observable over the network. An attacker may be able to use that information to recover the key.</p>
|
|
<h3>Patches</h3>
|
|
<p>No patch is yet available, however work is underway to migrate to a fully constant-time implementation.</p>
|
|
<h3>Workarounds</h3>
|
|
<p>The only currently available workaround is to avoid using the <code>rsa</code> crate in settings where attackers are able to observe timing information, e.g. local use on a non-compromised computer is fine.</p>
|
|
<h3>References</h3>
|
|
<p>This vulnerability was discovered as part of the &quot;<a href="https://people.redhat.com/~hkario/marvin/">Marvin Attack</a>&quot;, which revealed several implementations of RSA including OpenSSL had not properly mitigated timing sidechannel attacks.</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> |