From ffaabdb46e175f18fd409335db3d88053c7dbf16 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 8 Oct 2021 16:17:42 +0000 Subject: [PATCH] Update gh-pages --- advisories/RUSTSEC-2021-0119.html | 2 +- advisories/index.html | 2 +- feed.xml | 2 +- packages/nix.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/advisories/RUSTSEC-2021-0119.html b/advisories/RUSTSEC-2021-0119.html index ea5f68f90..2782e0193 100644 --- a/advisories/RUSTSEC-2021-0119.html +++ b/advisories/RUSTSEC-2021-0119.html @@ -77,7 +77,7 @@
- Unsound + Vulnerability
diff --git a/advisories/index.html b/advisories/index.html index 6aebd485b..26f95c251 100644 --- a/advisories/index.html +++ b/advisories/index.html @@ -57,7 +57,7 @@

- RUSTSEC-2021-0119: Unsoundness in nix + RUSTSEC-2021-0119: Vulnerability in nix

Out-of-bounds write in nix::unistd::getgrouplist

diff --git a/feed.xml b/feed.xml index d3d25b0ec..86462f40f 100644 --- a/feed.xml +++ b/feed.xml @@ -1 +1 @@ -RustSec Advisorieshttps://rustsec.org/feed.xml2021-09-27T00:00:00+00:00RustSechttps://rustsec.org/favicon.icoSecurity advisories filed against Rust cratesRUSTSEC-2021-0119: Unsoundness in nixhttps://rustsec.org/advisories/RUSTSEC-2021-0119.html2021-09-27T00:00:00+00:002021-09-27T00:00:00+00:00Out-of-bounds write in nix::unistd::getgrouplist <article> <header> <h1> RUSTSEC-2021-0119 </h1> <span class="subtitle"><p>Out-of-bounds write in nix::unistd::getgrouplist</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-27"> September 27, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/nix.html">nix</a> (<a href="https://crates.io/crates/nix">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;nix-rust&#x2f;nix&#x2f;issues&#x2f;1541"> https:&#x2f;&#x2f;github.com&#x2f;nix-rust&#x2f;nix&#x2f;issues&#x2f;1541 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>^0.20.2</code></li> <li><code>^0.21.2</code></li> <li><code>^0.22.2</code></li> <li><code>&gt;=0.23.0</code></li> </ul> </dd> <dt id="unaffected">Unaffected</dt> <dd> <ul> <li><code>&lt;0.16.0</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>nss</li> </ul> </dd> <dt>Affected OSes</dt> <dd> <ul> <li><code>linux</code></li> <li><code>freebsd</code></li> <li><code>android</code></li> <li><code>netbsd</code></li> <li><code>dragonfly</code></li> <li><code>openbsd</code></li> <li><code>fuchsia</code></li> </ul> </dd> </dl> <dl> <dt>Affected Functions</dt> <dd>Version</dd> <dt><code>nix::unistd::getgrouplist</code></dt> <dd> <ul> <li><code>&gt;=0.16.0</code></li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>On certain platforms, if a user has more than 16 groups, the <code>nix::unistd::getgrouplist</code> function will call the libc <code>getgrouplist</code> function with a length parameter greater than the size of the buffer it provides, resulting in an out-of-bounds write and memory corruption.</p> <p>The libc <code>getgrouplist</code> function takes an in/out parameter <code>ngroups</code> specifying the size of the group buffer. When the buffer is too small to hold all of the reqested user's group memberships, some libc implementations, including glibc and Solaris libc, will modify <code>ngroups</code> to indicate the actual number of groups for the user, in addition to returning an error. The version of <code>nix::unistd::getgrouplist</code> in nix 0.16.0 and up will resize the buffer to twice its size, but will not read or modify the <code>ngroups</code> variable. Thus, if the user has more than twice as many groups as the initial buffer size of 8, the next call to <code>getgrouplist</code> will then write past the end of the buffer.</p> <p>The issue would require editing /etc/groups to exploit, which is usually only editable by the root user.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/nix/RUSTSEC-2021-0119.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/nix/RUSTSEC-2021-0119.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0115: Vulnerability in zeroize_derivehttps://rustsec.org/advisories/RUSTSEC-2021-0115.html2021-09-24T00:00:00+00:002021-09-24T00:00:00+00:00`#[zeroize(drop)]` doesn't implement `Drop` for `enum`s <article> <header> <h1> RUSTSEC-2021-0115 </h1> <span class="subtitle"><p><code>#[zeroize(drop)]</code> doesn't implement <code>Drop</code> for <code>enum</code>s</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-24"> September 24, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/zeroize_derive.html">zeroize_derive</a> (<a href="https://crates.io/crates/zeroize_derive">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;iqlusioninc&#x2f;crates&#x2f;issues&#x2f;876"> https:&#x2f;&#x2f;github.com&#x2f;iqlusioninc&#x2f;crates&#x2f;issues&#x2f;876 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=1.2.0</code></li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>Affected versions of this crate did not implement <code>Drop</code> when <code>#[zeroize(drop)]</code> was used on an <code>enum</code>.</p> <p>This can result in memory not being zeroed out after dropping it, which is exactly what is intended when adding this attribute.</p> <p>The flaw was corrected in version 1.2 and <code>#[zeroize(drop)]</code> on <code>enum</code>s now properly implements <code>Drop</code>.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/zeroize_derive/RUSTSEC-2021-0115.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/zeroize_derive/RUSTSEC-2021-0115.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0114: Vulnerability in nanorandhttps://rustsec.org/advisories/RUSTSEC-2021-0114.html2021-09-23T00:00:00+00:002021-09-23T00:00:00+00:00Aliased mutable references from `tls_rand` & `TlsWyRand` <article> <header> <h1> RUSTSEC-2021-0114 </h1> <span class="subtitle"><p>Aliased mutable references from <code>tls_rand</code> &amp; <code>TlsWyRand</code></p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-23"> September 23, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/nanorand.html">nanorand</a> (<a href="https://crates.io/crates/nanorand">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;Absolucy&#x2f;nanorand-rs&#x2f;issues&#x2f;28"> https:&#x2f;&#x2f;github.com&#x2f;Absolucy&#x2f;nanorand-rs&#x2f;issues&#x2f;28 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=0.6.1</code></li> </ul> </dd> <dt id="unaffected">Unaffected</dt> <dd> <ul> <li><code>&lt;0.5.0</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>memory-safety</li> <li>aliasing</li> </ul> </dd> </dl> <dl> <dt>Affected Functions</dt> <dd>Version</dd> <dt><code>nanorand::tls::tls_rand</code></dt> <dd> <ul> <li><code>&gt;=0.5.0</code></li> <li><code>&lt;=0.6.0</code></li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p><code>TlsWyRand</code>'s implementation of <code>Deref</code> unconditionally dereferences a raw pointer, and returns multiple mutable references to the same object, which is undefined behavior.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/nanorand/RUSTSEC-2021-0114.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/nanorand/RUSTSEC-2021-0114.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0110: Vulnerability in wasmtimehttps://rustsec.org/advisories/RUSTSEC-2021-0110.html2021-09-17T00:00:00+00:002021-09-17T00:00:00+00:00Multiple Vulnerabilities in Wasmtime <article> <header> <h1> RUSTSEC-2021-0110 </h1> <span class="subtitle"><p>Multiple Vulnerabilities in Wasmtime</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-17"> September 17, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/wasmtime.html">wasmtime</a> (<a href="https://crates.io/crates/wasmtime">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </dd> <dt id="categories">Categories</dt> <dd> <ul> <li>memory-corruption</li> <li>memory-exposure</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-39216">CVE-2021-39216</a> </li> <li> <a href="https:&#x2f;&#x2f;cve.mitre.org&#x2f;cgi-bin&#x2f;cvename.cgi?name=CVE-2021-39219">CVE-2021-39219</a> </li> <li> <a href="https:&#x2f;&#x2f;cve.mitre.org&#x2f;cgi-bin&#x2f;cvename.cgi?name=CVE-2021-39218">CVE-2021-39218</a> </li> </ul> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=0.30.0</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>use-after-free</li> <li>out-of-bounds read</li> <li>out-of-bounds write</li> <li>Wasm</li> <li>garbage collection</li> </ul> </dd> </dl> <dl> <dt>Affected Functions</dt> <dd>Version</dd> <dt><code>wasmtime::Linker::func_new</code></dt> <dd> <ul> <li><code>&lt;0.30.0</code></li> </ul> </dd> <dt><code>wasmtime::Linker::func_wrap</code></dt> <dd> <ul> <li><code>&lt;0.30.0</code></li> </ul> </dd> <dt><code>wasmtime::Store::gc</code></dt> <dd> <ul> <li><code>&lt;0.30.0</code></li> </ul> </dd> </dl> <h3 id="description">Description</h3> <ul> <li> <p><a href="https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-v4cp-h94r-m7xf">Use after free passing <code>externref</code>s to Wasm in Wasmtime</a></p> </li> <li> <p><a href="https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4873-36h9-wv49">Out-of-bounds read/write and invalid free with <code>externref</code>s and GC safepoints in Wasmtime</a></p> </li> <li> <p><a href="https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-q879-9g95-56mx">Wrong type for <code>Linker</code>-define functions when used across two <code>Engine</code>s</a></p> </li> </ul> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/wasmtime/RUSTSEC-2021-0110.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/wasmtime/RUSTSEC-2021-0110.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0111: Vulnerability in tremor-scripthttps://rustsec.org/advisories/RUSTSEC-2021-0111.html2021-09-16T00:00:00+00:002021-09-16T00:00:00+00:00Memory Safety Issue when using `patch` or `merge` on `state` and assign the result back to `state` <article> <header> <h1> RUSTSEC-2021-0111 </h1> <span class="subtitle"><p>Memory Safety Issue when using <code>patch</code> or <code>merge</code> on <code>state</code> and assign the result back to <code>state</code></p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-16"> September 16, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/tremor-script.html">tremor-script</a> (<a href="https://crates.io/crates/tremor-script">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </dd> <dt id="categories">Categories</dt> <dd> <ul> <li>memory-corruption</li> <li>memory-exposure</li> </ul> </dd> <dt id="details">Details</dt> <dd> <a href="https:&#x2f;&#x2f;github.com&#x2f;tremor-rs&#x2f;tremor-runtime&#x2f;pull&#x2f;1217"> https:&#x2f;&#x2f;github.com&#x2f;tremor-rs&#x2f;tremor-runtime&#x2f;pull&#x2f;1217 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=0.11.6</code></li> </ul> </dd> <dt id="unaffected">Unaffected</dt> <dd> <ul> <li><code>&lt;=0.7.2</code></li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>Affected versions of this crate maintains references to memory that might have been freed already. If affects the following two <code>tremor-script</code> language constructs:</p> <ul> <li>A <a href="https://www.tremor.rs/docs/tremor-script/index#merge">Merge</a> where we assign the result back to the target expression and the expression to be merged needs to reference the <code>event</code>:</li> </ul> <pre><code>let state = merge state of event end; </code></pre> <ul> <li>A <a href="https://www.tremor.rs/docs/tremor-script/index#patch">Patch</a> where we assign the result back to the target expression and the patch operations used need to reference the <code>event</code>:</li> </ul> <pre><code>let state = patch state of insert event.key =&gt; event.value end; </code></pre> <p>For constructs like this (it doesnt matter what is references in the expression to be merged or the patch operations) an optimization was applied to manipulate the target value in-place, instead of cloning it.</p> <p>Our <code>Value</code> struct which underpins all event data in <code>tremor-script</code>, is representing as borrowed strings <code>beef::Cow&lt;'lifetime, str&gt;</code> that reference the actual <code>Vec&lt;u8&gt;</code> the event is based upon. We keep the raw byte-array next to the event structure inside our <code>Event</code> struct as a self-referential struct, so we make sure that the structured <code>Value</code> and its references are valid across its whole lifetime.</p> <p>The optimization was considered safe as long as it was only possible to merge or patche <code>event</code> data or static data. When <code>state</code> was introduced to <code>tremor-script</code> a new possibility existed, to keep <code>Value</code> data around for longer than the lifetime of an event. If <code>event</code> data is merged or patched into <code>state</code> without cloning <code>state</code> first, it can still reference keys or values from the previous event, which will now be invalid. This allows access to those already freed regions of memory and to get their content out over the wire.</p> <h2>Workaround</h2> <p>If an upgrade is not possible, a possible workaround is to avoid the optimization by introducing a temporary variable and not immediately reassigning to <code>state</code>:</p> <pre><code>let tmp = merge state of event end; let state = tmp </code></pre> <h2>Fix</h2> <p>The flaw was corrected in <code>tremor-script</code> version 0.11.6 via commit <a href="https://github.com/tremor-rs/tremor-runtime/commit/1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e">1a2efcd</a> by removing the optimization and always clone the target expression of a <a href="https://www.tremor.rs/docs/tremor-script/index#merge">Merge</a> or [Patch](https://www.tremor.rs/docs/tremor-script/index#patch.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/tremor-script/RUSTSEC-2021-0111.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/tremor-script/RUSTSEC-2021-0111.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0116: Vulnerability in arrowhttps://rustsec.org/advisories/RUSTSEC-2021-0116.html2021-09-14T00:00:00+00:002021-09-14T00:00:00+00:00`BinaryArray` does not perform bound checks on reading values and offsets <article> <header> <h1> RUSTSEC-2021-0116 </h1> <span class="subtitle"><p><code>BinaryArray</code> does not perform bound checks on reading values and offsets</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-14"> September 14, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/arrow.html">arrow</a> (<a href="https://crates.io/crates/arrow">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </dd> <dt id="categories">Categories</dt> <dd> <ul> <li>memory-exposure</li> </ul> </dd> <dt id="patched">Patched</dt> <dd> no patched versions </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>buffer-overflow</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p><code>BinaryArray</code> performs insufficient validation on creation, which allows out-of-bounds reads in safe code.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/arrow/RUSTSEC-2021-0116.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/arrow/RUSTSEC-2021-0116.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0118: Vulnerability in arrowhttps://rustsec.org/advisories/RUSTSEC-2021-0118.html2021-09-14T00:00:00+00:002021-09-14T00:00:00+00:00`FixedSizeBinaryArray` does not perform bound checks on accessing values and offsets <article> <header> <h1> RUSTSEC-2021-0118 </h1> <span class="subtitle"><p><code>FixedSizeBinaryArray</code> does not perform bound checks on accessing values and offsets</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-14"> September 14, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/arrow.html">arrow</a> (<a href="https://crates.io/crates/arrow">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </dd> <dt id="categories">Categories</dt> <dd> <ul> <li>memory-exposure</li> </ul> </dd> <dt id="details">Details</dt> <dd> <a href="https:&#x2f;&#x2f;github.com&#x2f;apache&#x2f;arrow-rs&#x2f;issues&#x2f;774"> https:&#x2f;&#x2f;github.com&#x2f;apache&#x2f;arrow-rs&#x2f;issues&#x2f;774 </a> </dd> <dt id="patched">Patched</dt> <dd> no patched versions </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>buffer-overflow</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p><code>FixedSizeBinaryArray</code> performs insufficient bounds checks, which allows out-of-bounds reads in safe code.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/arrow/RUSTSEC-2021-0118.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/arrow/RUSTSEC-2021-0118.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0117: Vulnerability in arrowhttps://rustsec.org/advisories/RUSTSEC-2021-0117.html2021-09-14T00:00:00+00:002021-09-14T00:00:00+00:00`DecimalArray` does not perform bound checks on accessing values and offsets <article> <header> <h1> RUSTSEC-2021-0117 </h1> <span class="subtitle"><p><code>DecimalArray</code> does not perform bound checks on accessing values and offsets</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-14"> September 14, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/arrow.html">arrow</a> (<a href="https://crates.io/crates/arrow">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </dd> <dt id="categories">Categories</dt> <dd> <ul> <li>memory-exposure</li> </ul> </dd> <dt id="details">Details</dt> <dd> <a href="https:&#x2f;&#x2f;github.com&#x2f;apache&#x2f;arrow-rs&#x2f;issues&#x2f;775"> https:&#x2f;&#x2f;github.com&#x2f;apache&#x2f;arrow-rs&#x2f;issues&#x2f;775 </a> </dd> <dt id="patched">Patched</dt> <dd> no patched versions </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>buffer-overflow</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p><code>DecimalArray</code> performs insufficient bounds checks, which allows out-of-bounds reads in safe code if the lenght of the backing buffer is not a multiple of 16.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/arrow/RUSTSEC-2021-0117.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/arrow/RUSTSEC-2021-0117.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0100: Vulnerability in sha2https://rustsec.org/advisories/RUSTSEC-2021-0100.html2021-09-08T00:00:00+00:002021-09-08T00:00:00+00:00Miscomputed results when using AVX2 backend <article> <header> <h1> RUSTSEC-2021-0100 </h1> <span class="subtitle"><p>Miscomputed results when using AVX2 backend</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-08"> September 8, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/sha2.html">sha2</a> (<a href="https://crates.io/crates/sha2">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;RustCrypto&#x2f;hashes&#x2f;pull&#x2f;314"> https:&#x2f;&#x2f;github.com&#x2f;RustCrypto&#x2f;hashes&#x2f;pull&#x2f;314 </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.7</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>cryptography</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>The v0.9.7 release of the <code>sha2</code> crate introduced a new AVX2-accelerated backend which was automatically enabled for all x86/x86_64 CPUs where AVX2 support was autodetected at runtime.</p> <p>This backend was buggy and would miscompute results for long messages (i.e. messages spanning multiple SHA blocks).</p> <p>The crate has since been yanked, but any users who upgraded to v0.9.7 should immediately upgrade to v0.9.8 and recompute any hashes which were previously computed by v0.9.7.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/sha2/RUSTSEC-2021-0100.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/sha2/RUSTSEC-2021-0100.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-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:&#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> \ No newline at end of file +RustSec Advisorieshttps://rustsec.org/feed.xml2021-09-27T00:00:00+00:00RustSechttps://rustsec.org/favicon.icoSecurity advisories filed against Rust cratesRUSTSEC-2021-0119: Vulnerability in nixhttps://rustsec.org/advisories/RUSTSEC-2021-0119.html2021-09-27T00:00:00+00:002021-09-27T00:00:00+00:00Out-of-bounds write in nix::unistd::getgrouplist <article> <header> <h1> RUSTSEC-2021-0119 </h1> <span class="subtitle"><p>Out-of-bounds write in nix::unistd::getgrouplist</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-27"> September 27, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/nix.html">nix</a> (<a href="https://crates.io/crates/nix">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="details">Details</dt> <dd> <a href="https:&#x2f;&#x2f;github.com&#x2f;nix-rust&#x2f;nix&#x2f;issues&#x2f;1541"> https:&#x2f;&#x2f;github.com&#x2f;nix-rust&#x2f;nix&#x2f;issues&#x2f;1541 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>^0.20.2</code></li> <li><code>^0.21.2</code></li> <li><code>^0.22.2</code></li> <li><code>&gt;=0.23.0</code></li> </ul> </dd> <dt id="unaffected">Unaffected</dt> <dd> <ul> <li><code>&lt;0.16.0</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>nss</li> </ul> </dd> <dt>Affected OSes</dt> <dd> <ul> <li><code>linux</code></li> <li><code>freebsd</code></li> <li><code>android</code></li> <li><code>netbsd</code></li> <li><code>dragonfly</code></li> <li><code>openbsd</code></li> <li><code>fuchsia</code></li> </ul> </dd> </dl> <dl> <dt>Affected Functions</dt> <dd>Version</dd> <dt><code>nix::unistd::getgrouplist</code></dt> <dd> <ul> <li><code>&gt;=0.16.0</code></li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>On certain platforms, if a user has more than 16 groups, the <code>nix::unistd::getgrouplist</code> function will call the libc <code>getgrouplist</code> function with a length parameter greater than the size of the buffer it provides, resulting in an out-of-bounds write and memory corruption.</p> <p>The libc <code>getgrouplist</code> function takes an in/out parameter <code>ngroups</code> specifying the size of the group buffer. When the buffer is too small to hold all of the reqested user's group memberships, some libc implementations, including glibc and Solaris libc, will modify <code>ngroups</code> to indicate the actual number of groups for the user, in addition to returning an error. The version of <code>nix::unistd::getgrouplist</code> in nix 0.16.0 and up will resize the buffer to twice its size, but will not read or modify the <code>ngroups</code> variable. Thus, if the user has more than twice as many groups as the initial buffer size of 8, the next call to <code>getgrouplist</code> will then write past the end of the buffer.</p> <p>The issue would require editing /etc/groups to exploit, which is usually only editable by the root user.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/nix/RUSTSEC-2021-0119.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/nix/RUSTSEC-2021-0119.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0115: Vulnerability in zeroize_derivehttps://rustsec.org/advisories/RUSTSEC-2021-0115.html2021-09-24T00:00:00+00:002021-09-24T00:00:00+00:00`#[zeroize(drop)]` doesn't implement `Drop` for `enum`s <article> <header> <h1> RUSTSEC-2021-0115 </h1> <span class="subtitle"><p><code>#[zeroize(drop)]</code> doesn't implement <code>Drop</code> for <code>enum</code>s</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-24"> September 24, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/zeroize_derive.html">zeroize_derive</a> (<a href="https://crates.io/crates/zeroize_derive">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;iqlusioninc&#x2f;crates&#x2f;issues&#x2f;876"> https:&#x2f;&#x2f;github.com&#x2f;iqlusioninc&#x2f;crates&#x2f;issues&#x2f;876 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=1.2.0</code></li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>Affected versions of this crate did not implement <code>Drop</code> when <code>#[zeroize(drop)]</code> was used on an <code>enum</code>.</p> <p>This can result in memory not being zeroed out after dropping it, which is exactly what is intended when adding this attribute.</p> <p>The flaw was corrected in version 1.2 and <code>#[zeroize(drop)]</code> on <code>enum</code>s now properly implements <code>Drop</code>.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/zeroize_derive/RUSTSEC-2021-0115.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/zeroize_derive/RUSTSEC-2021-0115.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0114: Vulnerability in nanorandhttps://rustsec.org/advisories/RUSTSEC-2021-0114.html2021-09-23T00:00:00+00:002021-09-23T00:00:00+00:00Aliased mutable references from `tls_rand` & `TlsWyRand` <article> <header> <h1> RUSTSEC-2021-0114 </h1> <span class="subtitle"><p>Aliased mutable references from <code>tls_rand</code> &amp; <code>TlsWyRand</code></p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-23"> September 23, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/nanorand.html">nanorand</a> (<a href="https://crates.io/crates/nanorand">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;Absolucy&#x2f;nanorand-rs&#x2f;issues&#x2f;28"> https:&#x2f;&#x2f;github.com&#x2f;Absolucy&#x2f;nanorand-rs&#x2f;issues&#x2f;28 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=0.6.1</code></li> </ul> </dd> <dt id="unaffected">Unaffected</dt> <dd> <ul> <li><code>&lt;0.5.0</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>memory-safety</li> <li>aliasing</li> </ul> </dd> </dl> <dl> <dt>Affected Functions</dt> <dd>Version</dd> <dt><code>nanorand::tls::tls_rand</code></dt> <dd> <ul> <li><code>&gt;=0.5.0</code></li> <li><code>&lt;=0.6.0</code></li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p><code>TlsWyRand</code>'s implementation of <code>Deref</code> unconditionally dereferences a raw pointer, and returns multiple mutable references to the same object, which is undefined behavior.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/nanorand/RUSTSEC-2021-0114.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/nanorand/RUSTSEC-2021-0114.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0110: Vulnerability in wasmtimehttps://rustsec.org/advisories/RUSTSEC-2021-0110.html2021-09-17T00:00:00+00:002021-09-17T00:00:00+00:00Multiple Vulnerabilities in Wasmtime <article> <header> <h1> RUSTSEC-2021-0110 </h1> <span class="subtitle"><p>Multiple Vulnerabilities in Wasmtime</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-17"> September 17, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/wasmtime.html">wasmtime</a> (<a href="https://crates.io/crates/wasmtime">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </dd> <dt id="categories">Categories</dt> <dd> <ul> <li>memory-corruption</li> <li>memory-exposure</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-39216">CVE-2021-39216</a> </li> <li> <a href="https:&#x2f;&#x2f;cve.mitre.org&#x2f;cgi-bin&#x2f;cvename.cgi?name=CVE-2021-39219">CVE-2021-39219</a> </li> <li> <a href="https:&#x2f;&#x2f;cve.mitre.org&#x2f;cgi-bin&#x2f;cvename.cgi?name=CVE-2021-39218">CVE-2021-39218</a> </li> </ul> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=0.30.0</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>use-after-free</li> <li>out-of-bounds read</li> <li>out-of-bounds write</li> <li>Wasm</li> <li>garbage collection</li> </ul> </dd> </dl> <dl> <dt>Affected Functions</dt> <dd>Version</dd> <dt><code>wasmtime::Linker::func_new</code></dt> <dd> <ul> <li><code>&lt;0.30.0</code></li> </ul> </dd> <dt><code>wasmtime::Linker::func_wrap</code></dt> <dd> <ul> <li><code>&lt;0.30.0</code></li> </ul> </dd> <dt><code>wasmtime::Store::gc</code></dt> <dd> <ul> <li><code>&lt;0.30.0</code></li> </ul> </dd> </dl> <h3 id="description">Description</h3> <ul> <li> <p><a href="https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-v4cp-h94r-m7xf">Use after free passing <code>externref</code>s to Wasm in Wasmtime</a></p> </li> <li> <p><a href="https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4873-36h9-wv49">Out-of-bounds read/write and invalid free with <code>externref</code>s and GC safepoints in Wasmtime</a></p> </li> <li> <p><a href="https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-q879-9g95-56mx">Wrong type for <code>Linker</code>-define functions when used across two <code>Engine</code>s</a></p> </li> </ul> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/wasmtime/RUSTSEC-2021-0110.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/wasmtime/RUSTSEC-2021-0110.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0111: Vulnerability in tremor-scripthttps://rustsec.org/advisories/RUSTSEC-2021-0111.html2021-09-16T00:00:00+00:002021-09-16T00:00:00+00:00Memory Safety Issue when using `patch` or `merge` on `state` and assign the result back to `state` <article> <header> <h1> RUSTSEC-2021-0111 </h1> <span class="subtitle"><p>Memory Safety Issue when using <code>patch</code> or <code>merge</code> on <code>state</code> and assign the result back to <code>state</code></p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-16"> September 16, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/tremor-script.html">tremor-script</a> (<a href="https://crates.io/crates/tremor-script">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </dd> <dt id="categories">Categories</dt> <dd> <ul> <li>memory-corruption</li> <li>memory-exposure</li> </ul> </dd> <dt id="details">Details</dt> <dd> <a href="https:&#x2f;&#x2f;github.com&#x2f;tremor-rs&#x2f;tremor-runtime&#x2f;pull&#x2f;1217"> https:&#x2f;&#x2f;github.com&#x2f;tremor-rs&#x2f;tremor-runtime&#x2f;pull&#x2f;1217 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=0.11.6</code></li> </ul> </dd> <dt id="unaffected">Unaffected</dt> <dd> <ul> <li><code>&lt;=0.7.2</code></li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>Affected versions of this crate maintains references to memory that might have been freed already. If affects the following two <code>tremor-script</code> language constructs:</p> <ul> <li>A <a href="https://www.tremor.rs/docs/tremor-script/index#merge">Merge</a> where we assign the result back to the target expression and the expression to be merged needs to reference the <code>event</code>:</li> </ul> <pre><code>let state = merge state of event end; </code></pre> <ul> <li>A <a href="https://www.tremor.rs/docs/tremor-script/index#patch">Patch</a> where we assign the result back to the target expression and the patch operations used need to reference the <code>event</code>:</li> </ul> <pre><code>let state = patch state of insert event.key =&gt; event.value end; </code></pre> <p>For constructs like this (it doesnt matter what is references in the expression to be merged or the patch operations) an optimization was applied to manipulate the target value in-place, instead of cloning it.</p> <p>Our <code>Value</code> struct which underpins all event data in <code>tremor-script</code>, is representing as borrowed strings <code>beef::Cow&lt;'lifetime, str&gt;</code> that reference the actual <code>Vec&lt;u8&gt;</code> the event is based upon. We keep the raw byte-array next to the event structure inside our <code>Event</code> struct as a self-referential struct, so we make sure that the structured <code>Value</code> and its references are valid across its whole lifetime.</p> <p>The optimization was considered safe as long as it was only possible to merge or patche <code>event</code> data or static data. When <code>state</code> was introduced to <code>tremor-script</code> a new possibility existed, to keep <code>Value</code> data around for longer than the lifetime of an event. If <code>event</code> data is merged or patched into <code>state</code> without cloning <code>state</code> first, it can still reference keys or values from the previous event, which will now be invalid. This allows access to those already freed regions of memory and to get their content out over the wire.</p> <h2>Workaround</h2> <p>If an upgrade is not possible, a possible workaround is to avoid the optimization by introducing a temporary variable and not immediately reassigning to <code>state</code>:</p> <pre><code>let tmp = merge state of event end; let state = tmp </code></pre> <h2>Fix</h2> <p>The flaw was corrected in <code>tremor-script</code> version 0.11.6 via commit <a href="https://github.com/tremor-rs/tremor-runtime/commit/1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e">1a2efcd</a> by removing the optimization and always clone the target expression of a <a href="https://www.tremor.rs/docs/tremor-script/index#merge">Merge</a> or [Patch](https://www.tremor.rs/docs/tremor-script/index#patch.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/tremor-script/RUSTSEC-2021-0111.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/tremor-script/RUSTSEC-2021-0111.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0116: Vulnerability in arrowhttps://rustsec.org/advisories/RUSTSEC-2021-0116.html2021-09-14T00:00:00+00:002021-09-14T00:00:00+00:00`BinaryArray` does not perform bound checks on reading values and offsets <article> <header> <h1> RUSTSEC-2021-0116 </h1> <span class="subtitle"><p><code>BinaryArray</code> does not perform bound checks on reading values and offsets</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-14"> September 14, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/arrow.html">arrow</a> (<a href="https://crates.io/crates/arrow">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </dd> <dt id="categories">Categories</dt> <dd> <ul> <li>memory-exposure</li> </ul> </dd> <dt id="patched">Patched</dt> <dd> no patched versions </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>buffer-overflow</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p><code>BinaryArray</code> performs insufficient validation on creation, which allows out-of-bounds reads in safe code.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/arrow/RUSTSEC-2021-0116.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/arrow/RUSTSEC-2021-0116.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0118: Vulnerability in arrowhttps://rustsec.org/advisories/RUSTSEC-2021-0118.html2021-09-14T00:00:00+00:002021-09-14T00:00:00+00:00`FixedSizeBinaryArray` does not perform bound checks on accessing values and offsets <article> <header> <h1> RUSTSEC-2021-0118 </h1> <span class="subtitle"><p><code>FixedSizeBinaryArray</code> does not perform bound checks on accessing values and offsets</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-14"> September 14, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/arrow.html">arrow</a> (<a href="https://crates.io/crates/arrow">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </dd> <dt id="categories">Categories</dt> <dd> <ul> <li>memory-exposure</li> </ul> </dd> <dt id="details">Details</dt> <dd> <a href="https:&#x2f;&#x2f;github.com&#x2f;apache&#x2f;arrow-rs&#x2f;issues&#x2f;774"> https:&#x2f;&#x2f;github.com&#x2f;apache&#x2f;arrow-rs&#x2f;issues&#x2f;774 </a> </dd> <dt id="patched">Patched</dt> <dd> no patched versions </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>buffer-overflow</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p><code>FixedSizeBinaryArray</code> performs insufficient bounds checks, which allows out-of-bounds reads in safe code.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/arrow/RUSTSEC-2021-0118.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/arrow/RUSTSEC-2021-0118.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0117: Vulnerability in arrowhttps://rustsec.org/advisories/RUSTSEC-2021-0117.html2021-09-14T00:00:00+00:002021-09-14T00:00:00+00:00`DecimalArray` does not perform bound checks on accessing values and offsets <article> <header> <h1> RUSTSEC-2021-0117 </h1> <span class="subtitle"><p><code>DecimalArray</code> does not perform bound checks on accessing values and offsets</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-14"> September 14, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/arrow.html">arrow</a> (<a href="https://crates.io/crates/arrow">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </dd> <dt id="categories">Categories</dt> <dd> <ul> <li>memory-exposure</li> </ul> </dd> <dt id="details">Details</dt> <dd> <a href="https:&#x2f;&#x2f;github.com&#x2f;apache&#x2f;arrow-rs&#x2f;issues&#x2f;775"> https:&#x2f;&#x2f;github.com&#x2f;apache&#x2f;arrow-rs&#x2f;issues&#x2f;775 </a> </dd> <dt id="patched">Patched</dt> <dd> no patched versions </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>buffer-overflow</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p><code>DecimalArray</code> performs insufficient bounds checks, which allows out-of-bounds reads in safe code if the lenght of the backing buffer is not a multiple of 16.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/arrow/RUSTSEC-2021-0117.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/arrow/RUSTSEC-2021-0117.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0100: Vulnerability in sha2https://rustsec.org/advisories/RUSTSEC-2021-0100.html2021-09-08T00:00:00+00:002021-09-08T00:00:00+00:00Miscomputed results when using AVX2 backend <article> <header> <h1> RUSTSEC-2021-0100 </h1> <span class="subtitle"><p>Miscomputed results when using AVX2 backend</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-09-08"> September 8, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/sha2.html">sha2</a> (<a href="https://crates.io/crates/sha2">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;RustCrypto&#x2f;hashes&#x2f;pull&#x2f;314"> https:&#x2f;&#x2f;github.com&#x2f;RustCrypto&#x2f;hashes&#x2f;pull&#x2f;314 </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.7</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>cryptography</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>The v0.9.7 release of the <code>sha2</code> crate introduced a new AVX2-accelerated backend which was automatically enabled for all x86/x86_64 CPUs where AVX2 support was autodetected at runtime.</p> <p>This backend was buggy and would miscompute results for long messages (i.e. messages spanning multiple SHA blocks).</p> <p>The crate has since been yanked, but any users who upgraded to v0.9.7 should immediately upgrade to v0.9.8 and recompute any hashes which were previously computed by v0.9.7.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/sha2/RUSTSEC-2021-0100.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/sha2/RUSTSEC-2021-0100.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-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:&#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> \ No newline at end of file diff --git a/packages/nix.html b/packages/nix.html index d6f8f7e8f..d098b61f9 100644 --- a/packages/nix.html +++ b/packages/nix.html @@ -56,7 +56,7 @@

- RUSTSEC-2021-0119: Unsoundness in nix + RUSTSEC-2021-0119: Vulnerability in nix

Out-of-bounds write in nix::unistd::getgrouplist