mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 16:54:32 -06:00
1285 lines
44 KiB
XML
1285 lines
44 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>2023-01-09T12:00:00+00:00</updated><author><name>RustSec</name></author><icon>https://rustsec.org/favicon.ico</icon><link href="https://rustsec.org/feed.xml" rel="self" type="application/atom+xml"/><link href="https://rustsec.org/" rel="alternate" type="text/html"/><subtitle xml:lang="en">Security advisories filed against Rust crates</subtitle><entry><title>RUSTSEC-2023-0001: Vulnerability in tokio</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0001.html</id><updated>2023-01-09T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0001.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0001: Vulnerability in tokio"/><published>2023-01-09T12:00:00+00:00</published><summary xml:lang="en">reject_remote_clients Configuration corruption</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/tokio/RUSTSEC-2023-0001.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/tokio/RUSTSEC-2023-0001.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0001
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>reject_remote_clients Configuration corruption</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-01-04">
|
|
January 4, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-01-09">
|
|
January 9, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/tokio.html">tokio</a>
|
|
(<a href="https://crates.io/crates/tokio">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/configuration-failure.html">#configuration-failure</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-22466">CVE-2023-22466</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-7rrj-xr53-82p7">GHSA-7rrj-xr53-82p7</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/tokio-rs/tokio/security/advisories/GHSA-7rrj-xr53-82p7">
|
|
https://github.com/tokio-rs/tokio/security/advisories/GHSA-7rrj-xr53-82p7
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=1.18.4, &lt;1.19.0</code></li>
|
|
|
|
<li><code>&gt;=1.20.3, &lt;1.21.0</code></li>
|
|
|
|
<li><code>&gt;=1.23.1</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;1.7.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt>Affected OSes</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>windows</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>On Windows, configuring a named pipe server with <a href="https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html#method.pipe_mode">pipe_mode</a> will force <a href="https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html">ServerOptions</a>::<a href="https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html#method.reject_remote_clients">reject_remote_clients</a> as <code>false</code>.</p>
|
|
<p>This drops any intended explicit configuration for the <a href="https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html#method.reject_remote_clients">reject_remote_clients</a> that may have been set as <code>true</code> previously.</p>
|
|
<p>The default setting of <a href="https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html#method.reject_remote_clients">reject_remote_clients</a> is normally <code>true</code> meaning the default is also overriden as <code>false</code>.</p>
|
|
<h2>Workarounds</h2>
|
|
<p>Ensure that <a href="https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html#method.pipe_mode">pipe_mode</a> is set first after initializing a <a href="https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html">ServerOptions</a>. For example:</p>
|
|
<pre><code class="language-rust">let mut opts = ServerOptions::new();
|
|
opts.pipe_mode(PipeMode::Message);
|
|
opts.reject_remote_clients(true);
|
|
</code></pre>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2022-0074: Unsoundness in prettytable-rs</title><id>https://rustsec.org/advisories/RUSTSEC-2022-0074.html</id><updated>2022-12-27T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2022-0074.html" rel="alternate" type="text/html" title="RUSTSEC-2022-0074: Unsoundness in prettytable-rs"/><published>2022-12-27T12:00:00+00:00</published><summary xml:lang="en">Force cast a &amp;Vec&lt;T&gt; to &amp;[T]</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/prettytable-rs/RUSTSEC-2022-0074.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/prettytable-rs/RUSTSEC-2022-0074.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2022-0074
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Force cast a &amp;Vec<!-- raw HTML omitted --> to &amp;[T]</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2022-12-02">
|
|
December 2, 2022
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2022-12-27">
|
|
December 27, 2022
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/prettytable-rs.html">prettytable-rs</a>
|
|
(<a href="https://crates.io/crates/prettytable-rs">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unsound
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/tab.html">#tab</a>
|
|
|
|
<a href="/keywords/table.html">#table</a>
|
|
|
|
<a href="/keywords/format.html">#format</a>
|
|
|
|
<a href="/keywords/pretty.html">#pretty</a>
|
|
|
|
<a href="/keywords/print.html">#print</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/phsym/prettytable-rs/issues/145">
|
|
https://github.com/phsym/prettytable-rs/issues/145
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.10.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>In function <code>Table::as_ref</code>, a reference of vector is force cast to slice. There are multiple problems here:</p>
|
|
<ol>
|
|
<li>To guarantee the size is correct, we have to first do <code>Vec::shrink_to_fit</code>. The function requires a mutable reference, so we have to force cast from immutable to mutable, which is UB.</li>
|
|
<li>Even if (1) is sound, <code>&amp;Vec&lt;T&gt;</code> and <code>&amp;[T]</code> still might not have the same layout. Treating them equally may lead to UB.</li>
|
|
</ol>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2022-0073: alloc-cortex-m is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2022-0073.html</id><updated>2022-12-23T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2022-0073.html" rel="alternate" type="text/html" title="RUSTSEC-2022-0073: alloc-cortex-m is unmaintained"/><published>2022-12-23T12:00:00+00:00</published><summary xml:lang="en">crate has been renamed to `embedded-alloc`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/alloc-cortex-m/RUSTSEC-2022-0073.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/alloc-cortex-m/RUSTSEC-2022-0073.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2022-0073
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>crate has been renamed to <code>embedded-alloc</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2022-12-21">
|
|
December 21, 2022
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2022-12-23">
|
|
December 23, 2022
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/alloc-cortex-m.html">alloc-cortex-m</a>
|
|
(<a href="https://crates.io/crates/alloc-cortex-m">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unmaintained
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/rust-embedded/embedded-alloc/pull/56">
|
|
https://github.com/rust-embedded/embedded-alloc/pull/56
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>This crate has been renamed from <code>alloc-cortex-m</code> to <code>embedded-alloc</code>.</p>
|
|
<p>The new repository location is:</p>
|
|
<p><a href="https://github.com/rust-embedded/embedded-alloc">https://github.com/rust-embedded/embedded-alloc</a></p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2022-0072: Vulnerability in hyper-staticfile</title><id>https://rustsec.org/advisories/RUSTSEC-2022-0072.html</id><updated>2022-12-23T12:00:00+00:00</updated><category term="format-injection"/><link href="https://rustsec.org/advisories/RUSTSEC-2022-0072.html" rel="alternate" type="text/html" title="RUSTSEC-2022-0072: Vulnerability in hyper-staticfile"/><published>2022-12-23T12:00:00+00:00</published><summary xml:lang="en">Location header incorporates user input, allowing open redirect</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/hyper-staticfile/RUSTSEC-2022-0072.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/hyper-staticfile/RUSTSEC-2022-0072.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2022-0072
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Location header incorporates user input, allowing open redirect</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2022-12-23">
|
|
December 23, 2022
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2022-12-23">
|
|
December 23, 2022
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/hyper-staticfile.html">hyper-staticfile</a>
|
|
(<a href="https://crates.io/crates/hyper-staticfile">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/format-injection.html">format-injection</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/open-redirect.html">#open-redirect</a>
|
|
|
|
<a href="/keywords/http.html">#http</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/stephank/hyper-staticfile/commit/f12cadc6666c6f555d29725f5bc45da2103f24ea">
|
|
https://github.com/stephank/hyper-staticfile/commit/f12cadc6666c6f555d29725f5bc45da2103f24ea
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>^0.9.4</code></li>
|
|
|
|
<li><code>&gt;=0.10.0-alpha.5</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>When <code>hyper-staticfile</code> performs a redirect for a directory request (e.g. a
|
|
request for <code>/dir</code> that redirects to <code>/dir/</code>), the <code>Location</code> header value was
|
|
derived from user input (the request path), simply appending a slash. The
|
|
intent was to perform an origin-relative redirect, but specific inputs
|
|
allowed performing a scheme-relative redirect instead.</p>
|
|
<p>An attacker could craft a special URL that would appear to be for the correct
|
|
domain, but immediately redirects to a malicious domain. Such a URL can benefit
|
|
phishing attacks, for example an innocent looking link in an email.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2022-0071: rusoto_credential is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2022-0071.html</id><updated>2022-12-18T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2022-0071.html" rel="alternate" type="text/html" title="RUSTSEC-2022-0071: rusoto_credential is unmaintained"/><published>2022-12-18T12:00:00+00:00</published><summary xml:lang="en">Rusoto 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/rusoto_credential/RUSTSEC-2022-0071.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/rusoto_credential/RUSTSEC-2022-0071.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2022-0071
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Rusoto is unmaintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2022-04-24">
|
|
April 24, 2022
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2022-12-18">
|
|
December 18, 2022
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/rusoto_credential.html">rusoto_credential</a>
|
|
(<a href="https://crates.io/crates/rusoto_credential">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unmaintained
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/rusoto/rusoto/issues/1651">
|
|
https://github.com/rusoto/rusoto/issues/1651
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The maintainers of Rusoto advise that all its crates are deprecated. This includes the common crates <code>rusoto_core</code>, <code>rusoto_signature</code>, <code>rusoto_credential</code>, and service crates such as <code>rusoto_s3</code> and <code>rusoto_ec2</code>.</p>
|
|
<p>Users should migrate to the <a href="https://github.com/awslabs/aws-sdk-rust">AWS SDK for Rust</a>, which is maintained by AWS.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2022-0070: Unsoundness in secp256k1</title><id>https://rustsec.org/advisories/RUSTSEC-2022-0070.html</id><updated>2022-12-07T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2022-0070.html" rel="alternate" type="text/html" title="RUSTSEC-2022-0070: Unsoundness in secp256k1"/><published>2022-12-07T12:00:00+00:00</published><summary xml:lang="en">Unsound API in `secp256k1` allows use-after-free and invalid deallocation from safe code</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/secp256k1/RUSTSEC-2022-0070.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/secp256k1/RUSTSEC-2022-0070.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2022-0070
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unsound API in <code>secp256k1</code> allows use-after-free and invalid deallocation from safe code</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2022-11-30">
|
|
November 30, 2022
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2022-12-07">
|
|
December 7, 2022
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/secp256k1.html">secp256k1</a>
|
|
(<a href="https://crates.io/crates/secp256k1">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unsound
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/use-after-free.html">#use-after-free</a>
|
|
|
|
<a href="/keywords/unsound-api.html">#unsound-api</a>
|
|
|
|
<a href="/keywords/invalid-free.html">#invalid-free</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/rust-bitcoin/rust-secp256k1/issues/543">
|
|
https://github.com/rust-bitcoin/rust-secp256k1/issues/543
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.22.2, &lt;0.23.0</code></li>
|
|
|
|
<li><code>&gt;=0.23.5, &lt;0.24.0</code></li>
|
|
|
|
<li><code>&gt;=0.24.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.14.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>secp256k1::Secp256k1::preallocated_gen_new</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.22.2</code></li>
|
|
|
|
<li><code>&gt;=0.23.0, &lt;0.23.5</code></li>
|
|
|
|
<li><code>&gt;=0.24.0, &lt;0.24.2</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Because of incorrect bounds on method <code>Secp256k1::preallocated_gen_new</code> it was possible to cause use-after-free from safe consumer code. It was also possible to &quot;free&quot; memory not allocated by the appropriate allocator.</p>
|
|
<p>The method takes a place for storing the context as a mutable reference and returns context containing that reference. Because the code internally uses <code>unsafe</code> and the bounds were incorrect it was possible to create a context that outlived the passed reference (e.g. <code>'static</code>). Because the context can alternatively carry heap-allocated pointer freed on drop it was possible to &quot;deallocate&quot; a pointer that wasn't returned from appropriate allocator. The code decides whether to free the memory based on type parameter but because of missing bound it was possible to construct the context with invalid parameter.</p>
|
|
<p>You are unaffected if you either</p>
|
|
<ul>
|
|
<li>don't call <code>Secp256k1::preallocated_gen_new</code></li>
|
|
<li>manually checked that your usage of the method is sound</li>
|
|
<li>upgraded to the patched version of <code>secp256k1</code> (recommended)</li>
|
|
</ul>
|
|
<p>The patched version uses correct bounds which means it is API-breaking. This effectively means adopting the policy of Rust lang itself allowing API-breaking changes to fix soundness bugs. Note however that valid straigthforward usage of the code will continue to compile. Only unsound code or code that propagates the bound in custom generics will fail to compile. If the code is sound fixing the bounds should be sufficient to make the code compile.</p>
|
|
<p>See the <a href="https://github.com/rust-bitcoin/rust-secp256k1/issues/543">GitHub issue</a> for example &quot;exploit&quot; code and further discussion.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2022-0068: Vulnerability in capnp</title><id>https://rustsec.org/advisories/RUSTSEC-2022-0068.html</id><updated>2022-11-30T12:00:00+00:00</updated><category term="memory-exposure"/><link href="https://rustsec.org/advisories/RUSTSEC-2022-0068.html" rel="alternate" type="text/html" title="RUSTSEC-2022-0068: Vulnerability in capnp"/><published>2022-11-30T12:00:00+00:00</published><summary xml:lang="en">out-of-bounds read possible when setting list-of-pointers</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/capnp/RUSTSEC-2022-0068.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/capnp/RUSTSEC-2022-0068.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2022-0068
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>out-of-bounds read possible when setting list-of-pointers</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2022-11-30">
|
|
November 30, 2022
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2022-11-30">
|
|
November 30, 2022
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/capnp.html">capnp</a>
|
|
(<a href="https://crates.io/crates/capnp">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-2022-46149">CVE-2022-46149</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-qqff-4vw4-f6hx">GHSA-qqff-4vw4-f6hx</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/capnproto/capnproto/tree/master/security-advisories/2022-11-30-0-pointer-list-bounds.md">
|
|
https://github.com/capnproto/capnproto/tree/master/security-advisories/2022-11-30-0-pointer-list-bounds.md
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.15.2</code></li>
|
|
|
|
<li><code>^0.14.11</code></li>
|
|
|
|
<li><code>^0.13.7</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>If a message consumer expects data
|
|
of type &quot;list of pointers&quot;,
|
|
and if the consumer performs certain specific actions on such data,
|
|
then a message producer can cause the consumer to read out-of-bounds memory.
|
|
This could trigger a process crash in the consumer,
|
|
or in some cases could allow exfiltration of private in-memory data.</p>
|
|
<p>The C++ Cap'n Proto library is also affected by this bug.
|
|
See the <a href="https://github.com/capnproto/capnproto/tree/master/security-advisories/2022-11-30-0-pointer-list-bounds.md">advisory</a>
|
|
on the main Cap'n Proto repo for a succinct description of
|
|
the exact circumstances in which the problem can arise.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2022-0069: Vulnerability in hyper-staticfile</title><id>https://rustsec.org/advisories/RUSTSEC-2022-0069.html</id><updated>2022-11-30T12:00:00+00:00</updated><category term="file-disclosure"/><link href="https://rustsec.org/advisories/RUSTSEC-2022-0069.html" rel="alternate" type="text/html" title="RUSTSEC-2022-0069: Vulnerability in hyper-staticfile"/><published>2022-11-30T12:00:00+00:00</published><summary xml:lang="en">Improper validation of Windows paths could lead to directory traversal attack</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/hyper-staticfile/RUSTSEC-2022-0069.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/hyper-staticfile/RUSTSEC-2022-0069.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2022-0069
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Improper validation of Windows paths could lead to directory traversal attack</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2022-11-30">
|
|
November 30, 2022
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2022-11-30">
|
|
November 30, 2022
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/hyper-staticfile.html">hyper-staticfile</a>
|
|
(<a href="https://crates.io/crates/hyper-staticfile">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/file-disclosure.html">file-disclosure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/directory-traversal.html">#directory-traversal</a>
|
|
|
|
<a href="/keywords/http.html">#http</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/stephank/hyper-staticfile/issues/35">
|
|
https://github.com/stephank/hyper-staticfile/issues/35
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>^0.9.2</code></li>
|
|
|
|
<li><code>&gt;=0.10.0-alpha.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt>Affected OSes</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>windows</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Path resolution in <code>hyper-staticfile</code> didn't correctly validate Windows paths
|
|
meaning paths like <code>/foo/bar/c:/windows/web/screen/img101.png</code> would be allowed
|
|
and respond with the contents of <code>c:/windows/web/screen/img101.png</code>. Thus users
|
|
could potentially read files anywhere on the filesystem.</p>
|
|
<p>This only impacts Windows. Linux and other unix likes are not impacted by this.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2021-0145: Unsoundness in atty</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0145.html</id><updated>2022-11-22T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0145.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0145: Unsoundness in atty"/><published>2022-11-22T12:00:00+00:00</published><summary xml:lang="en">Potential unaligned read</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-2021-0145.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/atty/RUSTSEC-2021-0145.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2021-0145
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Potential unaligned read</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2021-07-04">
|
|
July 4, 2021
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2022-11-22">
|
|
November 22, 2022
|
|
</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>
|
|
Unsound
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/unaligned-read.html">#unaligned-read</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/softprops/atty/issues/50">
|
|
https://github.com/softprops/atty/issues/50
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt>Affected OSes</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>windows</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>On windows, <code>atty</code> dereferences a potentially unaligned pointer.</p>
|
|
<p>In practice however, the pointer won't be unaligned unless a custom global allocator is used.</p>
|
|
<p>In particular, the <code>System</code> allocator on windows uses <code>HeapAlloc</code>, which guarantees a large enough alignment.</p>
|
|
<h1>atty is Unmaintained</h1>
|
|
<p>A Pull Request with a fix has been provided over a year ago but the maintainer seems to be unreachable.</p>
|
|
<p>Last release of <code>atty</code> was almost 3 years ago.</p>
|
|
<h2>Possible Alternative(s)</h2>
|
|
<p>The below list has not been vetted in any way and may or may not contain alternatives;</p>
|
|
<ul>
|
|
<li><a href="https://crates.io/crates/is-terminal">is-terminal</a></li>
|
|
<li>std::io::IsTerminal <em>nightly-only experimental</em></li>
|
|
</ul>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2022-0067: Unsoundness in lzf</title><id>https://rustsec.org/advisories/RUSTSEC-2022-0067.html</id><updated>2022-11-07T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2022-0067.html" rel="alternate" type="text/html" title="RUSTSEC-2022-0067: Unsoundness in lzf"/><published>2022-11-07T12:00:00+00:00</published><summary xml:lang="en"> Invalid use of `mem::uninitialized` causes `use-of-uninitialized-value`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/lzf/RUSTSEC-2022-0067.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/lzf/RUSTSEC-2022-0067.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2022-0067
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Invalid use of <code>mem::uninitialized</code> causes <code>use-of-uninitialized-value</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2022-10-22">
|
|
October 22, 2022
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2022-11-07">
|
|
November 7, 2022
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/lzf.html">lzf</a>
|
|
(<a href="https://crates.io/crates/lzf">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unsound
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/uninitialized-memory.html">#uninitialized-memory</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/badboy/lzf-rs/issues/9">
|
|
https://github.com/badboy/lzf-rs/issues/9
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.3.2</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>lzf::compress</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.3.2</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>lzf::decompress</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.3.2</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The compression and decompression function used <code>mem:uninitialized</code>
|
|
to create an array of uninitialized values, to later write values into it.
|
|
This later leads to reads from uninitialized memory.</p>
|
|
<p>The flaw was corrected in commit b633bf265e41c60dfce3be7eac4e4dd5e18d06cf
|
|
by using a heap-allocated <code>Vec</code> and removing out use of <code>mem::uninitialized</code>.
|
|
The fix was released in v0.3.2 and v1.0.0</p>
|
|
<p>Subsequently the crate was deprecated and its use is discouraged.</p>
|
|
|
|
</article></content></entry></feed> |