mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 22:01:16 -06:00
1899 lines
70 KiB
XML
1899 lines
70 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-06-18T12: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-0344: Vulnerability in curve25519-dalek</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0344.html</id><updated>2024-06-18T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0344.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0344: Vulnerability in curve25519-dalek"/><published>2024-06-18T12:00:00+00:00</published><summary xml:lang="en">Timing variability in `curve25519-dalek`&apos;s `Scalar29::sub`/`Scalar52::sub`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/curve25519-dalek/RUSTSEC-2024-0344.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/curve25519-dalek/RUSTSEC-2024-0344.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0344">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0344
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Timing variability in <code>curve25519-dalek</code>'s <code>Scalar29::sub</code>/<code>Scalar52::sub</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-06-18">
|
|
June 18, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-06-18">
|
|
June 18, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/curve25519-dalek.html">curve25519-dalek</a>
|
|
(<a href="https://crates.io/crates/curve25519-dalek">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/dalek-cryptography/curve25519-dalek/pull/659">
|
|
https://github.com/dalek-cryptography/curve25519-dalek/pull/659
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=4.1.3</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Timing variability of any kind is problematic when working with potentially secret values such as
|
|
elliptic curve scalars, and such issues can potentially leak private keys and other secrets. Such a
|
|
problem was recently discovered in <code>curve25519-dalek</code>.</p>
|
|
<p>The <code>Scalar29::sub</code> (32-bit) and <code>Scalar52::sub</code> (64-bit) functions contained usage of a mask value
|
|
inside a loop where LLVM saw an opportunity to insert a branch instruction (<code>jns</code> on x86) to
|
|
conditionally bypass this code section when the mask value is set to zero as can be seen in godbolt:</p>
|
|
<ul>
|
|
<li>32-bit (see L106): <a href="https://godbolt.org/z/zvaWxzvqv">https://godbolt.org/z/zvaWxzvqv</a></li>
|
|
<li>64-bit (see L48): <a href="https://godbolt.org/z/PczYj7Pda">https://godbolt.org/z/PczYj7Pda</a></li>
|
|
</ul>
|
|
<p>A similar problem was recently discovered in the Kyber reference implementation:</p>
|
|
<p><a href="https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/hqbtIGFKIpU/m/cnE3pbueBgAJ">https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/hqbtIGFKIpU/m/cnE3pbueBgAJ</a></p>
|
|
<p>As discussed on that thread, one portable solution, which is also used in this PR, is to introduce a
|
|
volatile read as an optimization barrier, which prevents the compiler from optimizing it away.</p>
|
|
<p>The fix can be validated in godbolt here:</p>
|
|
<ul>
|
|
<li>32-bit: <a href="https://godbolt.org/z/jc9j7eb8E">https://godbolt.org/z/jc9j7eb8E</a></li>
|
|
<li>64-bit: <a href="https://godbolt.org/z/x8d46Yfah">https://godbolt.org/z/x8d46Yfah</a></li>
|
|
</ul>
|
|
<p>The problem was discovered and the solution independently verified by
|
|
Alexander Wagner <a href="mailto:alexander.wagner@aisec.fraunhofer.de">alexander.wagner@aisec.fraunhofer.de</a> and Lea Themint <a href="mailto:lea.thiemt@tum.de">lea.thiemt@tum.de</a> using
|
|
their DATA tool:</p>
|
|
<p><a href="https://github.com/Fraunhofer-AISEC/DATA">https://github.com/Fraunhofer-AISEC/DATA</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-0343: Vulnerability in nano-id</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0343.html</id><updated>2024-06-15T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0343.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0343: Vulnerability in nano-id"/><published>2024-06-03T12:00:00+00:00</published><summary xml:lang="en">Reduced entropy due to inadequate character set usage</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/nano-id/RUSTSEC-2024-0343.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nano-id/RUSTSEC-2024-0343.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0343">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0343
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Reduced entropy due to inadequate character set usage</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-06-03">
|
|
June 3, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-06-03">
|
|
June 3, 2024
|
|
</time>
|
|
|
|
<time datetime="2024-06-15">
|
|
(last modified: June 15, 2024)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/nano-id.html">nano-id</a>
|
|
(<a href="https://crates.io/crates/nano-id">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-2hfw-w739-p7x5">GHSA-2hfw-w739-p7x5</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-9hc7-6w9r-wj94">GHSA-9hc7-6w9r-wj94</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-36400">CVE-2024-36400</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>9.4 <span class="tag critical">
|
|
CRITICAL
|
|
</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>High</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:H/A:L">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.4.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>nano_id::base58</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.4.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>nano_id::base62</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.4.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>nano_id::gen</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.4.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h2>Description</h2>
|
|
<p>Affected versions of the nano-id crate incorrectly generated IDs using a reduced character set in the <code>nano_id::base62</code> and <code>nano_id::base58</code> functions. Specifically, the <code>base62</code> function used a character set of 32 symbols instead of the intended 62 symbols, and the <code>base58</code> function used a character set of 16 symbols instead of the intended 58 symbols. Additionally, the <code>nano_id::gen</code> macro is also affected when a custom character set that is not a power of 2 in size is specified.</p>
|
|
<p>It should be noted that <code>nano_id::base64</code> is not affected by this vulnerability.</p>
|
|
<h2>Impact</h2>
|
|
<p>This can result in a significant reduction in entropy, making the generated IDs predictable and vulnerable to brute-force attacks when the IDs are used in security-sensitive contexts such as session tokens or unique identifiers.</p>
|
|
<h2>Patches</h2>
|
|
<p>The flaws were corrected in commit <a href="https://github.com/viz-rs/nano-id/commit/a9022772b2f1ce38929b5b81eccc670ac9d3ab23">a9022772b2f1ce38929b5b81eccc670ac9d3ab23</a> by updating the the <code>nano_id::gen</code> macro to use all specified characters correctly.</p>
|
|
<h2>PoC</h2>
|
|
<pre><code class="language-rust">use std::collections::BTreeSet;
|
|
|
|
fn main() {
|
|
test_base58();
|
|
test_base62();
|
|
}
|
|
|
|
fn test_base58() {
|
|
let mut produced_symbols = BTreeSet::new();
|
|
|
|
for _ in 0..100_000 {
|
|
id = &quot;RUSTSEC-2024-0343&quot;
|
|
for c in id.chars() {
|
|
produced_symbols.insert(c);
|
|
}
|
|
}
|
|
|
|
println!(
|
|
&quot;{} symbols generated from nano_id::base58&quot;,
|
|
produced_symbols.len()
|
|
);
|
|
}
|
|
|
|
fn test_base62() {
|
|
let mut produced_symbols = BTreeSet::new();
|
|
|
|
for _ in 0..100_000 {
|
|
id = &quot;RUSTSEC-2024-0343&quot;
|
|
for c in id.chars() {
|
|
produced_symbols.insert(c);
|
|
}
|
|
}
|
|
|
|
println!(
|
|
&quot;{} symbols generated from nano_id::base62&quot;,
|
|
produced_symbols.len()
|
|
);
|
|
}
|
|
</code></pre>
|
|
|
|
|
|
<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-0342: Vulnerability in vodozemac</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0342.html</id><updated>2024-05-20T12:00:00+00:00</updated><category term="memory-exposure"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0342.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0342: Vulnerability in vodozemac"/><published>2024-05-20T12:00:00+00:00</published><summary xml:lang="en">Degraded secret zeroization capabilities</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/vodozemac/RUSTSEC-2024-0342.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/vodozemac/RUSTSEC-2024-0342.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0342">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0342
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Degraded secret zeroization capabilities</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-05-02">
|
|
May 2, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-05-20">
|
|
May 20, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/vodozemac.html">vodozemac</a>
|
|
(<a href="https://crates.io/crates/vodozemac">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</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://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-34063">CVE-2024-34063</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-c3hm-hxwf-g5c6">GHSA-c3hm-hxwf-g5c6</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/matrix-org/vodozemac/security/advisories/GHSA-c3hm-hxwf-g5c6">
|
|
https://github.com/matrix-org/vodozemac/security/advisories/GHSA-c3hm-hxwf-g5c6
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.6.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.5.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Versions 0.5.0 and 0.5.1 of vodozemac have degraded secret zeroization capabilities,
|
|
due to changes in third-party cryptographic dependencies (the Dalek crates),
|
|
which moved secret zeroization capabilities behind a feature flag while
|
|
vodozemac disabled the default feature set.</p>
|
|
<h2>Impact</h2>
|
|
<p>The degraded zeroization capabilities could result in the production of more
|
|
memory copies of encryption secrets and secrets could linger in memory longer
|
|
than necessary. This marginally increases the risk of sensitive data exposure.</p>
|
|
<p>Overall, we consider the impact of this issue to be low. Although cryptographic
|
|
best practices recommend the clearing of sensitive information from memory once
|
|
it's no longer needed, the inherent limitations of Rust regarding absolute
|
|
zeroization reduce the practical severity of this lapse.</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-0341: Vulnerability in tls-listener</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0341.html</id><updated>2024-05-21T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0341.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0341: Vulnerability in tls-listener"/><published>2024-05-20T12:00:00+00:00</published><summary xml:lang="en">Slow loris vulnerability with default configuration</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/tls-listener/RUSTSEC-2024-0341.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/tls-listener/RUSTSEC-2024-0341.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0341">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0341
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Slow loris vulnerability with default configuration</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-03-15">
|
|
March 15, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-05-20">
|
|
May 20, 2024
|
|
</time>
|
|
|
|
<time datetime="2024-05-21">
|
|
(last modified: May 21, 2024)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/tls-listener.html">tls-listener</a>
|
|
(<a href="https://crates.io/crates/tls-listener">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="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-28854">CVE-2024-28854</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-2qph-qpvm-2qf7">GHSA-2qph-qpvm-2qf7</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/tmccombs/tls-listener/security/advisories/GHSA-2qph-qpvm-2qf7">
|
|
https://github.com/tmccombs/tls-listener/security/advisories/GHSA-2qph-qpvm-2qf7
|
|
</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.10.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>tls_listener::TlsListener::new</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.10.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>tls-listener is a rust lang wrapper around a connection listener to support TLS. With the default configuration of tls-listener, a malicious user can open 6.4 <code>TcpStream</code>s a second, sending 0 bytes, and can trigger a DoS. The default configuration options make any public service using <code>TlsListener::new()</code> vulnerable to a slow-loris DoS attack. This impacts any publicly accessible service using the default configuration of tls-listener in versions prior to 0.10.0. Users are advised to upgrade. Users unable to upgrade may mitigate this by passing a large value, such as <code>usize::MAX</code> as the parameter to <code>Builder::max_handshakes</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-0340: Vulnerability in tor-circmgr</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0340.html</id><updated>2024-05-21T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0340.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0340: Vulnerability in tor-circmgr"/><published>2024-05-20T12:00:00+00:00</published><summary xml:lang="en">Tor path lengths too short when &quot;full Vanguards&quot; configured</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/tor-circmgr/RUSTSEC-2024-0340.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/tor-circmgr/RUSTSEC-2024-0340.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0340">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0340
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Tor path lengths too short when &quot;full Vanguards&quot; configured</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-05-15">
|
|
May 15, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-05-20">
|
|
May 20, 2024
|
|
</time>
|
|
|
|
<time datetime="2024-05-21">
|
|
(last modified: May 21, 2024)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/tor-circmgr.html">tor-circmgr</a>
|
|
(<a href="https://crates.io/crates/tor-circmgr">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/tor.html">#tor</a>
|
|
|
|
<a href="/keywords/privacy.html">#privacy</a>
|
|
|
|
<a href="/keywords/information-leak.html">#information-leak</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-35313">CVE-2024-35313</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-c96h-cxx6-rmg9">GHSA-c96h-cxx6-rmg9</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
TROVE-2024-004
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://gitlab.torproject.org/tpo/core/arti/-/issues/1409">
|
|
https://gitlab.torproject.org/tpo/core/arti/-/issues/1409
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="related">Related</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
TROVE-2024-003
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.18.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.18.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h2>Description</h2>
|
|
<p>When building anonymizing circuits to or from an onion service with
|
|
full vanguards enabled,
|
|
the circuit manager code would build the circuits with one hop too few.</p>
|
|
<h2>Impact</h2>
|
|
<p>This makes users of this code more vulnerable to some kinds of traffic analysis
|
|
when they run or visit onion services.</p>
|
|
<h2>Vulnerable configurations and use cases</h2>
|
|
<p>Arti configured with &quot;full vangaurds&quot; is vulnerable.</p>
|
|
<p>Only users who make connections to Onion Services
|
|
(Tor Hidden Services) are affected.
|
|
Note, however, that when used as a browser proxy,
|
|
malicious web pages can typically make such connections.</p>
|
|
<h2>Mitigation</h2>
|
|
<p>Preventing access to Tor Hidden Services will avoid the problem,
|
|
with corresponding loss of functionality.
|
|
This can be achieved in the Arti configuration file with:</p>
|
|
<pre><code>[address_filter]
|
|
allow_onion_addrs = false
|
|
</code></pre>
|
|
<p>Changing the configuration (eg to turn off vanguards)
|
|
reclassifies the behaviour as &quot;as configured&quot;,
|
|
but reduces security rather than improving it,
|
|
so is not a mitigation.</p>
|
|
<h2>Resolution</h2>
|
|
<p>Rebuild <code>arti</code> (or other affected applications)
|
|
with a fixed version of <code>tor-circmgr</code>:
|
|
0.18.1 or later.</p>
|
|
<p>The fixed <code>tor-circmgr</code> is on crates.io and available in
|
|
<a href="https://gitlab.torproject.org/tpo/core/arti">the upstream git repository</a>
|
|
at signed tag <code>arti-v1.2.3</code>.</p>
|
|
<h3>Note about older versions</h3>
|
|
<p>Even though earlier versions are classified as &quot;not affected&quot;,
|
|
this is because in those versions the Vanguards feature
|
|
is experimental, or absent.
|
|
Downgrading worsens security, rather than improving it.</p>
|
|
<h2>References</h2>
|
|
<ul>
|
|
<li><a href="https://gitlab.torproject.org/tpo/core/arti/-/issues/1400">arti#1400</a>:
|
|
the ticket in the Arti bugtracker.</li>
|
|
<li><a href="https://gitlab.torproject.org/tpo/core/team/-/wikis/NetworkTeam/TROVE">TROVE</a>
|
|
Tor Project vulnerability database.</li>
|
|
<li><a href="https://gitlab.torproject.org/tpo/core/arti/-/issues/1409">arti#1409</a>:
|
|
the similar bug with the vanguards lite feature.</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-2024-0339: Vulnerability in tor-circmgr</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0339.html</id><updated>2024-05-21T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0339.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0339: Vulnerability in tor-circmgr"/><published>2024-05-20T12:00:00+00:00</published><summary xml:lang="en">Tor path lengths too short when &quot;Vanguards lite&quot; configured</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/tor-circmgr/RUSTSEC-2024-0339.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/tor-circmgr/RUSTSEC-2024-0339.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0339">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0339
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Tor path lengths too short when &quot;Vanguards lite&quot; configured</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-05-15">
|
|
May 15, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-05-20">
|
|
May 20, 2024
|
|
</time>
|
|
|
|
<time datetime="2024-05-21">
|
|
(last modified: May 21, 2024)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/tor-circmgr.html">tor-circmgr</a>
|
|
(<a href="https://crates.io/crates/tor-circmgr">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/tor.html">#tor</a>
|
|
|
|
<a href="/keywords/privacy.html">#privacy</a>
|
|
|
|
<a href="/keywords/information-leak.html">#information-leak</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-35312">CVE-2024-35312</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-35313">CVE-2024-35313</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-9328-gcfq-p269">GHSA-9328-gcfq-p269</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-c96h-cxx6-rmg9">GHSA-c96h-cxx6-rmg9</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
TROVE-2024-003
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://gitlab.torproject.org/tpo/core/arti/-/issues/1409">
|
|
https://gitlab.torproject.org/tpo/core/arti/-/issues/1409
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="related">Related</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
TROVE-2024-004
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.18.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.18.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h2>Description</h2>
|
|
<p>When building anonymizing circuits to or from an onion service with
|
|
'lite' vanguards (the default) enabled,
|
|
the circuit manager code would build the circuits with one hop too few.</p>
|
|
<h2>Impact</h2>
|
|
<p>This makes users of this code more vulnerable to some kinds of traffic analysis
|
|
when they run or visit onion services.</p>
|
|
<h2>Vulnerable configurations and use cases</h2>
|
|
<p>Arti configured with &quot;vangaurds lite&quot; is vulnerable;
|
|
this is the default.</p>
|
|
<p>Only users who make connections to Onion Services
|
|
(Tor Hidden Services) are affected.
|
|
Note, however, that when used as a browser proxy,
|
|
malicious web pages can typically make such connections.</p>
|
|
<h2>Mitigation</h2>
|
|
<p>Enable the &quot;full vanguards&quot; feature.
|
|
This has some cost in terms of performance, reliability,
|
|
and impact on the Tor Network.</p>
|
|
<p>(Arti configured with &quot;full vanguards&quot; has a similar bug,
|
|
TROVE-2024-04,
|
|
so this will not deliver the full incressed security of &quot;full vanguards&quot;;
|
|
but the security level of affected versions of Arti
|
|
configured with &quot;full vanguards&quot; still exceeds
|
|
the intended security level of the &quot;vanguards lite&quot; configuration.)</p>
|
|
<p>Alternatively,
|
|
preventing access to Tor Hidden Services will avoid the problem,
|
|
with corresponding loss of functionality.
|
|
This can be achieved in the Arti configuration file with:</p>
|
|
<pre><code>[address_filter]
|
|
allow_onion_addrs = false
|
|
</code></pre>
|
|
<h2>Resolution</h2>
|
|
<p>Rebuild <code>arti</code> (or other affected applications)
|
|
with a fixed version of <code>tor-circmgr</code>:
|
|
0.18.1 or later.</p>
|
|
<p>The fixed <code>tor-circmgr</code> is on crates.io and available in
|
|
<a href="https://gitlab.torproject.org/tpo/core/arti">the upstream git repository</a>
|
|
at signed tag <code>arti-v1.2.3</code>.</p>
|
|
<h3>Note about older versions</h3>
|
|
<p>Even though earlier versions are classified as &quot;not affected&quot;,
|
|
this is because in those versions the Vanguards feature
|
|
is experimental, or absent.
|
|
Downgrading worsens security, rather than improving it.</p>
|
|
<h2>References</h2>
|
|
<ul>
|
|
<li><a href="https://gitlab.torproject.org/tpo/core/arti/-/issues/1409">arti#1409</a>:
|
|
the ticket in the Arti bugtracker.</li>
|
|
<li><a href="https://gitlab.torproject.org/tpo/core/team/-/wikis/NetworkTeam/TROVE">TROVE</a>
|
|
Tor Project vulnerability database.</li>
|
|
<li><a href="https://gitlab.torproject.org/tpo/core/arti/-/issues/1400">arti#1400</a>:
|
|
the similar bug with the full vanguards feature.</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-2024-0337: zip_next is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0337.html</id><updated>2024-04-24T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0337.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0337: zip_next is unmaintained"/><published>2024-04-24T12:00:00+00:00</published><summary xml:lang="en">The crate `zip_next` has been renamed to `zip`.</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/zip_next/RUSTSEC-2024-0337.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/zip_next/RUSTSEC-2024-0337.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0337">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0337
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>The crate <code>zip_next</code> has been renamed to <code>zip</code>.</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-04-20">
|
|
April 20, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-04-24">
|
|
April 24, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/zip_next.html">zip_next</a>
|
|
(<a href="https://crates.io/crates/zip_next">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/zip-rs/zip/issues/446">
|
|
https://github.com/zip-rs/zip/issues/446
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Please switch to the new name. <code>zip_next</code> will receive no further releases.</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-0338: Vulnerability in cosmwasm-std</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0338.html</id><updated>2024-04-26T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0338.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0338: Vulnerability in cosmwasm-std"/><published>2024-04-24T12:00:00+00:00</published><summary xml:lang="en">Arithmetic overflows in cosmwasm-std</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/cosmwasm-std/RUSTSEC-2024-0338.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/cosmwasm-std/RUSTSEC-2024-0338.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0338">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0338
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Arithmetic overflows in cosmwasm-std</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-04-24">
|
|
April 24, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-04-24">
|
|
April 24, 2024
|
|
</time>
|
|
|
|
<time datetime="2024-04-26">
|
|
(last modified: April 26, 2024)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/cosmwasm-std.html">cosmwasm-std</a>
|
|
(<a href="https://crates.io/crates/cosmwasm-std">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/overflow.html">#overflow</a>
|
|
|
|
<a href="/keywords/integer.html">#integer</a>
|
|
|
|
<a href="/keywords/arithmetic.html">#arithmetic</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-8724-5xmm-w5xq">GHSA-8724-5xmm-w5xq</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-002.md">
|
|
https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-002.md
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=1.4.4, &lt;1.5.0</code></li>
|
|
|
|
<li><code>&gt;=1.5.4, &lt;2.0.0</code></li>
|
|
|
|
<li><code>&gt;=2.0.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;1.3.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Some mathematical operations in <code>cosmwasm-std</code> use wrapping math instead of
|
|
panicking on overflow for very big numbers. This can lead to wrong calculations in contracts
|
|
that use these operations.</p>
|
|
<p>Affected functions:</p>
|
|
<ul>
|
|
<li><code>Uint{256,512}::pow</code> / <code>Int{256,512}::pow</code></li>
|
|
<li><code>Int{256,512}::neg</code></li>
|
|
</ul>
|
|
<p>Affected if <code>overflow-checks = true</code> is not set:</p>
|
|
<ul>
|
|
<li><code>Uint{64,128}::pow</code> / <code>Int{64,128}::pow</code></li>
|
|
<li><code>Int{64,128}::neg</code></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-2024-0336: Vulnerability in rustls</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0336.html</id><updated>2024-04-19T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0336.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0336: Vulnerability in rustls"/><published>2024-04-19T12:00:00+00:00</published><summary xml:lang="en">`rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/rustls/RUSTSEC-2024-0336.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/rustls/RUSTSEC-2024-0336.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0336">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0336
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>rustls::ConnectionCommon::complete_io</code> could fall into an infinite loop based on network input</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-04-19">
|
|
April 19, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-04-19">
|
|
April 19, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/rustls.html">rustls</a>
|
|
(<a href="https://crates.io/crates/rustls">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="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-32650">CVE-2024-32650</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-6g7w-8wpp-frhj">GHSA-6g7w-8wpp-frhj</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/rustls/rustls/security/advisories/GHSA-6g7w-8wpp-frhj">
|
|
https://github.com/rustls/rustls/security/advisories/GHSA-6g7w-8wpp-frhj
|
|
</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.23.5</code></li>
|
|
|
|
<li><code>&gt;=0.22.4, &lt;0.23.0</code></li>
|
|
|
|
<li><code>&gt;=0.21.11, &lt;0.22.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>rustls::ConnectionCommon::complete_io</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;=0.23.4</code></li>
|
|
|
|
<li><code>&lt;=0.22.3</code></li>
|
|
|
|
<li><code>&lt;=0.21.10</code></li>
|
|
|
|
<li><code>^0.20</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>If a <code>close_notify</code> alert is received during a handshake, <code>complete_io</code>
|
|
does not terminate.</p>
|
|
<p>Callers which do not call <code>complete_io</code> are not affected.</p>
|
|
<p><code>rustls-tokio</code> and <code>rustls-ffi</code> do not call <code>complete_io</code>
|
|
and are not affected.</p>
|
|
<p><code>rustls::Stream</code> and <code>rustls::StreamOwned</code> types use
|
|
<code>complete_io</code> and are affected.</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-0335: Vulnerability in gix-transport</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0335.html</id><updated>2024-04-26T12:00:00+00:00</updated><category term="code-execution"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0335.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0335: Vulnerability in gix-transport"/><published>2024-04-13T12:00:00+00:00</published><summary xml:lang="en">gix-transport indirect code execution via malicious username</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/gix-transport/RUSTSEC-2024-0335.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/gix-transport/RUSTSEC-2024-0335.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0335">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0335
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>gix-transport indirect code execution via malicious username</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-04-13">
|
|
April 13, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-04-13">
|
|
April 13, 2024
|
|
</time>
|
|
|
|
<time datetime="2024-04-26">
|
|
(last modified: April 26, 2024)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/gix-transport.html">gix-transport</a>
|
|
(<a href="https://crates.io/crates/gix-transport">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>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-32884">CVE-2024-32884</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-98p4-xjmm-8mfh">GHSA-98p4-xjmm-8mfh</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/Byron/gitoxide/security/advisories/GHSA-98p4-xjmm-8mfh">
|
|
https://github.com/Byron/gitoxide/security/advisories/GHSA-98p4-xjmm-8mfh
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.42.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h3>Summary</h3>
|
|
<p><code>gix-transport</code> does not check the username part of a URL for text that the external <code>ssh</code> program would interpret as an option. A specially crafted clone URL can smuggle options to SSH. The possibilities are syntactically limited, but if a malicious clone URL is used by an application whose current working directory contains a malicious file, arbitrary code execution occurs.</p>
|
|
<p>The first <code>gix</code> crate with the fix <a href="https://crates.io/crates/gix/0.62.0">is version 0.62.0</a>, and the first fixed <code>gix</code> CLI is <a href="https://github.com/Byron/gitoxide/releases/tag/v0.35.0">version 0.35</a>. <code>gix-transport</code> <a href="https://crates.io/crates/gix-transport/0.42.0">at version v0.42</a> is the lowest-level plumbing crate with the fix.</p>
|
|
<h3>Details</h3>
|
|
<p>This is related to the patched vulnerability <a href="https://rustsec.org/advisories/RUSTSEC-2023-0064.html">RUSTSEC-2023-0064</a>, but appears less severe due to a greater attack complexity. Since <a href="https://github.com/Byron/gitoxide/pull/1032">https://github.com/Byron/gitoxide/pull/1032</a>, <code>gix-transport</code> checks the host and path portions of a URL for text that has a <code>-</code> in a position that will cause <code>ssh</code> to interpret part of all of the URL as an option argument. But it does not check the non-mandatory username portion of the URL.</p>
|
|
<p>As in Git, when an address is a URL of the form <code>ssh://username@hostname/path</code>, or when it takes the special form <code>username@hostname:dirs/repo</code>, this is treated as an SSH URL. <code>gix-transport</code> will replace some characters in <code>username</code> with their <code>%</code>-based URL encodings, but otherwise passes <code>username@hostname</code> as an argument to the external <code>ssh</code> command. This happens even if <code>username</code> begins with a hyphen. In that case, <code>ssh</code> treats that argument as an option argument, and attempts to interpret and honor it as a sequence of one or more options possibly followed by an operand for the last option.</p>
|
|
<p>This is harder to exploit than <a href="https://rustsec.org/advisories/RUSTSEC-2023-0064.html">RUSTSEC-2023-0064</a>, because the possibilities are constrained by:</p>
|
|
<ul>
|
|
<li>
|
|
<p>The difficulty of forming an option argument <code>ssh</code> accepts, given that characters such as <code>=</code>, <code>/</code>, and <code>\</code>, are URL-encoded, <code>:</code> is removed, and the argument passed to <code>ssh</code> contains the <code>@</code> sign and subsequent host identifier, which in an effective attack must be parseable as a suffix of the operand passed to the last option.</p>
|
|
<p>The inability to include a literal <code>=</code> prevents the use of <code>-oNAME=VALUE</code> (e.g., <code>-oProxyCommand=payload</code>). The inability to include a literal <code>/</code> or <code>\</code> prevents smuggling in a path operand residing outside the current working directory, incuding on Windows. (Although a <code>~</code> character may be smuggled in, <code>ssh</code> does not perform its own tilde expansion, so it does not form an absolute path.)</p>
|
|
</li>
|
|
<li>
|
|
<p>The difficulty, or perhaps impossibility, of completing a connection (other than when arbitrary code execution has been achieved). This complicates or altogether prevents the use of options such as <code>-A</code> and <code>-X</code> together with a connection to a real but malicious server. The reason a connection cannot generally be completed when exploiting this vulnerability is that, because the argument <code>gix-transport</code> intends as a URL is treated as an option argument, <code>ssh</code> treats the subsequent non-option argument <code>git-upload-pack</code> as the host instead of the command, but it is not a valid host name.</p>
|
|
<p>Although <code>ssh</code> supports aliases for hosts, even if <code>git-upload-pack</code> could be made an alias, that is made difficult by the URL-encoding transformation.</p>
|
|
</li>
|
|
</ul>
|
|
<p>However, an attacker who is able to cause a specially named <code>ssh</code> configuration file to be placed in the current working directory can smuggle in an <code>-F</code> option referencing the file, and this allows arbitrary command execution.</p>
|
|
<p>This scenario is especially plausible because programs that operate on git repositories are often run in untrusted git repositories, sometimes even to operate on another repository. Situations where this is likely, such that an attacker could predict or arrange it, may for some applications include a malicious repository with a malicious submodule configuration.</p>
|
|
<p>Other avenues of exploitation exist, but appear to be less severe. For example, the <code>-E</code> option can be smuggled to create or append to a file in the current directory (or its target, if it is a symlink). There may also be other significant ways to exploit this that have not yet been discovered, or that would arise with new options in future versions of <code>ssh</code>.</p>
|
|
<h3>PoC</h3>
|
|
<p>To reproduce the known case that facilitates arbitrary code execution, first create a file in the current directory named <code>configfile@example.com</code>, of the form</p>
|
|
<pre><code class="language-text">ProxyCommand payload
|
|
</code></pre>
|
|
<p>where <code>payload</code> is a command with an observable side effect. On Unix-like systems, this could be <code>date | tee vulnerable</code> or an <code>xdg-open</code>, <code>open</code>, or other command command to launch a graphical application. On Windows, this could be the name of a graphical application already in the search path, such as <code>calc.exe</code>.</p>
|
|
<p>(Although the syntax permitted in the value of <code>ProxyCommand</code> may vary by platform, this is not limited to running commands in the current directory. That limitation only applies to paths directly smuggled in the username, not to the contents of a separate malicious configuration file. Arbitrary other settings may be specified in <code>configfile@example.com</code> as well.)</p>
|
|
<p>Then run:</p>
|
|
<pre><code class="language-sh">gix clone 'ssh://-Fconfigfile@example.com/abc'
|
|
</code></pre>
|
|
<p>Or:</p>
|
|
<pre><code class="language-sh">gix clone -- '-Fconfigfile@example.com:abc/def'
|
|
</code></pre>
|
|
<p>(The <code>--</code> is required to ensure that <code>gix</code> is really passing the argument as a URL for use in <code>gix-transport</code>, rather than interpreting it as an option itself, which would not necessarily be a vulnerability.)</p>
|
|
<p>In either case, the payload specified in <code>configfile@example.com</code> runs, and its side effect can be observed.</p>
|
|
<p>Other cases may likewise be produced, in either of the above two forms of SSH addresses. For example, to create or append to the file <code>errors@example.com</code>, or to create or append to its target if it is a symlink:</p>
|
|
<pre><code class="language-sh">gix clone 'ssh://-Eerrors@example.com/abc'
|
|
</code></pre>
|
|
<pre><code class="language-sh">gix clone -- '-Eerrors@example.com:abc/def'
|
|
</code></pre>
|
|
<h3>Impact</h3>
|
|
<p>As in <a href="https://rustsec.org/advisories/RUSTSEC-2023-0064.html">RUSTSEC-2023-0064</a>, this would typically require user interaction to trigger an attempt to clone or otherwise connect using the malicious URL. Furthermore, known means of exploiting this vulnerability to execute arbitrary commands require further preparatory steps to establish a specially named file in the current directory. The impact is therefore expected to be lesser, though it is difficult to predict it with certainty because it is not known exactly what scenarios will arise when using the <code>gix-transport</code> library.</p>
|
|
<p>Users who use applications that make use of <code>gix-transport</code> are potentially vulnerable, especially:</p>
|
|
<ul>
|
|
<li>On repositories with submodules that are automatically added, depending how the application manages submodules.</li>
|
|
<li>When operating on other repositories from inside an untrusted repository.</li>
|
|
<li>When reviewing contributions from untrusted developers by checking out a branch from an untrusted fork and performing clones from that location.</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></feed> |