mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 16:54:32 -06:00
1 line
46 KiB
XML
1 line
46 KiB
XML
<feed xmlns="http://www.w3.org/2005/Atom"><title>RustSec Advisories</title><id>https://rustsec.org/feed.xml</id><updated>2021-08-25T00: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>Security advisories filed against Rust crates</subtitle><entry><title>RUSTSEC-2021-0099: cosmos_sdk is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0099.html</id><updated>2021-08-25T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0099.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0099: cosmos_sdk is unmaintained"/><published>2021-08-25T00:00:00+00:00</published><summary>Crate has been renamed to `cosmrs`</summary><content type="html"> <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:&#x2f;&#x2f;github.com&#x2f;cosmos&#x2f;cosmos-rust&#x2f;issues&#x2f;113">
 https:&#x2f;&#x2f;github.com&#x2f;cosmos&#x2f;cosmos-rust&#x2f;issues&#x2f;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></content></entry><entry><title>RUSTSEC-2021-0098: Vulnerability in openssl-src</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0098.html</id><updated>2021-08-24T00:00:00+00:00</updated><category term="denial-of-service"/><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0098.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0098: Vulnerability in openssl-src"/><published>2021-08-24T00:00:00+00:00</published><summary>Read buffer overruns processing ASN.1 strings</summary><content type="html"> <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:&#x2f;&#x2f;cve.mitre.org&#x2f;cgi-bin&#x2f;cvename.cgi?name=CVE-2021-3712">CVE-2021-3712</a>
 
 </li>
 
 </ul>
 </dd>
 

 
 <dt id="details">Details</dt>
 <dd>
 <a href="https:&#x2f;&#x2f;www.openssl.org&#x2f;news&#x2f;secadv&#x2f;20210824.txt">
 https:&#x2f;&#x2f;www.openssl.org&#x2f;news&#x2f;secadv&#x2f;20210824.txt
 </a>
 </dd>
 

 
 

 
 
 

 <dt id="patched">Patched</dt>
 <dd>
 
 
 <ul>
 
 <li><code>&gt;=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 &quot;d2i&quot; 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
&quot;data&quot; and &quot;length&quot; 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 &quot;data&quot; 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></content></entry><entry><title>RUSTSEC-2021-0097: Vulnerability in openssl-src</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0097.html</id><updated>2021-08-24T00:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0097.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0097: Vulnerability in openssl-src"/><published>2021-08-24T00:00:00+00:00</published><summary>SM2 Decryption Buffer Overflow</summary><content type="html"> <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:&#x2f;&#x2f;cve.mitre.org&#x2f;cgi-bin&#x2f;cvename.cgi?name=CVE-2021-3711">CVE-2021-3711</a>
 
 </li>
 
 </ul>
 </dd>
 

 
 <dt id="details">Details</dt>
 <dd>
 <a href="https:&#x2f;&#x2f;www.openssl.org&#x2f;news&#x2f;secadv&#x2f;20210824.txt">
 https:&#x2f;&#x2f;www.openssl.org&#x2f;news&#x2f;secadv&#x2f;20210824.txt
 </a>
 </dd>
 

 
 

 
 
 

 <dt id="patched">Patched</dt>
 <dd>
 
 
 <ul>
 
 <li><code>&gt;=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 &quot;out&quot; parameter can be NULL and,
on exit, the &quot;outlen&quot; 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 &quot;out&quot; 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></content></entry><entry><title>RUSTSEC-2021-0096: spirv_headers is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0096.html</id><updated>2021-08-16T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0096.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0096: spirv_headers is unmaintained"/><published>2021-08-16T00:00:00+00:00</published><summary>spirv_headers is unmaintained, use spirv instead</summary><content type="html"> <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:&#x2f;&#x2f;github.com&#x2f;gfx-rs&#x2f;rspirv&#x2f;issues&#x2f;197">
 https:&#x2f;&#x2f;github.com&#x2f;gfx-rs&#x2f;rspirv&#x2f;issues&#x2f;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></content></entry><entry><title>RUSTSEC-2021-0082: Unsoundness in vec-const</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0082.html</id><updated>2021-08-14T00:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0082.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0082: Unsoundness in vec-const"/><published>2021-08-14T00:00:00+00:00</published><summary>vec-const attempts to construct a Vec from a pointer to a const slice</summary><content type="html"> <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:&#x2f;&#x2f;github.com&#x2f;Eolu&#x2f;vec-const&#x2f;issues&#x2f;1#issuecomment-898908241">
 https:&#x2f;&#x2f;github.com&#x2f;Eolu&#x2f;vec-const&#x2f;issues&#x2f;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></content></entry><entry><title>RUSTSEC-2021-0093: Vulnerability in crossbeam-deque</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0093.html</id><updated>2021-07-30T00:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0093.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0093: Vulnerability in crossbeam-deque"/><published>2021-07-30T00:00:00+00:00</published><summary>Data race in crossbeam-deque</summary><content type="html"> <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:&#x2f;&#x2f;cve.mitre.org&#x2f;cgi-bin&#x2f;cvename.cgi?name=CVE-2021-32810">CVE-2021-32810</a>
 
 </li>
 
 </ul>
 </dd>
 

 
 <dt id="details">Details</dt>
 <dd>
 <a href="https:&#x2f;&#x2f;github.com&#x2f;crossbeam-rs&#x2f;crossbeam&#x2f;security&#x2f;advisories&#x2f;GHSA-pqqp-xmhj-wgcw">
 https:&#x2f;&#x2f;github.com&#x2f;crossbeam-rs&#x2f;crossbeam&#x2f;security&#x2f;advisories&#x2f;GHSA-pqqp-xmhj-wgcw
 </a>
 </dd>
 

 
 

 
 
 

 <dt id="patched">Patched</dt>
 <dd>
 
 
 <ul>
 
 <li><code>&gt;=0.7.4, &lt;0.8.0</code></li>
 
 <li><code>&gt;=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></content></entry><entry><title>RUSTSEC-2021-0077: Vulnerability in better-macro</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0077.html</id><updated>2021-07-22T00:00:00+00:00</updated><category term="code-execution"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0077.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0077: Vulnerability in better-macro"/><published>2021-07-22T00:00:00+00:00</published><summary>`better-macro` has deliberate RCE to prove a point</summary><content type="html"> <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:&#x2f;&#x2f;github.com&#x2f;raycar5&#x2f;better-macro&#x2f;blob&#x2f;24ff1702397b9c19bbfa4c660e2316cd77d3b900&#x2f;src&#x2f;lib.rs#L36-L38">
 https:&#x2f;&#x2f;github.com&#x2f;raycar5&#x2f;better-macro&#x2f;blob&#x2f;24ff1702397b9c19bbfa4c660e2316cd77d3b900&#x2f;src&#x2f;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>&gt;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
&quot;Proving A Point&quot; 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></content></entry><entry><title>RUSTSEC-2021-0080: Vulnerability in tar</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0080.html</id><updated>2021-07-19T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0080.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0080: Vulnerability in tar"/><published>2021-07-19T00:00:00+00:00</published><summary>Links in archive can create arbitrary directories</summary><content type="html"> <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:&#x2f;&#x2f;github.com&#x2f;alexcrichton&#x2f;tar-rs&#x2f;issues&#x2f;238">
 https:&#x2f;&#x2f;github.com&#x2f;alexcrichton&#x2f;tar-rs&#x2f;issues&#x2f;238
 </a>
 </dd>
 

 
 

 
 
 

 <dt id="patched">Patched</dt>
 <dd>
 
 
 <ul>
 
 <li><code>&gt;=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>&lt;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() -&gt; Result&lt;()&gt; {
 let mut buf = Vec::new();

 {
 let mut builder = Builder::new(&amp;mut buf);

 // symlink: parent -&gt; ..
 let mut header = Header::new_gnu();
 header.set_path(&quot;symlink&quot;)?;
 header.set_link_name(&quot;..&quot;)?;
 header.set_entry_type(EntryType::Symlink);
 header.set_size(0);
 header.set_cksum();
 builder.append(&amp;header, io::empty())?;

 // file: symlink/exploit/foo/bar
 let mut header = Header::new_gnu();
 header.set_path(&quot;symlink/exploit/foo/bar&quot;)?;
 header.set_size(0);
 header.set_cksum();
 builder.append(&amp;header, io::empty())?;

 builder.finish()?;
 };

 Archive::new(&amp;*buf).unpack(&quot;demo&quot;)
}
</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></content></entry><entry><title>RUSTSEC-2021-0076: Vulnerability in libsecp256k1</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0076.html</id><updated>2021-07-13T00:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0076.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0076: Vulnerability in libsecp256k1"/><published>2021-07-13T00:00:00+00:00</published><summary>libsecp256k1 allows overflowing signatures</summary><content type="html"> <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:&#x2f;&#x2f;github.com&#x2f;paritytech&#x2f;libsecp256k1&#x2f;pull&#x2f;67">
 https:&#x2f;&#x2f;github.com&#x2f;paritytech&#x2f;libsecp256k1&#x2f;pull&#x2f;67
 </a>
 </dd>
 

 
 

 
 
 

 <dt id="patched">Patched</dt>
 <dd>
 
 
 <ul>
 
 <li><code>&gt;=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></content></entry><entry><title>RUSTSEC-2021-0075: Vulnerability in ark-r1cs-std</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0075.html</id><updated>2021-07-08T00:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0075.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0075: Vulnerability in ark-r1cs-std"/><published>2021-07-08T00:00:00+00:00</published><summary>Flaw in `FieldVar::mul_by_inverse` allows unsound R1CS constraint systems</summary><content type="html"> <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:&#x2f;&#x2f;github.com&#x2f;arkworks-rs&#x2f;r1cs-std&#x2f;pull&#x2f;70">
 https:&#x2f;&#x2f;github.com&#x2f;arkworks-rs&#x2f;r1cs-std&#x2f;pull&#x2f;70
 </a>
 </dd>
 

 
 

 
 
 

 <dt id="patched">Patched</dt>
 <dd>
 
 
 <ul>
 
 <li><code>&gt;=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>&lt;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></content></entry></feed> |