From 987b0ff73327ddcc75264327db2a42e47b62cd73 Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 22 Aug 2021 01:18:26 +0000 Subject: [PATCH] Update gh-pages --- advisories/CVE-2021-29922.html | 2 +- advisories/RUSTSEC-2018-0004.html | 2 +- advisories/RUSTSEC-2018-0019.html | 2 +- advisories/RUSTSEC-2019-0017.html | 2 +- advisories/RUSTSEC-2019-0033.html | 2 +- advisories/RUSTSEC-2019-0036.html | 4 ++-- advisories/RUSTSEC-2020-0001.html | 4 ++-- advisories/RUSTSEC-2020-0006.html | 2 +- advisories/RUSTSEC-2020-0030.html | 2 +- advisories/RUSTSEC-2020-0061.html | 2 +- advisories/RUSTSEC-2020-0069.html | 2 +- advisories/RUSTSEC-2020-0078.html | 2 +- advisories/RUSTSEC-2021-0013.html | 2 +- advisories/RUSTSEC-2021-0078.html | 4 ++-- advisories/index.html | 4 ++-- feed.xml | 2 +- packages/failure.html | 2 +- packages/trust-dns-server.html | 2 +- 18 files changed, 22 insertions(+), 22 deletions(-) diff --git a/advisories/CVE-2021-29922.html b/advisories/CVE-2021-29922.html index 874387ed2..7dd6ed2f8 100644 --- a/advisories/CVE-2021-29922.html +++ b/advisories/CVE-2021-29922.html @@ -190,7 +190,7 @@ IP address octects are left stripped instead of evaluated as valid IP addresses. For example, an attacker submitting an IP address to a web application that relies on std::net::IpAddr, could cause SSRF via inputting octal input data; An attacker can submit exploitable IP addresses if the octet is 3 digits, -with the minimum exploitable octect being 08 (Denial of Service) and the maximum exploitable octet is 099 (Denial of Service). +with the minimum exploitable octet being 08 (Denial of Service) and the maximum exploitable octet is 099 (Denial of Service). For example, an attacker can submit 010.8.8.8, which is 8.8.8.8 (RFI), yet std::net::IpAddr will evaluate this as 10.8.8.8. Equally, an attacker can input 127.0.026.1 which is really 127.0.22.1 but rust evaluates it as 127.0.26.1.

diff --git a/advisories/RUSTSEC-2018-0004.html b/advisories/RUSTSEC-2018-0004.html index dc9d405f5..e1878c5cf 100644 --- a/advisories/RUSTSEC-2018-0004.html +++ b/advisories/RUSTSEC-2018-0004.html @@ -161,7 +161,7 @@ of the decode buffer to not be overwritten. If the decode buffer was newly allocated and uninitialized, this uninitialized memory could be exposed.

This allows an attacker to observe parts of the uninitialized memory in the decoded audio stream.

-

The flaw was corrected by checking that the value read from the bistream divides +

The flaw was corrected by checking that the value read from the bitstream divides the decode buffer size, and returning a format error if it does not. If an error is returned, the decode buffer is not exposed. Regression tests and an additional fuzzer have been added to prevent similar flaws in the future.

diff --git a/advisories/RUSTSEC-2018-0019.html b/advisories/RUSTSEC-2018-0019.html index 07addae76..d9a81a5c2 100644 --- a/advisories/RUSTSEC-2018-0019.html +++ b/advisories/RUSTSEC-2018-0019.html @@ -147,7 +147,7 @@
  • Adding the Send marker trait to objects that cannot be safely sent between threads
  • This may result in a variety of memory corruption scenarios, most likely use-after-free.

    -

    A signficant refactoring effort has been conducted to resolve these issues.

    +

    A significant refactoring effort has been conducted to resolve these issues.

    diff --git a/advisories/RUSTSEC-2019-0017.html b/advisories/RUSTSEC-2019-0017.html index 0c3f11247..9eceba6af 100644 --- a/advisories/RUSTSEC-2019-0017.html +++ b/advisories/RUSTSEC-2019-0017.html @@ -209,7 +209,7 @@

    Description

    If during the first dereference of Lazy the initialization function panics, -subsequent derefernces will execute std::hints::unreachable_unchecked.

    +subsequent dereferences will execute std::hints::unreachable_unchecked.

    Applications with panic = "abort" are not affected, as there will be no subsequent dereferences.

    diff --git a/advisories/RUSTSEC-2019-0033.html b/advisories/RUSTSEC-2019-0033.html index d4dd1fb63..9aedd5d8e 100644 --- a/advisories/RUSTSEC-2019-0033.html +++ b/advisories/RUSTSEC-2019-0033.html @@ -193,7 +193,7 @@

    Description

    HeaderMap::reserve() used usize::next_power_of_two() to calculate the increased capacity. -However, next_power_of_two() silently overflows to 0 if given a sufficently large number +However, next_power_of_two() silently overflows to 0 if given a sufficiently large number in release mode.

    If the map was not empty when the overflow happens, the library will invoke self.grow(0) and start infinite probing. diff --git a/advisories/RUSTSEC-2019-0036.html b/advisories/RUSTSEC-2019-0036.html index 8b8067c29..9b9783b08 100644 --- a/advisories/RUSTSEC-2019-0036.html +++ b/advisories/RUSTSEC-2019-0036.html @@ -5,7 +5,7 @@ -RUSTSEC-2019-0036: failure: Type confusion if __private_get_type_id__ is overriden › RustSec Advisory Database +RUSTSEC-2019-0036: failure: Type confusion if __private_get_type_id__ is overridden › RustSec Advisory Database @@ -47,7 +47,7 @@ RUSTSEC-2019-0036 -

    Type confusion if private_get_type_id is overriden

    +

    Type confusion if private_get_type_id is overridden

    diff --git a/advisories/RUSTSEC-2020-0001.html b/advisories/RUSTSEC-2020-0001.html index 221f5960b..dbf6c96fb 100644 --- a/advisories/RUSTSEC-2020-0001.html +++ b/advisories/RUSTSEC-2020-0001.html @@ -5,7 +5,7 @@ -RUSTSEC-2020-0001: trust-dns-server: Stack overflow when resolving addional records from MX or SRV null targets › RustSec Advisory Database +RUSTSEC-2020-0001: trust-dns-server: Stack overflow when resolving additional records from MX or SRV null targets › RustSec Advisory Database @@ -47,7 +47,7 @@ RUSTSEC-2020-0001 -

    Stack overflow when resolving addional records from MX or SRV null targets

    +

    Stack overflow when resolving additional records from MX or SRV null targets

    diff --git a/advisories/RUSTSEC-2020-0006.html b/advisories/RUSTSEC-2020-0006.html index e3736a1a1..495640e03 100644 --- a/advisories/RUSTSEC-2020-0006.html +++ b/advisories/RUSTSEC-2020-0006.html @@ -186,7 +186,7 @@ in these scenarios.

    I've written a quickcheck test to exercise realloc. Without the bug fix in this patch, this quickcheck immediately triggers invalid reads when run under valgrind. We didn't previously have quickchecks that exercised -realloc beacuse realloc isn't publicly exposed directly, and instead +realloc because realloc isn't publicly exposed directly, and instead can only be indirectly called. This new quickcheck test exercises realloc via bumpalo::collections::Vec::resize and bumpalo::collections::Vec::shrink_to_fit calls.

    diff --git a/advisories/RUSTSEC-2020-0030.html b/advisories/RUSTSEC-2020-0030.html index 4d8d75bc1..1693fa885 100644 --- a/advisories/RUSTSEC-2020-0030.html +++ b/advisories/RUSTSEC-2020-0030.html @@ -156,7 +156,7 @@

    The client software downloaded a list of servers from mozilla's servers and created local files named after the hostname field in the json document.

    No verification of the content of the string was made, and it could therefore have included '../' leading to path traversal.

    -

    This allows an attacker in controll of mozilla's servers to overwrite/create local files named .conf.

    +

    This allows an attacker in control of mozilla's servers to overwrite/create local files named .conf.

    The flaw was corrected by sanitizing the hostname field.

    diff --git a/advisories/RUSTSEC-2020-0061.html b/advisories/RUSTSEC-2020-0061.html index 5391e80d0..14654a155 100644 --- a/advisories/RUSTSEC-2020-0061.html +++ b/advisories/RUSTSEC-2020-0061.html @@ -186,7 +186,7 @@

    Affected versions of the crate used a UnsafeCell in thread-local storage to return a noop waker reference, assuming that the reference would never be returned from another thread.

    This resulted in a segmentation fault crash if Waker::wake_by_ref() was called on a waker returned from another thread due to -it attempting to dereference a pointer that wasn't accesible from the main thread.

    +it attempting to dereference a pointer that wasn't accessible from the main thread.

    Reproduction Example (from issue):

    use futures_task::noop_waker_ref;
     fn main() {
    diff --git a/advisories/RUSTSEC-2020-0069.html b/advisories/RUSTSEC-2020-0069.html
    index 9bff0ed9b..8fa023309 100644
    --- a/advisories/RUSTSEC-2020-0069.html
    +++ b/advisories/RUSTSEC-2020-0069.html
    @@ -221,7 +221,7 @@
     to the sendmail command. It was possible, using forged to addresses,
     to pass arbitrary arguments to the sendmail executable.

    Depending on the implementation (original sendmail, postfix, exim, etc.) -it could be possible in some cases to write email data into abritrary files (using sendmail's +it could be possible in some cases to write email data into arbitrary files (using sendmail's logging features).

    The flaw is corrected by modifying the executed command to stop parsing arguments before passing the destination addresses.

    diff --git a/advisories/RUSTSEC-2020-0078.html b/advisories/RUSTSEC-2020-0078.html index 16622b461..5146a78eb 100644 --- a/advisories/RUSTSEC-2020-0078.html +++ b/advisories/RUSTSEC-2020-0078.html @@ -159,7 +159,7 @@

    Description

    The net2 crate has assumed std::net::SocketAddrV4 and std::net::SocketAddrV6 have the same memory layout as the system C representation -sockaddr. It has simply casted the pointers to convert the socket addresess to the +sockaddr. It has simply casted the pointers to convert the socket addresses to the system representation. The standard library does not say anything about the memory layout, and this will cause invalid memory access if the standard library changes the implementation. No warnings or errors will be emitted once the diff --git a/advisories/RUSTSEC-2021-0013.html b/advisories/RUSTSEC-2021-0013.html index 07ed57e24..a54744ed3 100644 --- a/advisories/RUSTSEC-2021-0013.html +++ b/advisories/RUSTSEC-2021-0013.html @@ -201,7 +201,7 @@ compiles only on these architectures, so others are unaffected.

    to crash deterministically every time.

    See https://github.com/gz/rust-cpuid/issues/41.

    The flaw has been fixed in v9.0.0, by intentionally breaking compilation -when targetting SGX or 32-bit x86 without SSE. This covers all affected CPUs.

    +when targeting SGX or 32-bit x86 without SSE. This covers all affected CPUs.

    diff --git a/advisories/RUSTSEC-2021-0078.html b/advisories/RUSTSEC-2021-0078.html index 952f2d8a3..5e8970f5c 100644 --- a/advisories/RUSTSEC-2021-0078.html +++ b/advisories/RUSTSEC-2021-0078.html @@ -163,9 +163,9 @@

    Description

    hyper's HTTP header parser accepted, according to RFC 7230, illegal contents inside Content-Length headers. -Due to this, upstream HTTP proxies that ignore the the header may still forward them along if it chooses to ignore the error.

    +Due to this, upstream HTTP proxies that ignore the header may still forward them along if it chooses to ignore the error.

    To be vulnerable, hyper must be used as an HTTP/1 server and using an HTTP proxy upstream that ignores the header's contents -but still forwards it. Due to all the factors that must line up, an attack exploiting this vulnerablity is unlikely.

    +but still forwards it. Due to all the factors that must line up, an attack exploiting this vulnerability is unlikely.

    diff --git a/advisories/index.html b/advisories/index.html index 1f445484b..ce286be15 100644 --- a/advisories/index.html +++ b/advisories/index.html @@ -4204,7 +4204,7 @@ RUSTSEC-2020-0001: Vulnerability in trust-dns-server -

    Stack overflow when resolving addional records from MX or SRV null targets

    +

    Stack overflow when resolving additional records from MX or SRV null targets

    @@ -4293,7 +4293,7 @@ RUSTSEC-2019-0036: Unsoundness in failure -

    Type confusion if private_get_type_id is overriden

    +

    Type confusion if private_get_type_id is overridden

    diff --git a/feed.xml b/feed.xml index efcb0f6dc..77e52d7d2 100644 --- a/feed.xml +++ b/feed.xml @@ -1 +1 @@ -RustSec Advisorieshttps://rustsec.org/feed.xml2021-08-14T00:00:00+00:00RustSechttps://rustsec.org/favicon.icoSecurity advisories filed against Rust cratesRUSTSEC-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:&#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>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:&#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>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:&#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>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:&#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>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:&#x2f;&#x2f;github.com&#x2f;tokio-rs&#x2f;prost&#x2f;issues&#x2f;438"> https:&#x2f;&#x2f;github.com&#x2f;tokio-rs&#x2f;prost&#x2f;issues&#x2f;438 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=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&lt;SystemTime&gt;</code></dt> <dd> <ul> <li><code>&lt;=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&lt;Timestamp&gt; for SystemTime</code> to <code>TryFrom&lt;Timestamp&gt; 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>RUSTSEC-2021-0074: Vulnerability in ammoniahttps://rustsec.org/advisories/RUSTSEC-2021-0074.html2021-07-08T00:00:00+00:002021-07-08T00:00:00+00:00Incorrect handling of embedded SVG and MathML leads to mutation XSS <article> <header> <h1> RUSTSEC-2021-0074 </h1> <span class="subtitle"><p>Incorrect handling of embedded SVG and MathML leads to mutation XSS</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/ammonia.html">ammonia</a> (<a href="https://crates.io/crates/ammonia">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </dd> <dt id="categories">Categories</dt> <dd> <ul> <li>format-injection</li> </ul> </dd> <dt id="details">Details</dt> <dd> <a href="https:&#x2f;&#x2f;github.com&#x2f;rust-ammonia&#x2f;ammonia&#x2f;pull&#x2f;142"> https:&#x2f;&#x2f;github.com&#x2f;rust-ammonia&#x2f;ammonia&#x2f;pull&#x2f;142 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=3.1.0</code></li> <li><code>&gt;=2.1.3, &lt;3.0.0</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>html</li> <li>xss</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>Affected versions of this crate did not account for namespace-related parsing differences between HTML, SVG, and MathML. Even if the <code>svg</code> and <code>math</code> elements are not allowed, the underlying HTML parser still treats them differently. Running cleanup without accounting for these differing namespaces resulted in an &quot;impossible&quot; DOM, which appeared &quot;safe&quot; when examining the DOM tree, but when serialized and deserialized, could be exploited to inject abitrary markup.</p> <p>To exploit this, the application using this library must allow a tag that is parsed as raw text in HTML. These <a href="https://github.com/servo/html5ever/blob/57eb334c0ffccc6f88d563419f0fbeef6ff5741c/html5ever/src/tree_builder/rules.rs">elements</a> are:</p> <ul> <li>title</li> <li>textarea</li> <li>xmp</li> <li>iframe</li> <li>noembed</li> <li>noframes</li> <li>plaintext</li> <li>noscript</li> <li>style</li> <li>script</li> </ul> <p>Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/ammonia/RUSTSEC-2021-0074.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/ammonia/RUSTSEC-2021-0074.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:&#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>RUSTSEC-2021-0079: Vulnerability in hyperhttps://rustsec.org/advisories/RUSTSEC-2021-0079.html2021-07-07T00:00:00+00:002021-07-07T00:00:00+00:00Integer overflow in `hyper`'s parsing of the `Transfer-Encoding` header leads to data loss <article> <header> <h1> RUSTSEC-2021-0079 </h1> <span class="subtitle"><p>Integer overflow in <code>hyper</code>'s parsing of the <code>Transfer-Encoding</code> header leads to data loss</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-07-07"> July 7, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/hyper.html">hyper</a> (<a href="https://crates.io/crates/hyper">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </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-32714">CVE-2021-32714</a> </li> <li> GHSA-5h46-h7hh-c6x9 </li> </ul> </dd> <dt id="details">Details</dt> <dd> <a href="https:&#x2f;&#x2f;github.com&#x2f;hyperium&#x2f;hyper&#x2f;security&#x2f;advisories&#x2f;GHSA-5h46-h7hh-c6x9"> https:&#x2f;&#x2f;github.com&#x2f;hyperium&#x2f;hyper&#x2f;security&#x2f;advisories&#x2f;GHSA-5h46-h7hh-c6x9 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=0.14.10</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>http</li> <li>parsing</li> <li>data loss</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>When decoding chunk sizes that are too large, <code>hyper</code>'s code would encounter an integer overflow. Depending on the situation, this could lead to data loss from an incorrect total size, or in rarer cases, a request smuggling attack.</p> <p>To be vulnerable, you must be using <code>hyper</code> for any HTTP/1 purpose, including as a client or server, and consumers must send requests or responses that specify a chunk size greater than 18 exabytes. For a possible request smuggling attack to be possible, any upstream proxies must accept a chunk size greater than 64 bits.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/hyper/RUSTSEC-2021-0079.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/hyper/RUSTSEC-2021-0079.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0078: Vulnerability in hyperhttps://rustsec.org/advisories/RUSTSEC-2021-0078.html2021-07-07T00:00:00+00:002021-07-07T00:00:00+00:00Lenient `hyper` header parsing of `Content-Length` could allow request smuggling <article> <header> <h1> RUSTSEC-2021-0078 </h1> <span class="subtitle"><p>Lenient <code>hyper</code> header parsing of <code>Content-Length</code> could allow request smuggling</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-07-07"> July 7, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/hyper.html">hyper</a> (<a href="https://crates.io/crates/hyper">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </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-32715">CVE-2021-32715</a> </li> <li> GHSA-f3pg-qwvg-p99c </li> </ul> </dd> <dt id="details">Details</dt> <dd> <a href="https:&#x2f;&#x2f;github.com&#x2f;hyperium&#x2f;hyper&#x2f;security&#x2f;advisories&#x2f;GHSA-f3pg-qwvg-p99c"> https:&#x2f;&#x2f;github.com&#x2f;hyperium&#x2f;hyper&#x2f;security&#x2f;advisories&#x2f;GHSA-f3pg-qwvg-p99c </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=0.14.10</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>parsing</li> <li>http</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p><code>hyper</code>'s HTTP header parser accepted, according to RFC 7230, illegal contents inside <code>Content-Length</code> headers. Due to this, upstream HTTP proxies that ignore the the header may still forward them along if it chooses to ignore the error.</p> <p>To be vulnerable, <code>hyper</code> must be used as an HTTP/1 server and using an HTTP proxy upstream that ignores the header's contents but still forwards it. Due to all the factors that must line up, an attack exploiting this vulnerablity is unlikely.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/hyper/RUSTSEC-2021-0078.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/hyper/RUSTSEC-2021-0078.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0072: Vulnerability in tokiohttps://rustsec.org/advisories/RUSTSEC-2021-0072.html2021-07-07T00:00:00+00:002021-07-07T00:00:00+00:00Task dropped in wrong thread when aborting `LocalSet` task <article> <header> <h1> RUSTSEC-2021-0072 </h1> <span class="subtitle"><p>Task dropped in wrong thread when aborting <code>LocalSet</code> task</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-07-07"> July 7, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/tokio.html">tokio</a> (<a href="https://crates.io/crates/tokio">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;tokio-rs&#x2f;tokio&#x2f;issues&#x2f;3929"> https:&#x2f;&#x2f;github.com&#x2f;tokio-rs&#x2f;tokio&#x2f;issues&#x2f;3929 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=1.5.1, &lt;1.6.0</code></li> <li><code>&gt;=1.6.3, &lt;1.7.0</code></li> <li><code>&gt;=1.7.2, &lt;1.8.0</code></li> <li><code>&gt;=1.8.1</code></li> </ul> </dd> <dt id="unaffected">Unaffected</dt> <dd> <ul> <li><code>&lt;0.3.0</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>race condition</li> <li>send</li> </ul> </dd> </dl> <dl> <dt>Affected Functions</dt> <dd>Version</dd> <dt><code>tokio::task::JoinHandle::abort</code></dt> <dd> <ul> <li><code>&lt;=1.8.0, &gt;=0.3.0</code></li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>When aborting a task with <code>JoinHandle::abort</code>, the future is dropped in the thread calling abort if the task is not currently being executed. This is incorrect for tasks spawned on a <code>LocalSet</code>.</p> <p>This can easily result in race conditions as many projects use <code>Rc</code> or <code>RefCell</code> in their Tokio tasks for better performance.</p> <p>See <a href="https://github.com/tokio-rs/tokio/issues/3929">tokio#3929</a> for more details.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/tokio/RUSTSEC-2021-0072.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/tokio/RUSTSEC-2021-0072.md">Edit Advisory</a></li> </ul> </article> \ No newline at end of file +RustSec Advisorieshttps://rustsec.org/feed.xml2021-08-14T00:00:00+00:00RustSechttps://rustsec.org/favicon.icoSecurity advisories filed against Rust cratesRUSTSEC-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:&#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>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:&#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>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:&#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>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:&#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>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:&#x2f;&#x2f;github.com&#x2f;tokio-rs&#x2f;prost&#x2f;issues&#x2f;438"> https:&#x2f;&#x2f;github.com&#x2f;tokio-rs&#x2f;prost&#x2f;issues&#x2f;438 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=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&lt;SystemTime&gt;</code></dt> <dd> <ul> <li><code>&lt;=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&lt;Timestamp&gt; for SystemTime</code> to <code>TryFrom&lt;Timestamp&gt; 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>RUSTSEC-2021-0074: Vulnerability in ammoniahttps://rustsec.org/advisories/RUSTSEC-2021-0074.html2021-07-08T00:00:00+00:002021-07-08T00:00:00+00:00Incorrect handling of embedded SVG and MathML leads to mutation XSS <article> <header> <h1> RUSTSEC-2021-0074 </h1> <span class="subtitle"><p>Incorrect handling of embedded SVG and MathML leads to mutation XSS</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/ammonia.html">ammonia</a> (<a href="https://crates.io/crates/ammonia">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </dd> <dt id="categories">Categories</dt> <dd> <ul> <li>format-injection</li> </ul> </dd> <dt id="details">Details</dt> <dd> <a href="https:&#x2f;&#x2f;github.com&#x2f;rust-ammonia&#x2f;ammonia&#x2f;pull&#x2f;142"> https:&#x2f;&#x2f;github.com&#x2f;rust-ammonia&#x2f;ammonia&#x2f;pull&#x2f;142 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=3.1.0</code></li> <li><code>&gt;=2.1.3, &lt;3.0.0</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>html</li> <li>xss</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>Affected versions of this crate did not account for namespace-related parsing differences between HTML, SVG, and MathML. Even if the <code>svg</code> and <code>math</code> elements are not allowed, the underlying HTML parser still treats them differently. Running cleanup without accounting for these differing namespaces resulted in an &quot;impossible&quot; DOM, which appeared &quot;safe&quot; when examining the DOM tree, but when serialized and deserialized, could be exploited to inject abitrary markup.</p> <p>To exploit this, the application using this library must allow a tag that is parsed as raw text in HTML. These <a href="https://github.com/servo/html5ever/blob/57eb334c0ffccc6f88d563419f0fbeef6ff5741c/html5ever/src/tree_builder/rules.rs">elements</a> are:</p> <ul> <li>title</li> <li>textarea</li> <li>xmp</li> <li>iframe</li> <li>noembed</li> <li>noframes</li> <li>plaintext</li> <li>noscript</li> <li>style</li> <li>script</li> </ul> <p>Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/ammonia/RUSTSEC-2021-0074.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/ammonia/RUSTSEC-2021-0074.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:&#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>RUSTSEC-2021-0079: Vulnerability in hyperhttps://rustsec.org/advisories/RUSTSEC-2021-0079.html2021-07-07T00:00:00+00:002021-07-07T00:00:00+00:00Integer overflow in `hyper`'s parsing of the `Transfer-Encoding` header leads to data loss <article> <header> <h1> RUSTSEC-2021-0079 </h1> <span class="subtitle"><p>Integer overflow in <code>hyper</code>'s parsing of the <code>Transfer-Encoding</code> header leads to data loss</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-07-07"> July 7, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/hyper.html">hyper</a> (<a href="https://crates.io/crates/hyper">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </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-32714">CVE-2021-32714</a> </li> <li> GHSA-5h46-h7hh-c6x9 </li> </ul> </dd> <dt id="details">Details</dt> <dd> <a href="https:&#x2f;&#x2f;github.com&#x2f;hyperium&#x2f;hyper&#x2f;security&#x2f;advisories&#x2f;GHSA-5h46-h7hh-c6x9"> https:&#x2f;&#x2f;github.com&#x2f;hyperium&#x2f;hyper&#x2f;security&#x2f;advisories&#x2f;GHSA-5h46-h7hh-c6x9 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=0.14.10</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>http</li> <li>parsing</li> <li>data loss</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>When decoding chunk sizes that are too large, <code>hyper</code>'s code would encounter an integer overflow. Depending on the situation, this could lead to data loss from an incorrect total size, or in rarer cases, a request smuggling attack.</p> <p>To be vulnerable, you must be using <code>hyper</code> for any HTTP/1 purpose, including as a client or server, and consumers must send requests or responses that specify a chunk size greater than 18 exabytes. For a possible request smuggling attack to be possible, any upstream proxies must accept a chunk size greater than 64 bits.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/hyper/RUSTSEC-2021-0079.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/hyper/RUSTSEC-2021-0079.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0078: Vulnerability in hyperhttps://rustsec.org/advisories/RUSTSEC-2021-0078.html2021-07-07T00:00:00+00:002021-07-07T00:00:00+00:00Lenient `hyper` header parsing of `Content-Length` could allow request smuggling <article> <header> <h1> RUSTSEC-2021-0078 </h1> <span class="subtitle"><p>Lenient <code>hyper</code> header parsing of <code>Content-Length</code> could allow request smuggling</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-07-07"> July 7, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/hyper.html">hyper</a> (<a href="https://crates.io/crates/hyper">crates.io</a>) </dd> <dt id="type">Type</dt> <dd> Vulnerability </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-32715">CVE-2021-32715</a> </li> <li> GHSA-f3pg-qwvg-p99c </li> </ul> </dd> <dt id="details">Details</dt> <dd> <a href="https:&#x2f;&#x2f;github.com&#x2f;hyperium&#x2f;hyper&#x2f;security&#x2f;advisories&#x2f;GHSA-f3pg-qwvg-p99c"> https:&#x2f;&#x2f;github.com&#x2f;hyperium&#x2f;hyper&#x2f;security&#x2f;advisories&#x2f;GHSA-f3pg-qwvg-p99c </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=0.14.10</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>parsing</li> <li>http</li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p><code>hyper</code>'s HTTP header parser accepted, according to RFC 7230, illegal contents inside <code>Content-Length</code> headers. Due to this, upstream HTTP proxies that ignore the header may still forward them along if it chooses to ignore the error.</p> <p>To be vulnerable, <code>hyper</code> must be used as an HTTP/1 server and using an HTTP proxy upstream that ignores the header's contents but still forwards it. Due to all the factors that must line up, an attack exploiting this vulnerability is unlikely.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/hyper/RUSTSEC-2021-0078.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/hyper/RUSTSEC-2021-0078.md">Edit Advisory</a></li> </ul> </article>RUSTSEC-2021-0072: Vulnerability in tokiohttps://rustsec.org/advisories/RUSTSEC-2021-0072.html2021-07-07T00:00:00+00:002021-07-07T00:00:00+00:00Task dropped in wrong thread when aborting `LocalSet` task <article> <header> <h1> RUSTSEC-2021-0072 </h1> <span class="subtitle"><p>Task dropped in wrong thread when aborting <code>LocalSet</code> task</p> </span> </header> <dl> <dt id="issued">Issued</dt> <dd> <time datetime="2021-07-07"> July 7, 2021 </time> </dd> <dt id="package">Package</dt> <dd> <a href="/packages/tokio.html">tokio</a> (<a href="https://crates.io/crates/tokio">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;tokio-rs&#x2f;tokio&#x2f;issues&#x2f;3929"> https:&#x2f;&#x2f;github.com&#x2f;tokio-rs&#x2f;tokio&#x2f;issues&#x2f;3929 </a> </dd> <dt id="patched">Patched</dt> <dd> <ul> <li><code>&gt;=1.5.1, &lt;1.6.0</code></li> <li><code>&gt;=1.6.3, &lt;1.7.0</code></li> <li><code>&gt;=1.7.2, &lt;1.8.0</code></li> <li><code>&gt;=1.8.1</code></li> </ul> </dd> <dt id="unaffected">Unaffected</dt> <dd> <ul> <li><code>&lt;0.3.0</code></li> </ul> </dd> <dt id="keywords">Keywords</dt> <dd> <ul> <li>race condition</li> <li>send</li> </ul> </dd> </dl> <dl> <dt>Affected Functions</dt> <dd>Version</dd> <dt><code>tokio::task::JoinHandle::abort</code></dt> <dd> <ul> <li><code>&lt;=1.8.0, &gt;=0.3.0</code></li> </ul> </dd> </dl> <h3 id="description">Description</h3> <p>When aborting a task with <code>JoinHandle::abort</code>, the future is dropped in the thread calling abort if the task is not currently being executed. This is incorrect for tasks spawned on a <code>LocalSet</code>.</p> <p>This can easily result in race conditions as many projects use <code>Rc</code> or <code>RefCell</code> in their Tokio tasks for better performance.</p> <p>See <a href="https://github.com/tokio-rs/tokio/issues/3929">tokio#3929</a> for more details.</p> <h3 id="more">More</h3> <ul> <li><a href="https://github.com/RustSec/advisory-db/commits/main/crates/tokio/RUSTSEC-2021-0072.md">Advisory History</a></li> <li><a href="https://github.com/RustSec/advisory-db/edit/main/crates/tokio/RUSTSEC-2021-0072.md">Edit Advisory</a></li> </ul> </article> \ No newline at end of file diff --git a/packages/failure.html b/packages/failure.html index f35212f83..37e817ba6 100644 --- a/packages/failure.html +++ b/packages/failure.html @@ -76,7 +76,7 @@ RUSTSEC-2019-0036: Unsoundness in failure -

    Type confusion if private_get_type_id is overriden

    +

    Type confusion if private_get_type_id is overridden

    diff --git a/packages/trust-dns-server.html b/packages/trust-dns-server.html index 77c620583..62ef66abb 100644 --- a/packages/trust-dns-server.html +++ b/packages/trust-dns-server.html @@ -59,7 +59,7 @@ RUSTSEC-2020-0001: Vulnerability in trust-dns-server -

    Stack overflow when resolving addional records from MX or SRV null targets

    +

    Stack overflow when resolving additional records from MX or SRV null targets