mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 16:54:32 -06:00
1276 lines
41 KiB
XML
1276 lines
41 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-04-13T12: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-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><entry><title>RUSTSEC-2023-0031: Unsoundness in spin</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0031.html</id><updated>2023-04-03T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0031.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0031: Unsoundness in spin"/><published>2023-04-03T12:00:00+00:00</published><summary xml:lang="en">Initialisation failure in `Once::try_call_once` can lead to undefined behaviour for other initialisers</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/spin/RUSTSEC-2023-0031.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/spin/RUSTSEC-2023-0031.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0031
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Initialisation failure in <code>Once::try_call_once</code> can lead to undefined behaviour for other initialisers</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-03-31">
|
|
March 31, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-04-03">
|
|
April 3, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/spin.html">spin</a>
|
|
(<a href="https://crates.io/crates/spin">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/mvdnes/spin-rs/issues/148">
|
|
https://github.com/mvdnes/spin-rs/issues/148
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.9.8</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.9.3</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p><code>Once::try_call_once</code> is unsound if invoked more than once concurrently and any call fails to initialise successfully.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0030: Vulnerability in versionize</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0030.html</id><updated>2023-03-25T12:00:00+00:00</updated><category term="memory-exposure"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0030.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0030: Vulnerability in versionize"/><published>2023-03-25T12:00:00+00:00</published><summary xml:lang="en">`Versionize::deserialize` implementation for `FamStructWrapper&lt;T&gt;` is lacking bound checks, potentially leading to out of bounds memory accesses</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/versionize/RUSTSEC-2023-0030.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/versionize/RUSTSEC-2023-0030.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0030
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>Versionize::deserialize</code> implementation for <code>FamStructWrapper&lt;T&gt;</code> is lacking bound checks, potentially leading to out of bounds memory accesses</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-03-24">
|
|
March 24, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-03-25">
|
|
March 25, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/versionize.html">versionize</a>
|
|
(<a href="https://crates.io/crates/versionize">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://github.com/advisories/GHSA-8vxc-r5wp-vgvc">GHSA-8vxc-r5wp-vgvc</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/firecracker-microvm/versionize/pull/53">
|
|
https://github.com/firecracker-microvm/versionize/pull/53
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>5.7 <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>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>Low</dd>
|
|
|
|
|
|
|
|
<dt>Availability</dt><dd>Low</dd>
|
|
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt id="cvss">CVSS Vector</dt>
|
|
<dd><a href="https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L">CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.1.10</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt>Affected OSes</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>linux</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>An issue was discovered in the <code>Versionize::deserialize</code> implementation provided by the <code>versionize</code> crate for <code>vmm_sys_util::fam::FamStructWrapper</code>, which can lead to out of bounds memory accesses. The impact started with version 0.1.1. The issue was corrected in version 0.1.10 by inserting a check that verifies, for any deserialized header, the lengths of compared flexible arrays are equal and aborting deserialization otherwise.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0029: Vulnerability in nats</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0029.html</id><updated>2023-03-25T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0029.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0029: Vulnerability in nats"/><published>2023-03-25T12:00:00+00:00</published><summary xml:lang="en">TLS certificate common name validation bypass</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/nats/RUSTSEC-2023-0029.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nats/RUSTSEC-2023-0029.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0029
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>TLS certificate common name validation bypass</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-03-24">
|
|
March 24, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-03-25">
|
|
March 25, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/nats.html">nats</a>
|
|
(<a href="https://crates.io/crates/nats">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/crypto-failure.html">crypto-failure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/tls.html">#tls</a>
|
|
|
|
<a href="/keywords/mitm.html">#mitm</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.9.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The NATS official Rust clients are vulnerable to MitM when using TLS.</p>
|
|
<p>A fix for the <code>nats</code> crate hasn't been released yet. Since the <code>nats</code> crate
|
|
is going to be deprecated anyway, consider switching to <code>async-nats</code> <code>&gt;= 0.29</code>
|
|
which already fixed this vulnerability.</p>
|
|
<p>The common name of the server's TLS certificate is validated against
|
|
the <code>host</code>name provided by the server's plaintext <code>INFO</code> message
|
|
during the initial connection setup phase. A MitM proxy can tamper with
|
|
the <code>host</code> field's value by substituting it with the common name of a
|
|
valid certificate it controls, fooling the client into accepting it.</p>
|
|
<h2>Reproduction steps</h2>
|
|
<ol>
|
|
<li>The NATS Rust client tries to establish a new connection</li>
|
|
<li>The connection is intercepted by a MitM proxy</li>
|
|
<li>The proxy makes a separate connection to the NATS server</li>
|
|
<li>The NATS server replies with an <code>INFO</code> message</li>
|
|
<li>The proxy reads the <code>INFO</code>, alters the <code>host</code> JSON field and passes
|
|
the tampered <code>INFO</code> back to the client</li>
|
|
<li>The proxy upgrades the client connection to TLS, presenting a certificate issued
|
|
by a certificate authority present in the client's keychain.
|
|
In the previous step the <code>host</code> was set to the common name of said certificate</li>
|
|
<li><code>rustls</code> accepts the certificate, having verified that the common name matches the
|
|
attacker-controlled value it was given</li>
|
|
<li>The client has been fooled by the MitM proxy into accepting the attacker-controlled certificate</li>
|
|
</ol>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0028: buf_redux is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0028.html</id><updated>2023-03-24T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0028.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0028: buf_redux is unmaintained"/><published>2023-03-24T12:00:00+00:00</published><summary xml:lang="en">buf_redux 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/buf_redux/RUSTSEC-2023-0028.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/buf_redux/RUSTSEC-2023-0028.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0028
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>buf_redux is Unmaintained</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-01-24">
|
|
January 24, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-03-24">
|
|
March 24, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/buf_redux.html">buf_redux</a>
|
|
(<a href="https://crates.io/crates/buf_redux">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/abonander/buf_redux/issues">
|
|
https://github.com/abonander/buf_redux/issues
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Last release was over three years ago.</p>
|
|
<p>The maintainer(s) have been unreachable to respond to any issues that may or may not include security issues.</p>
|
|
<p>The repository is now archived and there is no security policy in place to contact the maintainer(s) otherwise.</p>
|
|
<p>The safety-undocumented unsafe in the crate may or may not be safe to use.</p>
|
|
<p>The crate also has a current future incompatibility warning <a href="https://github.com/abonander/buf_redux/issues/23">buf_redux/23</a>.</p>
|
|
<h2>Possible Alternatives</h2>
|
|
<p>The below may or may not provide alternative(s)</p>
|
|
<ul>
|
|
<li>Rust alloc / std vec::Vec, collections::VecDeque</li>
|
|
<li><a href="https://crates.io/crates/buffer-redux">buffer-redux</a> - fork</li>
|
|
<li><a href="https://crates.io/crates/bytes">bytes</a></li>
|
|
<li><a href="https://crates.io/keywords/buffer">crates.io search for 'buffer'</a></li>
|
|
</ul>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0025: git-hash is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0025.html</id><updated>2023-03-24T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0025.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0025: git-hash is unmaintained"/><published>2023-03-24T12:00:00+00:00</published><summary xml:lang="en">Gitoxide has renamed its crates.</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/git-hash/RUSTSEC-2023-0025.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/git-hash/RUSTSEC-2023-0025.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0025
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Gitoxide has renamed its crates.</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-03-14">
|
|
March 14, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-03-24">
|
|
March 24, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/git-hash.html">git-hash</a>
|
|
(<a href="https://crates.io/crates/git-hash">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/Byron/gitoxide/pull/741">
|
|
https://github.com/Byron/gitoxide/pull/741
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
no patched versions
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>All crates in the gitoxide project have been renamed from git-<!-- raw HTML omitted --> to
|
|
gix-<!-- raw HTML omitted -->. The git- prefixed crates are no longer being updated. Switch
|
|
to using gix-hash to continue receiving updates.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0027: Vulnerability in async-nats</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0027.html</id><updated>2023-03-24T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0027.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0027: Vulnerability in async-nats"/><published>2023-03-24T12:00:00+00:00</published><summary xml:lang="en">TLS certificate common name validation bypass</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/async-nats/RUSTSEC-2023-0027.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/async-nats/RUSTSEC-2023-0027.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0027
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>TLS certificate common name validation bypass</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-03-24">
|
|
March 24, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-03-24">
|
|
March 24, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/async-nats.html">async-nats</a>
|
|
(<a href="https://crates.io/crates/async-nats">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/crypto-failure.html">crypto-failure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/tls.html">#tls</a>
|
|
|
|
<a href="/keywords/mitm.html">#mitm</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/nats-io/nats.rs/commit/817a7b942c462fa9d9938dcb62124173634132fb#diff-767d442397fcaaf2f83e8f924d4a70317a2ce4703a49964d6007707949cfa5f5L303-R304">
|
|
https://github.com/nats-io/nats.rs/commit/817a7b942c462fa9d9938dcb62124173634132fb#diff-767d442397fcaaf2f83e8f924d4a70317a2ce4703a49964d6007707949cfa5f5L303-R304
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.29.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The NATS official Rust clients are vulnerable to MitM when using TLS.</p>
|
|
<p>The common name of the server's TLS certificate is validated against
|
|
the <code>host</code>name provided by the server's plaintext <code>INFO</code> message
|
|
during the initial connection setup phase. A MitM proxy can tamper with
|
|
the <code>host</code> field's value by substituting it with the common name of a
|
|
valid certificate it controls, fooling the client into accepting it.</p>
|
|
<h2>Reproduction steps</h2>
|
|
<ol>
|
|
<li>The NATS Rust client tries to establish a new connection</li>
|
|
<li>The connection is intercepted by a MitM proxy</li>
|
|
<li>The proxy makes a separate connection to the NATS server</li>
|
|
<li>The NATS server replies with an <code>INFO</code> message</li>
|
|
<li>The proxy reads the <code>INFO</code>, alters the <code>host</code> JSON field and passes
|
|
the tampered <code>INFO</code> back to the client</li>
|
|
<li>The proxy upgrades the client connection to TLS, presenting a certificate issued
|
|
by a certificate authority present in the client's keychain.
|
|
In the previous step the <code>host</code> was set to the common name of said certificate</li>
|
|
<li><code>rustls</code> accepts the certificate, having verified that the common name matches the
|
|
attacker-controlled value it was given</li>
|
|
<li>The client has been fooled by the MitM proxy into accepting the attacker-controlled certificate</li>
|
|
</ol>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0022: Vulnerability in openssl</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0022.html</id><updated>2023-03-24T12:00:00+00:00</updated><category term="thread-safety"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0022.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0022: Vulnerability in openssl"/><published>2023-03-24T12:00:00+00:00</published><summary xml:lang="en">`openssl` `X509NameBuilder::build` returned object is not thread safe</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/openssl/RUSTSEC-2023-0022.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/openssl/RUSTSEC-2023-0022.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0022
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>openssl</code> <code>X509NameBuilder::build</code> returned object is not thread safe</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-03-24">
|
|
March 24, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-03-24">
|
|
March 24, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/openssl.html">openssl</a>
|
|
(<a href="https://crates.io/crates/openssl">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/thread-safety.html">thread-safety</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/sfackler/rust-openssl/pull/1854">
|
|
https://github.com/sfackler/rust-openssl/pull/1854
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.10.48</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>openssl::x509::X509NameBuilder::build</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.10.48, &gt;=0.9.7</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>OpenSSL has a <code>modified</code> bit that it can set on on <code>X509_NAME</code> objects. If this
|
|
bit is set then the object is not thread-safe even when it appears the code is
|
|
not modifying the value.</p>
|
|
<p>Thanks to David Benjamin (Google) for reporting this issue.</p>
|
|
|
|
</article></content></entry><entry><title>RUSTSEC-2023-0024: Vulnerability in openssl</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0024.html</id><updated>2023-03-24T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0024.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0024: Vulnerability in openssl"/><published>2023-03-24T12:00:00+00:00</published><summary xml:lang="en">`openssl` `X509Extension::new` and `X509Extension::new_nid` null pointer dereference</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/openssl/RUSTSEC-2023-0024.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/openssl/RUSTSEC-2023-0024.md">Edit</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2023-0024
|
|
|
|
</h1>
|
|
<span class="subtitle"><p><code>openssl</code> <code>X509Extension::new</code> and <code>X509Extension::new_nid</code> null pointer dereference</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2023-03-24">
|
|
March 24, 2023
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2023-03-24">
|
|
March 24, 2023
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/openssl.html">openssl</a>
|
|
(<a href="https://crates.io/crates/openssl">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="details">Details</dt>
|
|
<dd>
|
|
<a href="https://github.com/sfackler/rust-openssl/pull/1854">
|
|
https://github.com/sfackler/rust-openssl/pull/1854
|
|
</a>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.10.48</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>openssl::x509::X509Extension::new</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.10.48, &gt;=0.9.7</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>openssl::x509::X509Extension::new_nid</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.10.48, &gt;=0.9.7</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>These functions would crash when the context argument was None with certain extension types.</p>
|
|
<p>Thanks to David Benjamin (Google) for reporting this issue.</p>
|
|
|
|
</article></content></entry></feed> |