Uncontrolled recursion leads to abort in deserialization
diff --git a/feed.xml b/feed.xml
index a0a7abe9a..40fe59e56 100644
--- a/feed.xml
+++ b/feed.xml
@@ -1 +1 @@
-RustSec Advisorieshttps://rustsec.org/feed.xml2021-08-25T00:00:00+00:00RustSechttps://rustsec.org/favicon.icoSecurity advisories filed against Rust cratesRUSTSEC-2021-0099: cosmos_sdk is unmaintainedhttps://rustsec.org/advisories/RUSTSEC-2021-0099.html2021-08-25T00:00:00+00:002021-08-25T00:00:00+00:00Crate has been renamed to `cosmrs` <article>
<header>
<h1>
RUSTSEC-2021-0099
</h1>
<span class="subtitle"><p>Crate has been renamed to <code>cosmrs</code></p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-08-25">
August 25, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/cosmos_sdk.html">cosmos_sdk</a>
(<a href="https://crates.io/crates/cosmos_sdk">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Unmaintained
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/cosmos/cosmos-rust/issues/113">
https://github.com/cosmos/cosmos-rust/issues/113
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
</dl>
<h3 id="description">Description</h3>
<p>The <code>cosmos_sdk</code> crate, which provides a basic Rust SDK for the Cosmos ecosystem,
has rebranded to “CosmRS” in the spirit of other projects like CosmJS and CosmWasm.</p>
<p>You can find the new home here:</p>
<p>https://github.com/cosmos/cosmos-rust/tree/main/cosmrs</p>
<p>The new crate name is <code>cosmrs</code>:</p>
<p>https://crates.io/crates/cosmrs</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/cosmos_sdk/RUSTSEC-2021-0099.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/cosmos_sdk/RUSTSEC-2021-0099.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0098: Vulnerability in openssl-srchttps://rustsec.org/advisories/RUSTSEC-2021-0098.html2021-08-24T00:00:00+00:002021-08-24T00:00:00+00:00Read buffer overruns processing ASN.1 strings <article>
<header>
<h1>
RUSTSEC-2021-0098
</h1>
<span class="subtitle"><p>Read buffer overruns processing ASN.1 strings</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-08-24">
August 24, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/openssl-src.html">openssl-src</a>
(<a href="https://crates.io/crates/openssl-src">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>denial-of-service</li>
<li>crypto-failure</li>
</ul>
</dd>
<dt id="aliases">Aliases</dt>
<dd>
<ul>
<li>
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3712">CVE-2021-3712</a>
</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://www.openssl.org/news/secadv/20210824.txt">
https://www.openssl.org/news/secadv/20210824.txt
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=111.16</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>ASN.1 strings are represented internally within OpenSSL as an ASN1_STRING
structure which contains a buffer holding the string data and a field holding
the buffer length. This contrasts with normal C strings which are represented as
a buffer for the string data which is terminated with a NUL (0) byte.</p>
<p>Although not a strict requirement, ASN.1 strings that are parsed using OpenSSL's
own "d2i" functions (and other similar parsing functions) as well as any string
whose value has been set with the ASN1_STRING_set() function will additionally
NUL terminate the byte array in the ASN1_STRING structure.</p>
<p>However, it is possible for applications to directly construct valid ASN1_STRING
structures which do not NUL terminate the byte array by directly setting the
"data" and "length" fields in the ASN1_STRING array. This can also happen by
using the <code>ASN1_STRING_set0()</code> function.</p>
<p>Numerous OpenSSL functions that print ASN.1 data have been found to assume that
the ASN1_STRING byte array will be NUL terminated, even though this is not
guaranteed for strings that have been directly constructed. Where an application
requests an ASN.1 structure to be printed, and where that ASN.1 structure
contains ASN1_STRINGs that have been directly constructed by the application
without NUL terminating the "data" field, then a read buffer overrun can occur.</p>
<p>The same thing can also occur during name constraints processing of certificates
(for example if a certificate has been directly constructed by the application
instead of loading it via the OpenSSL parsing functions, and the certificate
contains non NUL terminated ASN1_STRING structures). It can also occur in the
<code>X509_get1_email()</code>, <code>X509_REQ_get1_email()</code> and <code>X509_get1_ocsp()</code> functions.</p>
<p>If a malicious actor can cause an application to directly construct an
ASN1_STRING and then process it through one of the affected OpenSSL functions
then this issue could be hit. This might result in a crash (causing a Denial of
Service attack). It could also result in the disclosure of private memory
contents (such as private keys, or sensitive plaintext).</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/openssl-src/RUSTSEC-2021-0098.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/openssl-src/RUSTSEC-2021-0098.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0097: Vulnerability in openssl-srchttps://rustsec.org/advisories/RUSTSEC-2021-0097.html2021-08-24T00:00:00+00:002021-08-24T00:00:00+00:00SM2 Decryption Buffer Overflow <article>
<header>
<h1>
RUSTSEC-2021-0097
</h1>
<span class="subtitle"><p>SM2 Decryption Buffer Overflow</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-08-24">
August 24, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/openssl-src.html">openssl-src</a>
(<a href="https://crates.io/crates/openssl-src">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>crypto-failure</li>
</ul>
</dd>
<dt id="aliases">Aliases</dt>
<dd>
<ul>
<li>
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3711">CVE-2021-3711</a>
</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://www.openssl.org/news/secadv/20210824.txt">
https://www.openssl.org/news/secadv/20210824.txt
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=111.16</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>In order to decrypt SM2 encrypted data an application is expected to call the
API function <code>EVP_PKEY_decrypt()</code>. Typically an application will call this
function twice. The first time, on entry, the "out" parameter can be NULL and,
on exit, the "outlen" parameter is populated with the buffer size required to
hold the decrypted plaintext. The application can then allocate a sufficiently
sized buffer and call <code>EVP_PKEY_decrypt()</code> again, but this time passing a non-NULL
value for the "out" parameter.</p>
<p>A bug in the implementation of the SM2 decryption code means that the
calculation of the buffer size required to hold the plaintext returned by the
first call to <code>EVP_PKEY_decrypt()</code> can be smaller than the actual size required by
the second call. This can lead to a buffer overflow when <code>EVP_PKEY_decrypt()</code> is
called by the application a second time with a buffer that is too small.</p>
<p>A malicious attacker who is able present SM2 content for decryption to an
application could cause attacker chosen data to overflow the buffer by up to a
maximum of 62 bytes altering the contents of other data held after the
buffer, possibly changing application behaviour or causing the application to
crash. The location of the buffer is application dependent but is typically
heap allocated.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/openssl-src/RUSTSEC-2021-0097.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/openssl-src/RUSTSEC-2021-0097.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0096: spirv_headers is unmaintainedhttps://rustsec.org/advisories/RUSTSEC-2021-0096.html2021-08-16T00:00:00+00:002021-08-16T00:00:00+00:00spirv_headers is unmaintained, use spirv instead <article>
<header>
<h1>
RUSTSEC-2021-0096
</h1>
<span class="subtitle"><p>spirv_headers is unmaintained, use spirv instead</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-08-16">
August 16, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/spirv_headers.html">spirv_headers</a>
(<a href="https://crates.io/crates/spirv_headers">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Unmaintained
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/gfx-rs/rspirv/issues/197">
https://github.com/gfx-rs/rspirv/issues/197
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
</dl>
<h3 id="description">Description</h3>
<p>Because of versioning issues; the <code>spirv_headers</code> crate is unmaintained. Use <a href="https://crates.io/crates/spirv">spirv</a>
for parsing spirv files.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/spirv_headers/RUSTSEC-2021-0096.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/spirv_headers/RUSTSEC-2021-0096.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0082: Unsoundness in vec-consthttps://rustsec.org/advisories/RUSTSEC-2021-0082.html2021-08-14T00:00:00+00:002021-08-14T00:00:00+00:00vec-const attempts to construct a Vec from a pointer to a const slice <article>
<header>
<h1>
RUSTSEC-2021-0082
</h1>
<span class="subtitle"><p>vec-const attempts to construct a Vec from a pointer to a const slice</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-08-14">
August 14, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/vec-const.html">vec-const</a>
(<a href="https://crates.io/crates/vec-const">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Unsound
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>memory-corruption</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/Eolu/vec-const/issues/1#issuecomment-898908241">
https://github.com/Eolu/vec-const/issues/1#issuecomment-898908241
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>memory-safety</li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>This crate claims to construct a const <code>Vec</code> with nonzero length and capacity, but that cannot be done because such a <code>Vec</code> requires a pointer from an allocator.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/vec-const/RUSTSEC-2021-0082.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/vec-const/RUSTSEC-2021-0082.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0093: Vulnerability in crossbeam-dequehttps://rustsec.org/advisories/RUSTSEC-2021-0093.html2021-07-30T00:00:00+00:002021-07-30T00:00:00+00:00Data race in crossbeam-deque <article>
<header>
<h1>
RUSTSEC-2021-0093
</h1>
<span class="subtitle"><p>Data race in crossbeam-deque</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-30">
July 30, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/crossbeam-deque.html">crossbeam-deque</a>
(<a href="https://crates.io/crates/crossbeam-deque">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>memory-corruption</li>
</ul>
</dd>
<dt id="aliases">Aliases</dt>
<dd>
<ul>
<li>
GHSA-pqqp-xmhj-wgcw
</li>
<li>
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32810">CVE-2021-32810</a>
</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-pqqp-xmhj-wgcw">
https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-pqqp-xmhj-wgcw
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.7.4, <0.8.0</code></li>
<li><code>>=0.8.1</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>In the affected version of this crate, the result of the race condition is that one or more tasks in the worker queue can be popped twice instead of other tasks that are forgotten and never popped. If tasks are allocated on the heap, this can cause double free and a memory leak. If not, this still can cause a logical bug.</p>
<p>Crates using <code>Stealer::steal</code>, <code>Stealer::steal_batch</code>, or <code>Stealer::steal_batch_and_pop</code> are affected by this issue.</p>
<p>Credits to @kmaork for discovering, reporting and fixing the bug.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/crossbeam-deque/RUSTSEC-2021-0093.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/crossbeam-deque/RUSTSEC-2021-0093.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0077: Vulnerability in better-macrohttps://rustsec.org/advisories/RUSTSEC-2021-0077.html2021-07-22T00:00:00+00:002021-07-22T00:00:00+00:00`better-macro` has deliberate RCE to prove a point <article>
<header>
<h1>
RUSTSEC-2021-0077
</h1>
<span class="subtitle"><p><code>better-macro</code> has deliberate RCE to prove a point</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-22">
July 22, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/better-macro.html">better-macro</a>
(<a href="https://crates.io/crates/better-macro">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>code-execution</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/raycar5/better-macro/blob/24ff1702397b9c19bbfa4c660e2316cd77d3b900/src/lib.rs#L36-L38">
https://github.com/raycar5/better-macro/blob/24ff1702397b9c19bbfa4c660e2316cd77d3b900/src/lib.rs#L36-L38
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>rce</li>
<li>proc-macro</li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>better_macro::println</code></dt>
<dd>
<ul>
<li><code>>1.0.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p><a href="https://crates.io/crates/better-macro">better-macro</a> is a fake crate which is
"Proving A Point" that proc-macros can run arbitrary code. This a particularly
novel or interesting observation.</p>
<p>It currently opens <code>https://github.com/raycar5/better-macro/blob/master/doc/hi.md</code>
which doesn't appear to have any malicious content, but there's no guarantee that
will remain the case.</p>
<p>This crate has no useful functionality, and should not be used.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/better-macro/RUSTSEC-2021-0077.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/better-macro/RUSTSEC-2021-0077.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0080: Vulnerability in tarhttps://rustsec.org/advisories/RUSTSEC-2021-0080.html2021-07-19T00:00:00+00:002021-07-19T00:00:00+00:00Links in archive can create arbitrary directories <article>
<header>
<h1>
RUSTSEC-2021-0080
</h1>
<span class="subtitle"><p>Links in archive can create arbitrary directories</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-19">
July 19, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/tar.html">tar</a>
(<a href="https://crates.io/crates/tar">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/alexcrichton/tar-rs/issues/238">
https://github.com/alexcrichton/tar-rs/issues/238
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.4.36</code></li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>tar::Archive::unpack</code></dt>
<dd>
<ul>
<li><code><0.4.36</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>When unpacking a tarball that contains a symlink the <code>tar</code> crate may create
directories outside of the directory it's supposed to unpack into.</p>
<p>The function errors when it's trying to create a file, but the folders are
already created at this point.</p>
<pre><code class="language-rust">use std::{io, io::Result};
use tar::{Archive, Builder, EntryType, Header};
fn main() -> Result<()> {
let mut buf = Vec::new();
{
let mut builder = Builder::new(&mut buf);
// symlink: parent -> ..
let mut header = Header::new_gnu();
header.set_path("symlink")?;
header.set_link_name("..")?;
header.set_entry_type(EntryType::Symlink);
header.set_size(0);
header.set_cksum();
builder.append(&header, io::empty())?;
// file: symlink/exploit/foo/bar
let mut header = Header::new_gnu();
header.set_path("symlink/exploit/foo/bar")?;
header.set_size(0);
header.set_cksum();
builder.append(&header, io::empty())?;
builder.finish()?;
};
Archive::new(&*buf).unpack("demo")
}
</code></pre>
<p>This has been fixed in https://github.com/alexcrichton/tar-rs/pull/259 and is
published as <code>tar</code> 0.4.36. Thanks to Martin Michaelis (@mgjm) for discovering
and reporting this, and Nikhil Benesch (@benesch) for the fix!</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/tar/RUSTSEC-2021-0080.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/tar/RUSTSEC-2021-0080.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0076: Vulnerability in libsecp256k1https://rustsec.org/advisories/RUSTSEC-2021-0076.html2021-07-13T00:00:00+00:002021-07-13T00:00:00+00:00libsecp256k1 allows overflowing signatures <article>
<header>
<h1>
RUSTSEC-2021-0076
</h1>
<span class="subtitle"><p>libsecp256k1 allows overflowing signatures</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-13">
July 13, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/libsecp256k1.html">libsecp256k1</a>
(<a href="https://crates.io/crates/libsecp256k1">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>crypto-failure</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/paritytech/libsecp256k1/pull/67">
https://github.com/paritytech/libsecp256k1/pull/67
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.5.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>libsecp256k1 accepts signatures whose R or S parameter is larger than the
secp256k1 curve order, which differs from other implementations. This could
lead to invalid signatures being verified.</p>
<p>The error is resolved in 0.5.0 by adding a <code>check_overflow</code> flag.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/libsecp256k1/RUSTSEC-2021-0076.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/libsecp256k1/RUSTSEC-2021-0076.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0073: Vulnerability in prost-typeshttps://rustsec.org/advisories/RUSTSEC-2021-0073.html2021-07-08T00:00:00+00:002021-07-08T00:00:00+00:00Conversion from `prost_types::Timestamp` to `SystemTime` can cause an overflow and panic <article>
<header>
<h1>
RUSTSEC-2021-0073
</h1>
<span class="subtitle"><p>Conversion from <code>prost_types::Timestamp</code> to <code>SystemTime</code> can cause an overflow and panic</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-08">
July 8, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/prost-types.html">prost-types</a>
(<a href="https://crates.io/crates/prost-types">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>denial-of-service</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/tokio-rs/prost/issues/438">
https://github.com/tokio-rs/prost/issues/438
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.8.0</code></li>
</ul>
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>denial-of-service</li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>prost_types::Timestamp::Into<SystemTime></code></dt>
<dd>
<ul>
<li><code><=0.7.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>Affected versions of this crate contained a bug in which untrusted input could cause an overflow and panic when converting a <code>Timestamp</code> to <code>SystemTime</code>.</p>
<p>It is recommended to upgrade to <code>prost-types</code> v0.8 and switch the usage of <code>From<Timestamp> for SystemTime</code> to <code>TryFrom<Timestamp> for SystemTime</code>.</p>
<p>See <a href="https://github.com/tokio-rs/prost/issues/438">#438</a> for more information.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/prost-types/RUSTSEC-2021-0073.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/prost-types/RUSTSEC-2021-0073.md">Edit
Advisory</a></li>
</ul>
</article>
\ No newline at end of file
+RustSec Advisorieshttps://rustsec.org/feed.xml2021-08-25T00:00:00+00:00RustSechttps://rustsec.org/favicon.icoSecurity advisories filed against Rust cratesRUSTSEC-2021-0099: cosmos_sdk is unmaintainedhttps://rustsec.org/advisories/RUSTSEC-2021-0099.html2021-08-25T00:00:00+00:002021-08-25T00:00:00+00:00Crate has been renamed to `cosmrs` <article>
<header>
<h1>
RUSTSEC-2021-0099
</h1>
<span class="subtitle"><p>Crate has been renamed to <code>cosmrs</code></p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-08-25">
August 25, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/cosmos_sdk.html">cosmos_sdk</a>
(<a href="https://crates.io/crates/cosmos_sdk">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Unmaintained
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/cosmos/cosmos-rust/issues/113">
https://github.com/cosmos/cosmos-rust/issues/113
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
</dl>
<h3 id="description">Description</h3>
<p>The <code>cosmos_sdk</code> crate, which provides a basic Rust SDK for the Cosmos ecosystem,
has rebranded to “CosmRS” in the spirit of other projects like CosmJS and CosmWasm.</p>
<p>You can find the new home here:</p>
<p>https://github.com/cosmos/cosmos-rust/tree/main/cosmrs</p>
<p>The new crate name is <code>cosmrs</code>:</p>
<p>https://crates.io/crates/cosmrs</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/cosmos_sdk/RUSTSEC-2021-0099.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/cosmos_sdk/RUSTSEC-2021-0099.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0098: Vulnerability in openssl-srchttps://rustsec.org/advisories/RUSTSEC-2021-0098.html2021-08-24T00:00:00+00:002021-08-24T00:00:00+00:00Read buffer overruns processing ASN.1 strings <article>
<header>
<h1>
RUSTSEC-2021-0098
</h1>
<span class="subtitle"><p>Read buffer overruns processing ASN.1 strings</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-08-24">
August 24, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/openssl-src.html">openssl-src</a>
(<a href="https://crates.io/crates/openssl-src">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>denial-of-service</li>
<li>crypto-failure</li>
</ul>
</dd>
<dt id="aliases">Aliases</dt>
<dd>
<ul>
<li>
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3712">CVE-2021-3712</a>
</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://www.openssl.org/news/secadv/20210824.txt">
https://www.openssl.org/news/secadv/20210824.txt
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=111.16</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>ASN.1 strings are represented internally within OpenSSL as an ASN1_STRING
structure which contains a buffer holding the string data and a field holding
the buffer length. This contrasts with normal C strings which are represented as
a buffer for the string data which is terminated with a NUL (0) byte.</p>
<p>Although not a strict requirement, ASN.1 strings that are parsed using OpenSSL's
own "d2i" functions (and other similar parsing functions) as well as any string
whose value has been set with the ASN1_STRING_set() function will additionally
NUL terminate the byte array in the ASN1_STRING structure.</p>
<p>However, it is possible for applications to directly construct valid ASN1_STRING
structures which do not NUL terminate the byte array by directly setting the
"data" and "length" fields in the ASN1_STRING array. This can also happen by
using the <code>ASN1_STRING_set0()</code> function.</p>
<p>Numerous OpenSSL functions that print ASN.1 data have been found to assume that
the ASN1_STRING byte array will be NUL terminated, even though this is not
guaranteed for strings that have been directly constructed. Where an application
requests an ASN.1 structure to be printed, and where that ASN.1 structure
contains ASN1_STRINGs that have been directly constructed by the application
without NUL terminating the "data" field, then a read buffer overrun can occur.</p>
<p>The same thing can also occur during name constraints processing of certificates
(for example if a certificate has been directly constructed by the application
instead of loading it via the OpenSSL parsing functions, and the certificate
contains non NUL terminated ASN1_STRING structures). It can also occur in the
<code>X509_get1_email()</code>, <code>X509_REQ_get1_email()</code> and <code>X509_get1_ocsp()</code> functions.</p>
<p>If a malicious actor can cause an application to directly construct an
ASN1_STRING and then process it through one of the affected OpenSSL functions
then this issue could be hit. This might result in a crash (causing a Denial of
Service attack). It could also result in the disclosure of private memory
contents (such as private keys, or sensitive plaintext).</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/openssl-src/RUSTSEC-2021-0098.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/openssl-src/RUSTSEC-2021-0098.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0097: Vulnerability in openssl-srchttps://rustsec.org/advisories/RUSTSEC-2021-0097.html2021-08-24T00:00:00+00:002021-08-24T00:00:00+00:00SM2 Decryption Buffer Overflow <article>
<header>
<h1>
RUSTSEC-2021-0097
</h1>
<span class="subtitle"><p>SM2 Decryption Buffer Overflow</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-08-24">
August 24, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/openssl-src.html">openssl-src</a>
(<a href="https://crates.io/crates/openssl-src">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>crypto-failure</li>
</ul>
</dd>
<dt id="aliases">Aliases</dt>
<dd>
<ul>
<li>
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3711">CVE-2021-3711</a>
</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://www.openssl.org/news/secadv/20210824.txt">
https://www.openssl.org/news/secadv/20210824.txt
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=111.16</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>In order to decrypt SM2 encrypted data an application is expected to call the
API function <code>EVP_PKEY_decrypt()</code>. Typically an application will call this
function twice. The first time, on entry, the "out" parameter can be NULL and,
on exit, the "outlen" parameter is populated with the buffer size required to
hold the decrypted plaintext. The application can then allocate a sufficiently
sized buffer and call <code>EVP_PKEY_decrypt()</code> again, but this time passing a non-NULL
value for the "out" parameter.</p>
<p>A bug in the implementation of the SM2 decryption code means that the
calculation of the buffer size required to hold the plaintext returned by the
first call to <code>EVP_PKEY_decrypt()</code> can be smaller than the actual size required by
the second call. This can lead to a buffer overflow when <code>EVP_PKEY_decrypt()</code> is
called by the application a second time with a buffer that is too small.</p>
<p>A malicious attacker who is able present SM2 content for decryption to an
application could cause attacker chosen data to overflow the buffer by up to a
maximum of 62 bytes altering the contents of other data held after the
buffer, possibly changing application behaviour or causing the application to
crash. The location of the buffer is application dependent but is typically
heap allocated.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/openssl-src/RUSTSEC-2021-0097.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/openssl-src/RUSTSEC-2021-0097.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0096: spirv_headers is unmaintainedhttps://rustsec.org/advisories/RUSTSEC-2021-0096.html2021-08-16T00:00:00+00:002021-08-16T00:00:00+00:00spirv_headers is unmaintained, use spirv instead <article>
<header>
<h1>
RUSTSEC-2021-0096
</h1>
<span class="subtitle"><p>spirv_headers is unmaintained, use spirv instead</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-08-16">
August 16, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/spirv_headers.html">spirv_headers</a>
(<a href="https://crates.io/crates/spirv_headers">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Unmaintained
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/gfx-rs/rspirv/issues/197">
https://github.com/gfx-rs/rspirv/issues/197
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
</dl>
<h3 id="description">Description</h3>
<p>Because of versioning issues; the <code>spirv_headers</code> crate is unmaintained. Use <a href="https://crates.io/crates/spirv">spirv</a>
for parsing spirv files.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/spirv_headers/RUSTSEC-2021-0096.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/spirv_headers/RUSTSEC-2021-0096.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0082: Unsoundness in vec-consthttps://rustsec.org/advisories/RUSTSEC-2021-0082.html2021-08-14T00:00:00+00:002021-08-14T00:00:00+00:00vec-const attempts to construct a Vec from a pointer to a const slice <article>
<header>
<h1>
RUSTSEC-2021-0082
</h1>
<span class="subtitle"><p>vec-const attempts to construct a Vec from a pointer to a const slice</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-08-14">
August 14, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/vec-const.html">vec-const</a>
(<a href="https://crates.io/crates/vec-const">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Unsound
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>memory-corruption</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/Eolu/vec-const/issues/1#issuecomment-898908241">
https://github.com/Eolu/vec-const/issues/1#issuecomment-898908241
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>memory-safety</li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>This crate claims to construct a const <code>Vec</code> with nonzero length and capacity, but that cannot be done because such a <code>Vec</code> requires a pointer from an allocator.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/vec-const/RUSTSEC-2021-0082.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/vec-const/RUSTSEC-2021-0082.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0093: Vulnerability in crossbeam-dequehttps://rustsec.org/advisories/RUSTSEC-2021-0093.html2021-07-30T00:00:00+00:002021-07-30T00:00:00+00:00Data race in crossbeam-deque <article>
<header>
<h1>
RUSTSEC-2021-0093
</h1>
<span class="subtitle"><p>Data race in crossbeam-deque</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-30">
July 30, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/crossbeam-deque.html">crossbeam-deque</a>
(<a href="https://crates.io/crates/crossbeam-deque">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>memory-corruption</li>
</ul>
</dd>
<dt id="aliases">Aliases</dt>
<dd>
<ul>
<li>
GHSA-pqqp-xmhj-wgcw
</li>
<li>
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32810">CVE-2021-32810</a>
</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-pqqp-xmhj-wgcw">
https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-pqqp-xmhj-wgcw
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.7.4, <0.8.0</code></li>
<li><code>>=0.8.1</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>In the affected version of this crate, the result of the race condition is that one or more tasks in the worker queue can be popped twice instead of other tasks that are forgotten and never popped. If tasks are allocated on the heap, this can cause double free and a memory leak. If not, this still can cause a logical bug.</p>
<p>Crates using <code>Stealer::steal</code>, <code>Stealer::steal_batch</code>, or <code>Stealer::steal_batch_and_pop</code> are affected by this issue.</p>
<p>Credits to @kmaork for discovering, reporting and fixing the bug.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/crossbeam-deque/RUSTSEC-2021-0093.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/crossbeam-deque/RUSTSEC-2021-0093.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0077: Vulnerability in better-macrohttps://rustsec.org/advisories/RUSTSEC-2021-0077.html2021-07-22T00:00:00+00:002021-07-22T00:00:00+00:00`better-macro` has deliberate RCE to prove a point <article>
<header>
<h1>
RUSTSEC-2021-0077
</h1>
<span class="subtitle"><p><code>better-macro</code> has deliberate RCE to prove a point</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-22">
July 22, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/better-macro.html">better-macro</a>
(<a href="https://crates.io/crates/better-macro">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>code-execution</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/raycar5/better-macro/blob/24ff1702397b9c19bbfa4c660e2316cd77d3b900/src/lib.rs#L36-L38">
https://github.com/raycar5/better-macro/blob/24ff1702397b9c19bbfa4c660e2316cd77d3b900/src/lib.rs#L36-L38
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>rce</li>
<li>proc-macro</li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>better_macro::println</code></dt>
<dd>
<ul>
<li><code>>1.0.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p><a href="https://crates.io/crates/better-macro">better-macro</a> is a fake crate which is
"Proving A Point" that proc-macros can run arbitrary code. This a particularly
novel or interesting observation.</p>
<p>It currently opens <code>https://github.com/raycar5/better-macro/blob/master/doc/hi.md</code>
which doesn't appear to have any malicious content, but there's no guarantee that
will remain the case.</p>
<p>This crate has no useful functionality, and should not be used.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/better-macro/RUSTSEC-2021-0077.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/better-macro/RUSTSEC-2021-0077.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0080: Vulnerability in tarhttps://rustsec.org/advisories/RUSTSEC-2021-0080.html2021-07-19T00:00:00+00:002021-07-19T00:00:00+00:00Links in archive can create arbitrary directories <article>
<header>
<h1>
RUSTSEC-2021-0080
</h1>
<span class="subtitle"><p>Links in archive can create arbitrary directories</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-19">
July 19, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/tar.html">tar</a>
(<a href="https://crates.io/crates/tar">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/alexcrichton/tar-rs/issues/238">
https://github.com/alexcrichton/tar-rs/issues/238
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.4.36</code></li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>tar::Archive::unpack</code></dt>
<dd>
<ul>
<li><code><0.4.36</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>When unpacking a tarball that contains a symlink the <code>tar</code> crate may create
directories outside of the directory it's supposed to unpack into.</p>
<p>The function errors when it's trying to create a file, but the folders are
already created at this point.</p>
<pre><code class="language-rust">use std::{io, io::Result};
use tar::{Archive, Builder, EntryType, Header};
fn main() -> Result<()> {
let mut buf = Vec::new();
{
let mut builder = Builder::new(&mut buf);
// symlink: parent -> ..
let mut header = Header::new_gnu();
header.set_path("symlink")?;
header.set_link_name("..")?;
header.set_entry_type(EntryType::Symlink);
header.set_size(0);
header.set_cksum();
builder.append(&header, io::empty())?;
// file: symlink/exploit/foo/bar
let mut header = Header::new_gnu();
header.set_path("symlink/exploit/foo/bar")?;
header.set_size(0);
header.set_cksum();
builder.append(&header, io::empty())?;
builder.finish()?;
};
Archive::new(&*buf).unpack("demo")
}
</code></pre>
<p>This has been fixed in https://github.com/alexcrichton/tar-rs/pull/259 and is
published as <code>tar</code> 0.4.36. Thanks to Martin Michaelis (@mgjm) for discovering
and reporting this, and Nikhil Benesch (@benesch) for the fix!</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/tar/RUSTSEC-2021-0080.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/tar/RUSTSEC-2021-0080.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0076: Vulnerability in libsecp256k1https://rustsec.org/advisories/RUSTSEC-2021-0076.html2021-07-13T00:00:00+00:002021-07-13T00:00:00+00:00libsecp256k1 allows overflowing signatures <article>
<header>
<h1>
RUSTSEC-2021-0076
</h1>
<span class="subtitle"><p>libsecp256k1 allows overflowing signatures</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-13">
July 13, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/libsecp256k1.html">libsecp256k1</a>
(<a href="https://crates.io/crates/libsecp256k1">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>crypto-failure</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/paritytech/libsecp256k1/pull/67">
https://github.com/paritytech/libsecp256k1/pull/67
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.5.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>libsecp256k1 accepts signatures whose R or S parameter is larger than the
secp256k1 curve order, which differs from other implementations. This could
lead to invalid signatures being verified.</p>
<p>The error is resolved in 0.5.0 by adding a <code>check_overflow</code> flag.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/libsecp256k1/RUSTSEC-2021-0076.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/libsecp256k1/RUSTSEC-2021-0076.md">Edit
Advisory</a></li>
</ul>
</article>RUSTSEC-2021-0075: Vulnerability in ark-r1cs-stdhttps://rustsec.org/advisories/RUSTSEC-2021-0075.html2021-07-08T00:00:00+00:002021-07-08T00:00:00+00:00Flaw in `FieldVar::mul_by_inverse` allows unsound R1CS constraint systems <article>
<header>
<h1>
RUSTSEC-2021-0075
</h1>
<span class="subtitle"><p>Flaw in <code>FieldVar::mul_by_inverse</code> allows unsound R1CS constraint systems</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-08">
July 8, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/ark-r1cs-std.html">ark-r1cs-std</a>
(<a href="https://crates.io/crates/ark-r1cs-std">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>crypto-failure</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/arkworks-rs/r1cs-std/pull/70">
https://github.com/arkworks-rs/r1cs-std/pull/70
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.3.1</code></li>
</ul>
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>r1cs</li>
<li>zksnark</li>
<li>arkworks</li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>ark_r1cs_std::FieldVar::mul_by_inverse</code></dt>
<dd>
<ul>
<li><code><0.3.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>Versions <code>0.2.0</code> to <code>0.3.0</code> of ark-r1cs-std did not enforce any constraints in the <code>FieldVar::mul_by_inverse</code> method, allowing a malicious prover to produce an unsound proof that passes all verifier checks.
This method was used primarily in scalar multiplication for <a href="https://docs.rs/ark-r1cs-std/0.3.0/ark_r1cs_std/groups/curves/short_weierstrass/struct.ProjectiveVar.html"><code>short_weierstrass::ProjectiveVar</code></a>.</p>
<p>This bug was fixed in commit <code>47ddbaa</code>, and was released as part of version <code>0.3.1</code> on <code>crates.io</code>.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/ark-r1cs-std/RUSTSEC-2021-0075.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/ark-r1cs-std/RUSTSEC-2021-0075.md">Edit
Advisory</a></li>
</ul>
</article>
\ No newline at end of file
diff --git a/packages/http.html b/packages/http.html
index 241eabda3..593302118 100644
--- a/packages/http.html
+++ b/packages/http.html
@@ -55,11 +55,11 @@