mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 17:44:33 -06:00
1716 lines
59 KiB
XML
1716 lines
59 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-0012: Vulnerability in serde-json-wasm</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0012.html</id><updated>2024-02-09T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0012.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0012: Vulnerability in serde-json-wasm"/><published>2024-02-09T12:00:00+00:00</published><summary xml:lang="en">Stack overflow during recursive JSON parsing</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/serde-json-wasm/RUSTSEC-2024-0012.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/serde-json-wasm/RUSTSEC-2024-0012.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0012">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0012
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Stack overflow during recursive JSON parsing</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-01-24">
|
|
January 24, 2024
|
|
</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/serde-json-wasm.html">serde-json-wasm</a>
|
|
(<a href="https://crates.io/crates/serde-json-wasm">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/denial-of-service.html">denial-of-service</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/stack-overflow.html">#stack-overflow</a>
|
|
|
|
<a href="/keywords/json.html">#json</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=1.0.1</code></li>
|
|
|
|
<li><code>&gt;=0.5.2, &lt;1.0.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>When parsing untrusted, deeply nested JSON, the stack may overflow,
|
|
possibly enabling a Denial of Service attack.
|
|
This was fixed by adding a check for recursion depth.</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-0011: Vulnerability in snow</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0011.html</id><updated>2024-02-09T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0011.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0011: Vulnerability in snow"/><published>2024-02-09T12:00:00+00:00</published><summary xml:lang="en">Unauthenticated Nonce Increment in snow</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/snow/RUSTSEC-2024-0011.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/snow/RUSTSEC-2024-0011.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0011">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0011
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unauthenticated Nonce Increment in snow</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-02-09">
|
|
February 9, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/snow.html">snow</a>
|
|
(<a href="https://crates.io/crates/snow">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/noise.html">#noise</a>
|
|
|
|
<a href="/keywords/nonce.html">#nonce</a>
|
|
|
|
<a href="/keywords/state.html">#state</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/mcginty/snow/security/advisories/GHSA-7g9j-g5jg-3vv3">
|
|
https://github.com/mcginty/snow/security/advisories/GHSA-7g9j-g5jg-3vv3
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.9.5</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>There was a logic bug where unauthenticated payloads could still cause a nonce
|
|
increment in snow's internal state. For an attacker with privileges to inject
|
|
packets into the channel over which the Noise session operates, this could
|
|
allow a denial-of-service attack which could prevent message delivery by
|
|
sending garbage data.</p>
|
|
<p>Note that this only affects those who are using the stateful TransportState,
|
|
not those using StatelessTransportState.</p>
|
|
<p>This has been patched in version 0.9.5, and all users are recommended to
|
|
update.</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-0013: Vulnerability in libgit2-sys</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0013.html</id><updated>2024-02-09T12:00:00+00:00</updated><category term="denial-of-service"/><category term="code-execution"/><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0013.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0013: Vulnerability in libgit2-sys"/><published>2024-02-09T12:00:00+00:00</published><summary xml:lang="en">Memory corruption, denial of service, and arbitrary code execution in libgit2</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/libgit2-sys/RUSTSEC-2024-0013.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/libgit2-sys/RUSTSEC-2024-0013.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0013">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0013
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Memory corruption, denial of service, and arbitrary code execution in libgit2</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-09">
|
|
February 9, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/libgit2-sys.html">libgit2-sys</a>
|
|
(<a href="https://crates.io/crates/libgit2-sys">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>
|
|
|
|
<li><a href="/categories/code-execution.html">code-execution</a></li>
|
|
|
|
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/rust-lang/git2-rs/pull/1017">
|
|
https://github.com/rust-lang/git2-rs/pull/1017
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/libgit2/libgit2/releases/tag/v1.7.2">
|
|
https://github.com/libgit2/libgit2/releases/tag/v1.7.2
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="related">Related</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-j2v7-4f6v-gpg8">GHSA-j2v7-4f6v-gpg8</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-24577">CVE-2024-24577</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-54mf-x2rh-hq9v">GHSA-54mf-x2rh-hq9v</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-24575">CVE-2024-24575</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>8.6 <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>High</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:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.16.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>libgit2_sys::git_index_add</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.16.2</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>libgit2_sys::git_revparse_single</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.16.2, &gt;=0.13.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <a href="https://github.com/libgit2/libgit2/">libgit2</a> project fixed three security issues in the 1.7.2 release. These issues are:</p>
|
|
<ul>
|
|
<li>The <code>git_revparse_single</code> function can potentially enter an infinite loop on a well-crafted input, potentially causing a Denial of Service. This function is exposed in the <code>git2</code> crate via the <a href="https://docs.rs/git2/latest/git2/struct.Repository.html#method.revparse_single"><code>Repository::revparse_single</code></a> method.</li>
|
|
<li>The <code>git_index_add</code> function may cause heap corruption and possibly lead to arbitrary code execution. This function is exposed in the <code>git2</code> crate via the <a href="https://docs.rs/git2/latest/git2/struct.Index.html#method.add"><code>Index::add</code></a> method.</li>
|
|
<li>The smart transport negotiation may experience an out-of-bounds read when a remote server did not advertise capabilities.</li>
|
|
</ul>
|
|
<p>The <code>libgit2-sys</code> crate bundles libgit2, or optionally links to a system libgit2 library. In either case, versions of the libgit2 library less than 1.7.2 are vulnerable. The 0.16.2 release of <code>libgit2-sys</code> bundles the fixed version of 1.7.2, and requires a system libgit2 version of at least 1.7.2.</p>
|
|
<p>It is recommended that all users upgrade.</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-10T12: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>
|
|
|
|
<time datetime="2024-02-10">
|
|
(last modified: February 10, 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="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-w277-wpqf-rcfv">GHSA-w277-wpqf-rcfv</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-02-10T12: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>
|
|
|
|
<time datetime="2024-02-10">
|
|
(last modified: February 10, 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="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-c8v3-jhv9-4ppc">GHSA-c8v3-jhv9-4ppc</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-02-10T12: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>
|
|
|
|
<time datetime="2024-02-10">
|
|
(last modified: February 10, 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="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-w59h-378f-2frm">GHSA-w59h-378f-2frm</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</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></feed> |