mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 17:37:51 -06:00
1186 lines
38 KiB
XML
1186 lines
38 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-06-03T12: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-0041: Vulnerability in trust-dns-server</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0041.html</id><updated>2023-06-03T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0041.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0041: Vulnerability in trust-dns-server"/><published>2023-06-03T12:00:00+00:00</published><summary xml:lang="en">Remote Attackers can cause Denial-of-Service (packet loops) with crafted DNS packets</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/trust-dns-server/RUSTSEC-2023-0041.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/trust-dns-server/RUSTSEC-2023-0041.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0041
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Remote Attackers can cause Denial-of-Service (packet loops) with crafted DNS packets</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-06-01">
|
|
June 1, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-06-03">
|
|
June 3, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/trust-dns-server.html">trust-dns-server</a>
|
|
(<a href="https://crates.io/crates/trust-dns-server">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/packet-loop.html">#packet-loop</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/bluejekyll/trust-dns/pull/1952">
|
|
https://github.com/bluejekyll/trust-dns/pull/1952
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>^0.22.1</code></li>
|
|
|
|
<li><code>&gt;=0.23.0-alpha.3</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>trust-dns and trust-dns-server are vulnerable to remotely triggered denial-of-service attacks, consuming both network and CPU resources.
|
|
DNS messages with the QR=1 bit set are responded to with a <code>FormErr</code> response.
|
|
This allows creating a traffic loop, in which these <code>FormErr</code> responses are sent nonstop between vulnerable servers.</p>
|
|
<p>There are two scenarios how this can be exploited: 1) Create a loop between two instances of trust-dns, consuming network resources, or 2) consuming the CPU of a single instance.</p>
|
|
<p>With two instances <em>A</em> and <em>B</em> an attacker sends a DNS query with a spoofed source IP address to <em>A</em>.
|
|
<em>A</em> replies with a <code>FormErr</code> to <em>B</em>.
|
|
Now both servers with ping-pong the message back and forth until by chance the packet is dropped in the network.
|
|
Multiple spoofed packets can be sent by the attacker, increasing resource consumption.</p>
|
|
<p>A single server can get locked up replying to itself.
|
|
Same setup as above, but now <em>A</em> sends the reply to itself.
|
|
The packet is sent out as fast as the CPU and network stack manage.
|
|
This locks up a CPU core.
|
|
Multiple packets from the attacker consume multiple CPU cores.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0040: users is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0040.html</id><updated>2023-06-01T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0040.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0040: users is unmaintained"/><published>2023-06-01T12:00:00+00:00</published><summary xml:lang="en">`users` crate 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/users/RUSTSEC-2023-0040.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/users/RUSTSEC-2023-0040.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0040
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>users</code> crate is unmaintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-06-01">
|
|
June 1, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-06-01">
|
|
June 1, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/users.html">users</a>
|
|
(<a href="https://crates.io/crates/users">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/ogham/rust-users/issues/54">
|
|
https://github.com/ogham/rust-users/issues/54
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <code>users</code> crate hasn't seen any action since 2020-10-08. The developer seems <a href="https://github.com/ogham/rust-users/issues/54">MIA</a> since.</p>
|
|
<h2>Recommended alternatives</h2>
|
|
<ul>
|
|
<li><a href="https://crates.io/crates/sysinfo"><code>sysinfo</code></a></li>
|
|
</ul>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0039: Vulnerability in buffered-reader</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0039.html</id><updated>2023-05-31T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0039.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0039: Vulnerability in buffered-reader"/><published>2023-05-31T12:00:00+00:00</published><summary xml:lang="en">Out-of-bounds array access leads to panic</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/buffered-reader/RUSTSEC-2023-0039.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/buffered-reader/RUSTSEC-2023-0039.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0039
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Out-of-bounds array access leads to panic</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-05-16">
|
|
May 16, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-05-31">
|
|
May 31, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/buffered-reader.html">buffered-reader</a>
|
|
(<a href="https://crates.io/crates/buffered-reader">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="details">Details</dt>
|
|
<dd>
|
|
<a href="https://lists.sequoia-pgp.org/hyperkitty/list/announce@lists.sequoia-pgp.org/thread/SN2E3QRT4DMQ5JNEK6VIN6DJ5SH766DI/">
|
|
https://lists.sequoia-pgp.org/hyperkitty/list/announce@lists.sequoia-pgp.org/thread/SN2E3QRT4DMQ5JNEK6VIN6DJ5SH766DI/
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=1.0.2, &lt;1.1.0</code></li>
|
|
|
|
<li><code>&gt;=1.1.5, &lt;1.2.0</code></li>
|
|
|
|
<li><code>&gt;=1.2.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Affected versions of the crate have a bug where attacker-controlled
|
|
input can result in the use of an out-of-bound array index. Rust
|
|
detects the use of the out-of-bound index and causes the application
|
|
to panic. An attacker may be able to use this to cause a
|
|
denial-of-service. However, it is not possible for an attacker to
|
|
read from or write to the application's address space.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0038: Vulnerability in sequoia-openpgp</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0038.html</id><updated>2023-05-31T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0038.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0038: Vulnerability in sequoia-openpgp"/><published>2023-05-31T12:00:00+00:00</published><summary xml:lang="en">Out-of-bounds array access leads to panic</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/sequoia-openpgp/RUSTSEC-2023-0038.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/sequoia-openpgp/RUSTSEC-2023-0038.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0038
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Out-of-bounds array access leads to panic</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-05-16">
|
|
May 16, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-05-31">
|
|
May 31, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/sequoia-openpgp.html">sequoia-openpgp</a>
|
|
(<a href="https://crates.io/crates/sequoia-openpgp">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="details">Details</dt>
|
|
<dd>
|
|
<a href="https://lists.sequoia-pgp.org/hyperkitty/list/announce@lists.sequoia-pgp.org/thread/SN2E3QRT4DMQ5JNEK6VIN6DJ5SH766DI/">
|
|
https://lists.sequoia-pgp.org/hyperkitty/list/announce@lists.sequoia-pgp.org/thread/SN2E3QRT4DMQ5JNEK6VIN6DJ5SH766DI/
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=1.1.1, &lt;1.2.0</code></li>
|
|
|
|
<li><code>&gt;=1.8.1, &lt;1.9.0</code></li>
|
|
|
|
<li><code>&gt;=1.16.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Affected versions of the crate have several bugs where
|
|
attacker-controlled input can result in the use of an out-of-bound
|
|
array index. Rust detects the use of the out-of-bound index and
|
|
causes the application to panic. An attacker may be able to use this
|
|
to cause a denial-of-service. However, it is not possible for an
|
|
attacker to read from or write to the application's address space.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0037: xsalsa20poly1305 is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0037.html</id><updated>2023-05-17T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0037.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0037: xsalsa20poly1305 is unmaintained"/><published>2023-05-17T12:00:00+00:00</published><summary xml:lang="en">crate has been renamed to `crypto_secretbox`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/xsalsa20poly1305/RUSTSEC-2023-0037.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/xsalsa20poly1305/RUSTSEC-2023-0037.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0037
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>crate has been renamed to <code>crypto_secretbox</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-05-16">
|
|
May 16, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-05-17">
|
|
May 17, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/xsalsa20poly1305.html">xsalsa20poly1305</a>
|
|
(<a href="https://crates.io/crates/xsalsa20poly1305">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/RustCrypto/AEADs/pull/525">
|
|
https://github.com/RustCrypto/AEADs/pull/525
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>This crate has been forked/renamed from <code>xsalsa20poly1305</code> to <code>crypto_secretbox</code>.</p>
|
|
<p>The new repository location is at:</p>
|
|
<p><a href="https://github.com/RustCrypto/nacl-compat/tree/master/crypto_secretbox">https://github.com/RustCrypto/nacl-compat/tree/master/crypto_secretbox</a></p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0036: tree_magic is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0036.html</id><updated>2023-04-25T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0036.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0036: tree_magic is unmaintained"/><published>2023-04-25T12:00:00+00:00</published><summary xml:lang="en">tree_magic 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/tree_magic/RUSTSEC-2023-0036.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/tree_magic/RUSTSEC-2023-0036.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0036
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>tree_magic is Unmaintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-04-11">
|
|
April 11, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-04-25">
|
|
April 25, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/tree_magic.html">tree_magic</a>
|
|
(<a href="https://crates.io/crates/tree_magic">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/aahancoc/tree_magic/issues/16">
|
|
https://github.com/aahancoc/tree_magic/issues/16
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The <code>tree_magic</code> crate is unmaintained. The author has archived the github
|
|
repository.</p>
|
|
<p>Alternatives:</p>
|
|
<ul>
|
|
<li><a href="https://crates.io/crates/tree_magic_mini">tree_magic_mini</a></li>
|
|
</ul>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0035: Unsoundness in enumflags2</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0035.html</id><updated>2023-04-23T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0035.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0035: Unsoundness in enumflags2"/><published>2023-04-23T12:00:00+00:00</published><summary xml:lang="en">Adverserial use of `make_bitflags!` macro can cause undefined behavior</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/enumflags2/RUSTSEC-2023-0035.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/enumflags2/RUSTSEC-2023-0035.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0035
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Adverserial use of <code>make_bitflags!</code> macro can cause undefined behavior</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-04-17">
|
|
April 17, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-04-23">
|
|
April 23, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/enumflags2.html">enumflags2</a>
|
|
(<a href="https://crates.io/crates/enumflags2">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
<span class="tag info">INFO</span>
|
|
Unsound
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/meithecatte/enumflags2/releases/tag/v0.7.7">
|
|
https://github.com/meithecatte/enumflags2/releases/tag/v0.7.7
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.7.7</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.7.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The macro relied on an expression of the form <code>Enum::Variant</code> always being a
|
|
variant of the enum. However, it may also be an associated integer constant, in
|
|
which case there's no guarantee that the value of said constant consists only of
|
|
bits valid for this bitflag type.</p>
|
|
<p>Thus, code like this could create an invalid <code>BitFlags&lt;Test&gt;</code>, which would cause
|
|
iterating over it to trigger undefined behavior. As the debug formatter
|
|
internally iterates over the value, it is also affected.</p>
|
|
<pre><code class="language-rust">use enumflags2::{bitflags, make_bitflags};
|
|
|
|
#[bitflags]
|
|
#[repr(u8)]
|
|
#[derive(Copy, Clone, Debug)]
|
|
enum Test {
|
|
A = 1,
|
|
B = 2,
|
|
}
|
|
|
|
impl Test {
|
|
const C: u8 = 69;
|
|
}
|
|
|
|
fn main() {
|
|
let x = make_bitflags!(Test::{C});
|
|
// printing or iterating over x is UB
|
|
}
|
|
</code></pre>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0034: Vulnerability in h2</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0034.html</id><updated>2023-04-20T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0034.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0034: Vulnerability in h2"/><published>2023-04-20T12:00:00+00:00</published><summary xml:lang="en">Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/h2/RUSTSEC-2023-0034.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/h2/RUSTSEC-2023-0034.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0034
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-04-14">
|
|
April 14, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-04-20">
|
|
April 20, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/h2.html">h2</a>
|
|
(<a href="https://crates.io/crates/h2">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/denial-of-service.html">denial-of-service</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/http.html">#http</a>
|
|
|
|
<a href="/keywords/http2.html">#http2</a>
|
|
|
|
<a href="/keywords/h2.html">#h2</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-26964">CVE-2023-26964</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-f8vr-r385-rh5r">GHSA-f8vr-r385-rh5r</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/hyperium/hyper/issues/2877">
|
|
https://github.com/hyperium/hyper/issues/2877
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.3.17</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>If an attacker is able to flood the network with pairs of <code>HEADERS</code>/<code>RST_STREAM</code> frames, such that the <code>h2</code> application is not able to accept them faster than the bytes are received, the pending accept queue can grow in memory usage. Being able to do this consistently can result in excessive memory use, and eventually trigger Out Of Memory.</p>
|
|
<p>This flaw is corrected in <a href="https://github.com/hyperium/h2/pull/668">hyperium/h2#668</a>, which restricts remote reset stream count by default.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0033: Unsoundness in borsh</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0033.html</id><updated>2023-04-13T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0033.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0033: Unsoundness in borsh"/><published>2023-04-13T12:00:00+00:00</published><summary xml:lang="en">Parsing borsh messages with ZST which are not-copy/clone is unsound</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/borsh/RUSTSEC-2023-0033.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/borsh/RUSTSEC-2023-0033.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0033
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Parsing borsh messages with ZST which are not-copy/clone is unsound</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-04-12">
|
|
April 12, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-04-13">
|
|
April 13, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/borsh.html">borsh</a>
|
|
(<a href="https://crates.io/crates/borsh">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="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/near/borsh-rs/issues/19">
|
|
https://github.com/near/borsh-rs/issues/19
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Affected versions of borsh cause undefined behavior when zero-sized-types (ZST)
|
|
are parsed and the Copy/Clone traits are not implemented/derived.
|
|
For instance if 1000 instances of a ZST are deserialized, and the ZST is not copy
|
|
(this can be achieved through a singleton), then accessing/writing to deserialized
|
|
data will cause a segmentation fault.</p>
|
|
<p>There is currently no way for borsh to read data without also providing a Rust type.
|
|
Therefore, if not ZST are used for serialization, then you are not affected by this issue.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0032: Unsoundness in ntru</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0032.html</id><updated>2023-04-06T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0032.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0032: Unsoundness in ntru"/><published>2023-04-06T12:00:00+00:00</published><summary xml:lang="en">Unsound FFI: Wrong API usage causes write past allocated area</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/ntru/RUSTSEC-2023-0032.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/ntru/RUSTSEC-2023-0032.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0032
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Unsound FFI: Wrong API usage causes write past allocated area</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-03-22">
|
|
March 22, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-04-06">
|
|
April 6, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/ntru.html">ntru</a>
|
|
(<a href="https://crates.io/crates/ntru">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/ffi.html">#ffi</a>
|
|
|
|
<a href="/keywords/buffer-overflow.html">#buffer-overflow</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/FrinkGlobal/ntru-rs/issues/8">
|
|
https://github.com/FrinkGlobal/ntru-rs/issues/8
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>ntru::types::PrivateKey::export</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.4.3</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>ntru::types::PublicKey::export</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.4.3</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The following usage causes undefined behavior.</p>
|
|
<pre><code class="language-rust">let kp: ntru::types::KeyPair = …;
|
|
kp.get_public().export(Default::default())
|
|
</code></pre>
|
|
<p>When compiled with debug assertions, the code above will trigger a <code>attempt to subtract with overflow</code> panic before UB occurs.
|
|
Other mistakes (e.g. using <code>EncParams</code> from a different key) may always trigger UB.</p>
|
|
<p>Likely, older versions of this crate are also affected, but have not been tested.</p>
|
|
|
|
</article></content></entry></feed> |