mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 16:54:32 -06:00
1619 lines
57 KiB
XML
1619 lines
57 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-02-09T12: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-2023-0079: Vulnerability in pqc_kyber</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0079.html</id><updated>2024-02-09T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0079.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0079: Vulnerability in pqc_kyber"/><published>2024-02-09T12:00:00+00:00</published><summary xml:lang="en">KyberSlash: division timings depending on secrets</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/pqc_kyber/RUSTSEC-2023-0079.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/pqc_kyber/RUSTSEC-2023-0079.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2023-0079">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0079
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>KyberSlash: division timings depending on secrets</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-12-01">
|
|
December 1, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-02-09">
|
|
February 9, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/pqc_kyber.html">pqc_kyber</a>
|
|
(<a href="https://crates.io/crates/pqc_kyber">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/timing-attack.html">#timing-attack</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/Argyle-Software/kyber/issues/108">
|
|
https://github.com/Argyle-Software/kyber/issues/108
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://kyberslash.cr.yp.to/faq.html">
|
|
https://kyberslash.cr.yp.to/faq.html
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://kyberslash.cr.yp.to/libraries.html">
|
|
https://kyberslash.cr.yp.to/libraries.html
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/bwesterb/argyle-kyber/commit/b5c6ad13f4eece80e59c6ebeafd787ba1519f5f6">
|
|
https://github.com/bwesterb/argyle-kyber/commit/b5c6ad13f4eece80e59c6ebeafd787ba1519f5f6
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>7.4 <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>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>High</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:H/A:N">CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Various Kyber software libraries in various environments leak secret information into timing, specifically because</p>
|
|
<ul>
|
|
<li>these libraries include a line of code that divides a secret numerator by a public denominator,</li>
|
|
<li>the number of CPU cycles for division in various environments varies depending on the inputs to the division, and</li>
|
|
<li>this variation appears within the range of numerators used in these libraries.</li>
|
|
</ul>
|
|
<p>The KyberSlash pages track which Kyber <a href="https://kyberslash.cr.yp.to/libraries.html">libraries</a> have this issue, and include a <a href="https://kyberslash.cr.yp.to/faq.html">FAQ</a> about the issue.</p>
|
|
<h2>Author</h2>
|
|
<p>The KyberSlash pages were written by Daniel J. Bernstein. The FAQ originally said &quot;I&quot;, but some people seemed to have trouble finding this authorship statement, so the FAQ now says &quot;Bernstein&quot; instead.</p>
|
|
<h2>URL</h2>
|
|
<p>The permanent link for the KyberSlash pages is <a href="https://kyberslash.cr.yp.to">https://kyberslash.cr.yp.to</a>.</p>
|
|
<h2>Mitigation status in qpc_kyber crate</h2>
|
|
<p>The issues has not been resolved in the <code>qpc_kyber</code> crate. A third-party fork that mitigates this attack vector has been published as <a href="https://crates.io/crates/safe_pqc_kyber"><code>safe_pqc_kyber</code></a>.</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-0010: Vulnerability in svix</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0010.html</id><updated>2024-02-06T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0010.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0010: Vulnerability in svix"/><published>2024-02-06T12:00:00+00:00</published><summary xml:lang="en">Improper comparison of different-length signatures</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/svix/RUSTSEC-2024-0010.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/svix/RUSTSEC-2024-0010.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0010">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0010
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Improper comparison of different-length signatures</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-02-06">
|
|
February 6, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-02-06">
|
|
February 6, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/svix.html">svix</a>
|
|
(<a href="https://crates.io/crates/svix">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="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/svix/svix-webhooks/pull/1190">
|
|
https://github.com/svix/svix-webhooks/pull/1190
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=1.17.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>svix::webhooks::Webhook::verify</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;1.17.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <code>Webhook::verify</code> function incorrectly compared signatures of
|
|
different lengths - the two signatures would only be compared up to
|
|
the length of the shorter signature. This allowed an attacker to
|
|
pass in <code>v1,</code> as the signature, which would always pass verification.</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-0009: Vulnerability in trillium-http</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0009.html</id><updated>2024-01-24T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0009.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0009: Vulnerability in trillium-http"/><published>2024-01-24T12:00:00+00:00</published><summary xml:lang="en">Improper Neutralization of CRLF Sequences in HTTP Headers (&apos;HTTP Request/Response Splitting&apos;)</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/trillium-http/RUSTSEC-2024-0009.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/trillium-http/RUSTSEC-2024-0009.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0009">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0009
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-01-23">
|
|
January 23, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-01-24">
|
|
January 24, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/trillium-http.html">trillium-http</a>
|
|
(<a href="https://crates.io/crates/trillium-http">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/http.html">#http</a>
|
|
|
|
<a href="/keywords/request.html">#request</a>
|
|
|
|
<a href="/keywords/splitting.html">#splitting</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-9f9p-cp3c-72jf">GHSA-9f9p-cp3c-72jf</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-23644">CVE-2024-23644</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/trillium-rs/trillium/security/advisories/GHSA-9f9p-cp3c-72jf">
|
|
https://github.com/trillium-rs/trillium/security/advisories/GHSA-9f9p-cp3c-72jf
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.3.12</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h3>Summary</h3>
|
|
<p>Insufficient validation of outbound header values may lead to request splitting or response splitting attacks in scenarios where attackers have sufficient control over outbound headers.</p>
|
|
<h3>Details</h3>
|
|
<p>Outbound <code>trillium_http::HeaderValue</code> and <code>trillium_http::HeaderName</code> can be constructed infallibly and were not checked for illegal bytes when sending responses from the server. Thus, if an attacker has sufficient control over header values (or names) in an outbound response that they could inject <code>\r\n</code> sequences, they could get the client and server out of sync, and then pivot to gain control over other parts of requests or responses. (i.e. exfiltrating data from other requests, SSRF, etc.)</p>
|
|
<h3>Patches</h3>
|
|
<h4>trillium-http &gt;= 0.3.12:</h4>
|
|
<ul>
|
|
<li>If a header name is invalid in server response headers, the specific header and any associated values are omitted from network transmission.</li>
|
|
<li>If a header value is invalid in server response headers, the individual header value is omitted from network transmission. Other headers values with the same header name will still be sent.</li>
|
|
</ul>
|
|
<h3>Workarounds</h3>
|
|
<p>trillium services should sanitize or validate untrusted input that is included in header values and header names. Carriage return, newline, and null characters are not allowed.</p>
|
|
<h3>Impact</h3>
|
|
<p>This only affects use cases where attackers have control of outbound headers, and can insert &quot;\r\n&quot; sequences. Specifically, if untrusted and unvalidated input is inserted into header names or values.</p>
|
|
<h3>Credit</h3>
|
|
<p>Discovered and reported by <a href="https://github.com/divergentdave">@divergentdave</a></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-0008: Vulnerability in trillium-client</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0008.html</id><updated>2024-01-24T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0008.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0008: Vulnerability in trillium-client"/><published>2024-01-24T12:00:00+00:00</published><summary xml:lang="en">Improper Neutralization of CRLF Sequences in HTTP Headers (&apos;HTTP Request/Response Splitting&apos;)</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/trillium-client/RUSTSEC-2024-0008.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/trillium-client/RUSTSEC-2024-0008.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0008">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0008
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-01-23">
|
|
January 23, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-01-24">
|
|
January 24, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/trillium-client.html">trillium-client</a>
|
|
(<a href="https://crates.io/crates/trillium-client">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/http.html">#http</a>
|
|
|
|
<a href="/keywords/request.html">#request</a>
|
|
|
|
<a href="/keywords/splitting.html">#splitting</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-9f9p-cp3c-72jf">GHSA-9f9p-cp3c-72jf</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-23644">CVE-2024-23644</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/trillium-rs/trillium/security/advisories/GHSA-9f9p-cp3c-72jf">
|
|
https://github.com/trillium-rs/trillium/security/advisories/GHSA-9f9p-cp3c-72jf
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.5.4</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h3>Summary</h3>
|
|
<p>Insufficient validation of outbound header values may lead to request splitting or response splitting attacks in scenarios where attackers have sufficient control over outbound headers.</p>
|
|
<h3>Details</h3>
|
|
<p>Outbound <code>trillium_http::HeaderValue</code> and <code>trillium_http::HeaderName</code> can be constructed infallibly and were not checked for illegal bytes when sending requests. Thus, if an attacker has sufficient control over header values (or names) in a request that they could inject <code>\r\n</code> sequences, they could get the client and server out of sync, and then pivot to gain control over other parts of requests or responses. (i.e. exfiltrating data from other requests, SSRF, etc.)</p>
|
|
<h3>Patches</h3>
|
|
<h4>trillium-client &gt;= 0.5.4:</h4>
|
|
<ul>
|
|
<li>If any header name or header value is invalid in the client request headers, awaiting the client Conn returns an <code>Error::MalformedHeader</code> prior to any network access.</li>
|
|
</ul>
|
|
<h3>Workarounds</h3>
|
|
<p>trillium client applications should sanitize or validate untrusted input that is included in header values and header names. Carriage return, newline, and null characters are not allowed.</p>
|
|
<h3>Impact</h3>
|
|
<p>This only affects use cases where attackers have control of outbound headers, and can insert &quot;\r\n&quot; sequences. Specifically, if untrusted and unvalidated input is inserted into header names or values.</p>
|
|
<h3>Credit</h3>
|
|
<p>Discovered and reported by <a href="https://github.com/divergentdave">@divergentdave</a></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-0007: Unsoundness in rust-i18n-support</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0007.html</id><updated>2024-01-23T12:00:00+00:00</updated><category term="memory-exposure"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0007.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0007: Unsoundness in rust-i18n-support"/><published>2024-01-23T12:00:00+00:00</published><summary xml:lang="en">Use-after-free when setting the locale</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/rust-i18n-support/RUSTSEC-2024-0007.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/rust-i18n-support/RUSTSEC-2024-0007.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0007">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0007
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Use-after-free when setting the locale</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-01-19">
|
|
January 19, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-01-23">
|
|
January 23, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/rust-i18n-support.html">rust-i18n-support</a>
|
|
(<a href="https://crates.io/crates/rust-i18n-support">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-exposure.html">memory-exposure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/longbridgeapp/rust-i18n/issues/71">
|
|
https://github.com/longbridgeapp/rust-i18n/issues/71
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/longbridgeapp/rust-i18n/pull/72">
|
|
https://github.com/longbridgeapp/rust-i18n/pull/72
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/longbridgeapp/rust-i18n/releases/tag/v3.0.1">
|
|
https://github.com/longbridgeapp/rust-i18n/releases/tag/v3.0.1
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=3.0.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;3.0.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>rust_i18n_support::AtomicStr::as_str</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;3.0.1, &gt;=3.0.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Version 3.0.0 introduced an <code>AtomicStr</code> type, that is used to store the current locale.
|
|
It stores the locale as a raw pointer to an <code>Arc&lt;String&gt;</code>.
|
|
The locale can be read with <code>AtomicStr::as_str()</code>.
|
|
<code>AtomicStr::as_str()</code> does not increment the usage counter of the <code>Arc</code>.</p>
|
|
<p>If the locale is changed in one thread, another thread can have a stale -- possibly already freed --
|
|
reference to the stored string.</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-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-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></feed> |