mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 17:04:32 -06:00
1827 lines
68 KiB
XML
1827 lines
68 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-10-01T12: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-0376: Vulnerability in tonic</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0376.html</id><updated>2024-10-02T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0376.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0376: Vulnerability in tonic"/><published>2024-10-01T12:00:00+00:00</published><summary xml:lang="en">Remotely exploitable Denial of Service in Tonic</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/tonic/RUSTSEC-2024-0376.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/tonic/RUSTSEC-2024-0376.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0376">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0376
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Remotely exploitable Denial of Service in Tonic</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-10-01">
|
|
October 1, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-10-01">
|
|
October 1, 2024
|
|
</time>
|
|
|
|
<time datetime="2024-10-02">
|
|
(last modified: October 2, 2024)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/tonic.html">tonic</a>
|
|
(<a href="https://crates.io/crates/tonic">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/dos.html">#dos</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-47609">CVE-2024-47609</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-4jwc-w2hc-78qv">GHSA-4jwc-w2hc-78qv</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/hyperium/tonic/security/advisories/GHSA-4jwc-w2hc-78qv">
|
|
https://github.com/hyperium/tonic/security/advisories/GHSA-4jwc-w2hc-78qv
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.12.3</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;=0.11.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h2>Impact</h2>
|
|
<p>When using <code>tonic::transport::Server</code> there is a remote DoS attack that can cause the server to exit cleanly on accepting a tcp/tls stream. This can be triggered via causing the accept call to error out with errors there were not covered correctly causing the accept loop to exit.</p>
|
|
<p>More information can be found <a href="https://github.com/hyperium/tonic/issues/1897">here</a></p>
|
|
<h2>Patches</h2>
|
|
<p>Upgrading to tonic <code>0.12.3</code> and above contains the fix.</p>
|
|
<h2>Workarounds</h2>
|
|
<p>A custom accept loop is a possible workaround.</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-0375: atty is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0375.html</id><updated>2024-09-26T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0375.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0375: atty is unmaintained"/><published>2024-09-26T12:00:00+00:00</published><summary xml:lang="en">`atty` is unmaintained</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/atty/RUSTSEC-2024-0375.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/atty/RUSTSEC-2024-0375.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0375">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0375
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>atty</code> is unmaintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-09-25">
|
|
September 25, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-09-26">
|
|
September 26, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/atty.html">atty</a>
|
|
(<a href="https://crates.io/crates/atty">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/softprops/atty/issues/57">
|
|
https://github.com/softprops/atty/issues/57
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The maintainer of <code>atty</code> has <a href="https://github.com/softprops/atty/commit/5bfdbe9e48c6ca6a4909e8d5b04f5e843a257e93">published</a> an official notice that the crate is no longer
|
|
under development, and that users should instead rely on the functionality in the standard library's <a href="https://doc.rust-lang.org/std/io/trait.IsTerminal.html"><code>IsTerminal</code></a> trait.</p>
|
|
<h2>Alternative(s)</h2>
|
|
<ul>
|
|
<li><a href="https://doc.rust-lang.org/stable/std/io/trait.IsTerminal.html">std::io::IsTerminal</a> - Stable since Rust 1.70.0 and the recommended replacement per the <code>atty</code> maintainer.</li>
|
|
<li><a href="https://crates.io/crates/is-terminal">is-terminal</a> - Standalone crate supporting Rust older than 1.70.0</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-0374: Vulnerability in ouch</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0374.html</id><updated>2024-09-22T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0374.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0374: Vulnerability in ouch"/><published>2024-09-22T12:00:00+00:00</published><summary xml:lang="en">Segmentation fault due to use of uninitialized memory</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/ouch/RUSTSEC-2024-0374.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/ouch/RUSTSEC-2024-0374.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0374">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0374
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Segmentation fault due to use of uninitialized memory</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-09-22">
|
|
September 22, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-09-22">
|
|
September 22, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/ouch.html">ouch</a>
|
|
(<a href="https://crates.io/crates/ouch">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<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/ouch-org/ouch/issues/707">
|
|
https://github.com/ouch-org/ouch/issues/707
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;0.3.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>ouch::archive::zip::convert_zip_date_time</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;=0.3.1</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>When trying to decompress a file using &quot;ouch&quot;, we can reach the function &quot;ouch::archive::zip::convert_zip_date_time&quot;.
|
|
In the function, there is a unsafe function, &quot;transmute&quot;. Once the &quot;transmute&quot; function is called to convert the type of &quot;month&quot; object,
|
|
the address of the object is changed to the uninitialized memory region.
|
|
After that, when other function tries to dereference &quot;month&quot;, segmentation fault occurs.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0086: Unsoundness in lexical-core</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0086.html</id><updated>2024-09-16T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0086.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0086: Unsoundness in lexical-core"/><published>2024-09-16T12:00:00+00:00</published><summary xml:lang="en">Multiple soundness issues</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/lexical-core/RUSTSEC-2023-0086.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/lexical-core/RUSTSEC-2023-0086.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2023-0086">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0086
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Multiple soundness issues</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-09-03">
|
|
September 3, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-09-16">
|
|
September 16, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/lexical-core.html">lexical-core</a>
|
|
(<a href="https://crates.io/crates/lexical-core">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unsound
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/Alexhuszagh/rust-lexical/issues/102">
|
|
https://github.com/Alexhuszagh/rust-lexical/issues/102
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/Alexhuszagh/rust-lexical/issues/101">
|
|
https://github.com/Alexhuszagh/rust-lexical/issues/101
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/Alexhuszagh/rust-lexical/issues/95">
|
|
https://github.com/Alexhuszagh/rust-lexical/issues/95
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/Alexhuszagh/rust-lexical/issues/104">
|
|
https://github.com/Alexhuszagh/rust-lexical/issues/104
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/Alexhuszagh/rust-lexical/issues/126">
|
|
https://github.com/Alexhuszagh/rust-lexical/issues/126
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="related">Related</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://rustsec.org/advisories/RUSTSEC-2023-0055">RUSTSEC-2023-0055</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=1.0.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p><code>RUSTSEC-2024-0377</code> contains multiple soundness issues:</p>
|
|
<ol>
|
|
<li><a href="https://github.com/Alexhuszagh/rust-lexical/issues/102">Bytes::read() allows creating instances of types with invalid bit patterns</a></li>
|
|
<li><a href="https://github.com/Alexhuszagh/rust-lexical/issues/101">BytesIter::read() advances iterators out of bounds</a></li>
|
|
<li><a href="https://github.com/Alexhuszagh/rust-lexical/issues/104">The <code>BytesIter</code> trait has safety invariants but is public and not marked <code>unsafe</code></a></li>
|
|
<li><a href="https://github.com/Alexhuszagh/rust-lexical/issues/95"><code>write_float()</code> calls <code>MaybeUninit::assume_init()</code> on uninitialized data, which is is not allowed by the Rust abstract machine</a></li>
|
|
<li><a href="https://github.com/Alexhuszagh/rust-lexical/issues/126"><code>radix()</code> calls <code>MaybeUninit::assume_init()</code> on uninitialized data, which is is not allowed by the Rust abstract machine</a></li>
|
|
</ol>
|
|
<p>Version 1.0 fixes these issues, removes the vast majority of <code>unsafe</code> code, and also fixes some correctness issues.</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-0373: Vulnerability in quinn-proto</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0373.html</id><updated>2024-09-08T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0373.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0373: Vulnerability in quinn-proto"/><published>2024-09-08T12:00:00+00:00</published><summary xml:lang="en">`Endpoint::retry()` calls can lead to panicking</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/quinn-proto/RUSTSEC-2024-0373.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/quinn-proto/RUSTSEC-2024-0373.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0373">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0373
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>Endpoint::retry()</code> calls can lead to panicking</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-09-02">
|
|
September 2, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-09-08">
|
|
September 8, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/quinn-proto.html">quinn-proto</a>
|
|
(<a href="https://crates.io/crates/quinn-proto">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/panic.html">#panic</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-vr26-jcq5-fjj8">GHSA-vr26-jcq5-fjj8</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-45311">CVE-2024-45311</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/quinn-rs/quinn">
|
|
https://github.com/quinn-rs/quinn
|
|
</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.11.7</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.11.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>In 0.11.0, we overhauled the server-side <code>Endpoint</code> implementation to enable
|
|
more careful handling of incoming connection attempts. However, some of the
|
|
code paths that cleaned up state after connection attempts were processed
|
|
confused the initial destination connection ID with the destination connection
|
|
ID of a substantial package. This resulted in the internal <code>Endpoint</code> state
|
|
becoming inconsistent, which could then lead to a panic.</p>
|
|
<p>https://github.com/quinn-rs/quinn/commit/e01609ccd8738bd438d86fa7185a0f85598cb58f</p>
|
|
<p>Thanks to <a href="https://github.com/finnbear">@finbear</a> for reporting and investingating,
|
|
and to <a href="https://github.com/BiagoFesta">@BiagoFesta</a> for coordinating.</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-0371: Vulnerability in gix-path</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0371.html</id><updated>2024-09-07T12:00:00+00:00</updated><category term="code-execution"/><category term="privilege-escalation"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0371.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0371: Vulnerability in gix-path"/><published>2024-09-07T12:00:00+00:00</published><summary xml:lang="en">gix-path improperly resolves configuration path reported by Git</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/gix-path/RUSTSEC-2024-0371.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/gix-path/RUSTSEC-2024-0371.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0371">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0371
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>gix-path improperly resolves configuration path reported by Git</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-09-06">
|
|
September 6, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-09-07">
|
|
September 7, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/gix-path.html">gix-path</a>
|
|
(<a href="https://crates.io/crates/gix-path">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/privilege-escalation.html">privilege-escalation</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/escape-sequences.html">#escape-sequences</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-45405">CVE-2024-45405</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-m8rp-vv92-46c7">GHSA-m8rp-vv92-46c7</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/Byron/gitoxide/security/advisories/GHSA-m8rp-vv92-46c7">
|
|
https://github.com/Byron/gitoxide/security/advisories/GHSA-m8rp-vv92-46c7
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/advisories/GHSA-m8rp-vv92-46c7">
|
|
https://github.com/advisories/GHSA-m8rp-vv92-46c7
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>6 <span class="tag medium">
|
|
MEDIUM
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack vector</dt><dd>Local</dd>
|
|
|
|
|
|
|
|
<dt>Attack complexity</dt><dd>High</d>
|
|
|
|
|
|
|
|
<dt>Privileges required</dt><dd>Low</dd>
|
|
|
|
|
|
|
|
<dt>User interaction</dt><dd>Required</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:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N">CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.10.11</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>gix_path::env::installation_config</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>*</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>gix_path::env::installation_config_prefix</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>*</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h3>Summary</h3>
|
|
<p><code>gix-path</code> runs <code>git</code> to find the path of a configuration file associated with the <code>git</code> installation, but improperly resolves paths containing unusual or non-ASCII characters, in rare cases enabling a local attacker to inject configuration leading to code execution.</p>
|
|
<h3>Details</h3>
|
|
<p>In <code>gix_path::env</code>, the underlying implementation of the <code>installation_config</code> and <code>installation_config_prefix</code> functions calls <code>git config -l --show-origin</code> to find the path of a file to treat as belonging to the <code>git</code> installation.</p>
|
|
<p>Affected versions of <code>gix-path</code> do not pass <code>-z</code>/<code>--null</code> to cause <code>git</code> to report literal paths (<a href="https://github.com/Byron/gitoxide/commit/650a1b5cf25e086197cc55a68525a411e1c28031"><code>650a1b5</code></a>). Instead, to cover the occasional case that <code>git</code> outputs a quoted path, they attempt to parse the path by stripping the quotation marks:</p>
|
|
<p><a href="https://github.com/Byron/gitoxide/blob/1cfe577d461293879e91538dbc4bbfe01722e1e8/gix-path/src/env/git/mod.rs#L138-L142">https://github.com/Byron/gitoxide/blob/1cfe577d461293879e91538dbc4bbfe01722e1e8/gix-path/src/env/git/mod.rs#L138-L142</a></p>
|
|
<p>The problem is that, when a path is quoted, it may change in substantial ways beyond the concatenation of quotation marks. If not reversed, these changes can result in another valid path that is not equivalent to the original.</p>
|
|
<p>This is not limited to paths with unusual characters such as quotation marks or newlines. Unless <code>git</code> is explicitly configured with <code>core.quotePath</code> set to <code>false</code>, it also happens when the path contains most non-ASCII characters, including accented or non-English letters. For example, <code>é</code> is transformed to <code>\303\251</code>, with literal backslashes. (This is an octal representation of the bytes in its UTF-8 encoding. This behavior is not limited to systems that encode paths with UTF-8 on disk.)</p>
|
|
<p>Rarely, the configuration file <code>gix-path</code> wrongly attempts to open can be created by an attacker who has a limited user account on the system. The attacker would often need to request an account username tailored to carrying out the attack.</p>
|
|
<h3>PoC</h3>
|
|
<h4>Quick demonstration on Unix</h4>
|
|
<p>On a Unix-like system in which Git supports no higher scope than <code>system</code> for configuration variables (i.e., not on macOS with Apple Git), in a locale that supports UTF-8, with <code>gitoxide</code> installed, run:</p>
|
|
<pre><code class="language-sh">mkdir myrepo
|
|
cd myrepo
|
|
git init
|
|
printf '[real]\n\trealvar = realval\n' &gt; 'é'
|
|
printf '[fake]\n\tfakevar = fakeval\n' &gt; '\303\251'
|
|
GIT_CONFIG_SYSTEM='é' gix config
|
|
</code></pre>
|
|
<p>If the above conditions are satisfied and the <code>gix</code> command was built against an affected version of <code>gix-path</code>, then the last command's output looks something like this:</p>
|
|
<pre><code class="language-text"># From '\303\251' (GitInstallation)
|
|
[fake]
|
|
fakevar = fakeval
|
|
|
|
# From 'é' (System)
|
|
[real]
|
|
realvar = realval
|
|
|
|
# From '/home/ubuntu/.gitconfig' (User)
|
|
[init]
|
|
defaultBranch = main
|
|
|
|
# From './.git/config' (Local)
|
|
[core]
|
|
repositoryformatversion = 0
|
|
filemode = true
|
|
bare = false
|
|
logallrefupdates = true
|
|
</code></pre>
|
|
<h4>Demonstration across user accounts on Windows</h4>
|
|
<p>On a test system running Windows on which Git for Windows is <em>not</em> installed system-wide—resembling a scenario in which users who wish to use Git are expected to install it themselves for their accounts—create two accounts, with these usernames:</p>
|
|
<ul>
|
|
<li><em>Renée</em>, the target of the attack. This user may be a limited user or an administrator. Its user profile directory is assumed to be <code>C:\Users\Renée</code>.</li>
|
|
<li><em>Ren</em>, the user who carries out the attack. This user should be a limited user, since an administrator would not need to exploit this vulnerability to inject configuration. Its user profile directory is assumed to be <code>C:\Users\Ren</code>.</li>
|
|
</ul>
|
|
<p>As <em>Ren</em>, run these commands in PowerShell:</p>
|
|
<pre><code class="language-powershell">$d = &quot;$HOME\303\251e\AppData\Local\Programs\Git\etc&quot;
|
|
mkdir $d
|
|
git config --file $d\gitconfig core.sshCommand calc.exe
|
|
icacls $HOME\303 /grant 'Renée:(RX)' /T
|
|
</code></pre>
|
|
<p>(The <code>gitconfig</code> file can instead be written manually, in which case <em>Ren</em> need not have <code>git</code>.)</p>
|
|
<p>As <em>Renée</em>:</p>
|
|
<ol>
|
|
<li>
|
|
<p>Install Git for Windows in the default location for non-systemwide installations, which for that user account is inside <code>C:\Users\Renée\AppData\Local\Programs</code>. For a non-administrative installation, Git for Windows will pick this location automatically. Allow the installer to place the directory containing <code>git</code> in the user's <code>PATH</code>, as it does by default.</p>
|
|
<p>(The scenario can be modified for any location the attacker can predict. So, for example, <em>Renée</em> can install Git for Windows with <a href="https://scoop.sh/"><code>scoop</code></a>, and <em>Ren</em> could carry out the attack with correspondingly modified path components in place of <code>AppData\Local\Programs\Git</code>.)</p>
|
|
</li>
|
|
<li>
|
|
<p>Install <code>gitoxide</code> using any common technique, such as by <a href="https://www.rust-lang.org/tools/install">installing Rust</a> and then running <code>cargo install gitoxide</code>.</p>
|
|
</li>
|
|
<li>
|
|
<p>Open a PowerShell window and run a <code>gix</code> command that attempts to run the SSH client for transport. For example:</p>
|
|
<pre><code class="language-pwsh">gix clone ssh://localhost/myrepo.git
|
|
</code></pre>
|
|
<p>At least one, and usually two, instances of the Windows calculator will pop up. This happens because <code>calc.exe</code> was configured in the fake configuration file the user <em>Ren</em> was able to cause to be used, by placing it at the location <code>gix-path</code> wrongly resolved the path of <em>Renée</em>'s own configuration file to.</p>
|
|
</li>
|
|
</ol>
|
|
<p>The <code>gitconfig</code> file written by the attacker can be adjusted with an arbitrary choice of payload, or to set other configuration variables.</p>
|
|
<h3>Impact</h3>
|
|
<p>On a single-user system, it is not possible to exploit this, unless <code>GIT_CONFIG_SYSTEM</code> and <code>GIT_CONFIG_GLOBAL</code> have been set to unusual values or Git has been installed in an unusual way. Such a scenario is not expected.</p>
|
|
<p>Exploitation is unlikely even on a multi-user system, though it is plausible in some uncommon configurations or use cases. It is especially unlikely with Apple Git on macOS, due to its very high scoped configuration in <code>/Library</code> or <code>/Applications</code> that would be detected instead, as in <a href="https://github.com/advisories/GHSA-v26r-4c9c-h3j6">CVE-2024-45305</a>.</p>
|
|
<p>The likelihood of exploitation may be higher on Windows, where attacks such as those shown in the Windows proof-of-concept above can be performed due to the status of <code>\</code> as a directory separator, and where there is no restriction on usernames containing accented or non-English letters (though the latter is also permitted on some other systems). Even then, complex user interaction is required. In most cases, a system administrator would have to approve an innocuous-seeming username, and then the targeted user (who could be the same or a different user) would have to use an application that uses <code>gix-path</code>.</p>
|
|
<p>In general, exploitation is more likely to succeed if at least one of the following applies:</p>
|
|
<ul>
|
|
<li>Users are expected to install <code>git</code> themselves, and are likely to do so in predictable locations.</li>
|
|
<li>Locations where <code>git</code> is installed, whether due to usernames in their paths or otherwise, contain characters that <code>git</code> quotes by default in paths, such as non-English letters and accented letters.</li>
|
|
<li>A custom <code>system</code>-scope configuration file is specified with the <code>GIT_CONFIG_SYSTEM</code> environment variable, and its path is in an unusual location or has strangely named components.</li>
|
|
<li>A <code>system</code>-scope configuration file is absent, empty, or suppressed by means other than <code>GIT_CONFIG_NOSYSTEM</code>. Currently, <code>gix-path</code> can treat a <code>global</code>-scope configuration file as belonging to the installation if no higher scope configuration file is available. This increases the likelihood of exploitation even on a system where <code>git</code> is installed system-wide in an ordinary way.</li>
|
|
</ul>
|
|
<p>However, exploitation is expected to be very difficult even under any combination of those factors.</p>
|
|
<p>Although the effect here is similar to <a href="https://github.com/git-for-windows/git/security/advisories/GHSA-vw2c-22j4-2fh2">CVE-2022-24765</a> once exploited, a greater degree of user interaction would usually be required, and the attack complexity here is much higher because the necessary conditions are uncommon and challenging to predict.</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-0372: Vulnerability in ic-cdk</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0372.html</id><updated>2024-09-07T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0372.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0372: Vulnerability in ic-cdk"/><published>2024-09-07T12:00:00+00:00</published><summary xml:lang="en">Memory leak when calling a canister method via `ic_cdk::call`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/ic-cdk/RUSTSEC-2024-0372.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/ic-cdk/RUSTSEC-2024-0372.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0372">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0372
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Memory leak when calling a canister method via <code>ic_cdk::call</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-09-05">
|
|
September 5, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-09-07">
|
|
September 7, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/ic-cdk.html">ic-cdk</a>
|
|
(<a href="https://crates.io/crates/ic-cdk">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/canister.html">#canister</a>
|
|
|
|
<a href="/keywords/icp.html">#icp</a>
|
|
|
|
<a href="/keywords/cdk.html">#cdk</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-7884">CVE-2024-7884</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-rwq6-crjg-9cpw">GHSA-rwq6-crjg-9cpw</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/dfinity/cdk-rs/pull/509">
|
|
https://github.com/dfinity/cdk-rs/pull/509
|
|
</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>^0.8.2</code></li>
|
|
|
|
<li><code>^0.9.3</code></li>
|
|
|
|
<li><code>^0.10.1</code></li>
|
|
|
|
<li><code>^0.11.6</code></li>
|
|
|
|
<li><code>^0.12.2</code></li>
|
|
|
|
<li><code>^0.13.5</code></li>
|
|
|
|
<li><code>^0.14.1</code></li>
|
|
|
|
<li><code>^0.15.1</code></li>
|
|
|
|
<li><code>&gt;=0.16.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.8.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>When a canister method is called via <code>ic_cdk::call*</code>, a new Future <code>CallFuture</code> is created and can be awaited by the caller to get the execution result. Internally, the state of the Future is tracked and stored in a struct called <code>CallFutureState</code>. A bug in the polling implementation of the <code>CallFuture</code> allows multiple references to be held for this internal state and not all references were dropped before the <code>Future</code> is resolved. Since we have unaccounted references held, a copy of the internal state ended up being persisted in the canister's heap and thus causing a memory leak.</p>
|
|
<h3>Impact</h3>
|
|
<p>Canisters built in Rust with <code>ic_cdk</code> and <code>ic_cdk_timers</code> are affected. If these canisters call a canister method, use timers or heartbeat, they will likely leak a small amount of memory on every such operation. <strong>In the worst case, this could lead to heap memory exhaustion triggered by an attacker.</strong></p>
|
|
<p>Motoko based canisters are not affected by the bug.</p>
|
|
<h3>Patches</h3>
|
|
<p>The patch has been backported to all minor versions between <code>&gt;= 0.8.0, &lt;= 0.15.0</code>. The patched versions available are <code>0.8.2, 0.9.3, 0.10.1, 0.11.6, 0.12.2, 0.13.5, 0.14.1, 0.15.1</code> and their previous versions have been yanked.</p>
|
|
<h3>Workarounds</h3>
|
|
<p>There are no known workarounds at the moment. Developers are recommended to upgrade their canister as soon as possible to the latest available patched version of <code>ic_cdk</code> to avoid running out of Wasm heap memory.</p>
|
|
<blockquote>
|
|
<p>Upgrading the canisters (without updating <code>ic_cdk</code>) also frees the leaked memory but it's only a temporary solution.</p>
|
|
</blockquote>
|
|
<h3>Referencesas</h3>
|
|
<ul>
|
|
<li><a href="https://github.com/dfinity/cdk-rs/pull/509">dfinity/cdk-rs/pull/509</a></li>
|
|
<li><a href="https://docs.rs/ic-cdk/latest/ic_cdk/">ic_cdk docs</a></li>
|
|
<li><a href="https://internetcomputer.org/docs/current/references/ic-interface-spec">Internet Computer Specification</a></li>
|
|
</ul>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2024-0370: proc-macro-error is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0370.html</id><updated>2024-09-09T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0370.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0370: proc-macro-error is unmaintained"/><published>2024-09-05T12:00:00+00:00</published><summary xml:lang="en">proc-macro-error is unmaintained</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/proc-macro-error/RUSTSEC-2024-0370.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/proc-macro-error/RUSTSEC-2024-0370.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0370">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0370
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>proc-macro-error is unmaintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-09-01">
|
|
September 1, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-09-05">
|
|
September 5, 2024
|
|
</time>
|
|
|
|
<time datetime="2024-09-09">
|
|
(last modified: September 9, 2024)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/proc-macro-error.html">proc-macro-error</a>
|
|
(<a href="https://crates.io/crates/proc-macro-error">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://gitlab.com/CreepySkeleton/proc-macro-error/-/issues/20">
|
|
https://gitlab.com/CreepySkeleton/proc-macro-error/-/issues/20
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>proc-macro-error's maintainer seems to be unreachable, with no commits for 2 years, no releases pushed for 4 years, and no activity on the GitLab repo or response to email.</p>
|
|
<p>proc-macro-error also depends on <code>syn 1.x</code>, which may be bringing duplicate dependencies into dependant build trees.</p>
|
|
<h2>Possible Alternative(s)</h2>
|
|
<ul>
|
|
<li><a href="https://crates.io/crates/manyhow">manyhow</a></li>
|
|
<li><a href="https://crates.io/crates/proc-macro-error2">proc-macro-error2</a></li>
|
|
<li><a href="https://github.com/SergioBenitez/proc-macro2-diagnostics">proc-macro2-diagnostics</a></li>
|
|
</ul>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2024-0369: Vulnerability in phonenumber</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0369.html</id><updated>2024-09-05T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0369.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0369: Vulnerability in phonenumber"/><published>2024-09-05T12:00:00+00:00</published><summary xml:lang="en">phonenumber: panic on parsing crafted phonenumber inputs</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/phonenumber/RUSTSEC-2024-0369.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/phonenumber/RUSTSEC-2024-0369.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0369">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0369
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>phonenumber: panic on parsing crafted phonenumber inputs</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-07-07">
|
|
July 7, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-09-05">
|
|
September 5, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/phonenumber.html">phonenumber</a>
|
|
(<a href="https://crates.io/crates/phonenumber">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/panic.html">#panic</a>
|
|
|
|
<a href="/keywords/untrusted-input.html">#untrusted-input</a>
|
|
|
|
<a href="/keywords/parsing.html">#parsing</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-39697">CVE-2024-39697</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-mjw4-jj88-v687">GHSA-mjw4-jj88-v687</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/whisperfish/rust-phonenumber/security/advisories/GHSA-mjw4-jj88-v687">
|
|
https://github.com/whisperfish/rust-phonenumber/security/advisories/GHSA-mjw4-jj88-v687
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-39697">
|
|
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-39697
|
|
</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>Changed</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:C/C:N/I:N/A:H">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.3.6</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.3.3</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>phonenumber::parse</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>*</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h3>Impact</h3>
|
|
<p>The phonenumber parsing code may panic due to a reachable <code>assert!</code> guard on the phonenumber string.</p>
|
|
<p>In a typical deployment of rust-phonenumber, this may get triggered by feeding a maliciously crafted phonenumber, e.g. over the network, specifically strings of the form <code>+dwPAA;phone-context=AA</code>, where the &quot;number&quot; part potentially parses as a number larger than 2^56.</p>
|
|
<p>Since f69abee1/0.3.4/#52.</p>
|
|
<p>0.2.x series is not affected.</p>
|
|
<h3>Patches</h3>
|
|
<p>Patches have been published as version <code>0.3.6+8.13.36</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-0368: Vulnerability in olm-sys</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0368.html</id><updated>2024-09-02T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0368.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0368: Vulnerability in olm-sys"/><published>2024-09-02T12:00:00+00:00</published><summary xml:lang="en">olm-sys: wrapped library unmaintained, potentially vulnerable</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/olm-sys/RUSTSEC-2024-0368.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/olm-sys/RUSTSEC-2024-0368.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0368">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0368
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>olm-sys: wrapped library unmaintained, potentially vulnerable</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-09-02">
|
|
September 2, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-09-02">
|
|
September 2, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/olm-sys.html">olm-sys</a>
|
|
(<a href="https://crates.io/crates/olm-sys">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://gitlab.gnome.org/BrainBlasted/olm-sys/-/issues/12">
|
|
https://gitlab.gnome.org/BrainBlasted/olm-sys/-/issues/12
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://matrix.org/blog/2024/08/libolm-deprecation/">
|
|
https://matrix.org/blog/2024/08/libolm-deprecation/
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="related">Related</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-45191">CVE-2024-45191</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-45192">CVE-2024-45192</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-45193">CVE-2024-45193</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>After several cryptographic vulnerabilities in <code>libolm</code> were disclosed publicly, the Matrix Foundation has <a href="https://matrix.org/blog/2024/08/libolm-deprecation/">officially deprecated the library</a>. <code>olm-sys</code> is a thin wrapper around <code>libolm</code> and is now deprecated and potentially vulnerable in kind.</p>
|
|
<p>Users of <code>olm-sys</code> and its higher-level abstraction, <code>olm-rs</code>, are highly encouraged to switch to <a href="https://crates.io/crates/vodozemac"><code>vodozemac</code></a> as soon as possible. It is the successor effort to <code>libolm</code> and is written in Rust.</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> |