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.
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 @@Send marker trait to objects that cannot be safely sent between threadsThis 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 @@If during the first dereference of Lazy the initialization function panics,
-subsequent derefernces will execute std::hints::unreachable_unchecked.
std::hints::unreachable_unchecked.
Applications with panic = "abort" are not affected, as there will be no
subsequent dereferences.
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 @@
-
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 @@ -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.
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.
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 Advisories https://rustsec.org/feed.xml 2021-08-14T00:00:00+00:00 RustSec https://rustsec.org/favicon.ico Security advisories filed against Rust crates RUSTSEC-2021-0082: Unsoundness in vec-const https://rustsec.org/advisories/RUSTSEC-2021-0082.html 2021-08-14T00:00:00+00:00 2021-08-14T00:00:00+00:00 vec-const attempts to construct a Vec from a pointer to a const slice <article>
<header>
<h1>
RUSTSEC-2021-0082
</h1>
<span class="subtitle"><p>vec-const attempts to construct a Vec from a pointer to a const slice</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-08-14">
August 14, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/vec-const.html">vec-const</a>
(<a href="https://crates.io/crates/vec-const">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Unsound
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>memory-corruption</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/Eolu/vec-const/issues/1#issuecomment-898908241">
https://github.com/Eolu/vec-const/issues/1#issuecomment-898908241
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>memory-safety</li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>This crate claims to construct a const <code>Vec</code> with nonzero length and capacity, but that cannot be done because such a <code>Vec</code> requires a pointer from an allocator.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/vec-const/RUSTSEC-2021-0082.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/vec-const/RUSTSEC-2021-0082.md">Edit
Advisory</a></li>
</ul>
</article> RUSTSEC-2021-0077: Vulnerability in better-macro https://rustsec.org/advisories/RUSTSEC-2021-0077.html 2021-07-22T00:00:00+00:00 2021-07-22T00:00:00+00:00 `better-macro` has deliberate RCE to prove a point <article>
<header>
<h1>
RUSTSEC-2021-0077
</h1>
<span class="subtitle"><p><code>better-macro</code> has deliberate RCE to prove a point</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-22">
July 22, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/better-macro.html">better-macro</a>
(<a href="https://crates.io/crates/better-macro">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>code-execution</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/raycar5/better-macro/blob/24ff1702397b9c19bbfa4c660e2316cd77d3b900/src/lib.rs#L36-L38">
https://github.com/raycar5/better-macro/blob/24ff1702397b9c19bbfa4c660e2316cd77d3b900/src/lib.rs#L36-L38
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>rce</li>
<li>proc-macro</li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>better_macro::println</code></dt>
<dd>
<ul>
<li><code>>1.0.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p><a href="https://crates.io/crates/better-macro">better-macro</a> is a fake crate which is
"Proving A Point" that proc-macros can run arbitrary code. This a particularly
novel or interesting observation.</p>
<p>It currently opens <code>https://github.com/raycar5/better-macro/blob/master/doc/hi.md</code>
which doesn't appear to have any malicious content, but there's no guarantee that
will remain the case.</p>
<p>This crate has no useful functionality, and should not be used.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/better-macro/RUSTSEC-2021-0077.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/better-macro/RUSTSEC-2021-0077.md">Edit
Advisory</a></li>
</ul>
</article> RUSTSEC-2021-0080: Vulnerability in tar https://rustsec.org/advisories/RUSTSEC-2021-0080.html 2021-07-19T00:00:00+00:00 2021-07-19T00:00:00+00:00 Links in archive can create arbitrary directories <article>
<header>
<h1>
RUSTSEC-2021-0080
</h1>
<span class="subtitle"><p>Links in archive can create arbitrary directories</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-19">
July 19, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/tar.html">tar</a>
(<a href="https://crates.io/crates/tar">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/alexcrichton/tar-rs/issues/238">
https://github.com/alexcrichton/tar-rs/issues/238
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.4.36</code></li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>tar::Archive::unpack</code></dt>
<dd>
<ul>
<li><code><0.4.36</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>When unpacking a tarball that contains a symlink the <code>tar</code> crate may create
directories outside of the directory it's supposed to unpack into.</p>
<p>The function errors when it's trying to create a file, but the folders are
already created at this point.</p>
<pre><code class="language-rust">use std::{io, io::Result};
use tar::{Archive, Builder, EntryType, Header};
fn main() -> Result<()> {
let mut buf = Vec::new();
{
let mut builder = Builder::new(&mut buf);
// symlink: parent -> ..
let mut header = Header::new_gnu();
header.set_path("symlink")?;
header.set_link_name("..")?;
header.set_entry_type(EntryType::Symlink);
header.set_size(0);
header.set_cksum();
builder.append(&header, io::empty())?;
// file: symlink/exploit/foo/bar
let mut header = Header::new_gnu();
header.set_path("symlink/exploit/foo/bar")?;
header.set_size(0);
header.set_cksum();
builder.append(&header, io::empty())?;
builder.finish()?;
};
Archive::new(&*buf).unpack("demo")
}
</code></pre>
<p>This has been fixed in https://github.com/alexcrichton/tar-rs/pull/259 and is
published as <code>tar</code> 0.4.36. Thanks to Martin Michaelis (@mgjm) for discovering
and reporting this, and Nikhil Benesch (@benesch) for the fix!</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/tar/RUSTSEC-2021-0080.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/tar/RUSTSEC-2021-0080.md">Edit
Advisory</a></li>
</ul>
</article> RUSTSEC-2021-0076: Vulnerability in libsecp256k1 https://rustsec.org/advisories/RUSTSEC-2021-0076.html 2021-07-13T00:00:00+00:00 2021-07-13T00:00:00+00:00 libsecp256k1 allows overflowing signatures <article>
<header>
<h1>
RUSTSEC-2021-0076
</h1>
<span class="subtitle"><p>libsecp256k1 allows overflowing signatures</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-13">
July 13, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/libsecp256k1.html">libsecp256k1</a>
(<a href="https://crates.io/crates/libsecp256k1">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>crypto-failure</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/paritytech/libsecp256k1/pull/67">
https://github.com/paritytech/libsecp256k1/pull/67
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.5.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>libsecp256k1 accepts signatures whose R or S parameter is larger than the
secp256k1 curve order, which differs from other implementations. This could
lead to invalid signatures being verified.</p>
<p>The error is resolved in 0.5.0 by adding a <code>check_overflow</code> flag.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/libsecp256k1/RUSTSEC-2021-0076.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/libsecp256k1/RUSTSEC-2021-0076.md">Edit
Advisory</a></li>
</ul>
</article> RUSTSEC-2021-0073: Vulnerability in prost-types https://rustsec.org/advisories/RUSTSEC-2021-0073.html 2021-07-08T00:00:00+00:00 2021-07-08T00:00:00+00:00 Conversion from `prost_types::Timestamp` to `SystemTime` can cause an overflow and panic <article>
<header>
<h1>
RUSTSEC-2021-0073
</h1>
<span class="subtitle"><p>Conversion from <code>prost_types::Timestamp</code> to <code>SystemTime</code> can cause an overflow and panic</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-08">
July 8, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/prost-types.html">prost-types</a>
(<a href="https://crates.io/crates/prost-types">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>denial-of-service</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/tokio-rs/prost/issues/438">
https://github.com/tokio-rs/prost/issues/438
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.8.0</code></li>
</ul>
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>denial-of-service</li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>prost_types::Timestamp::Into<SystemTime></code></dt>
<dd>
<ul>
<li><code><=0.7.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>Affected versions of this crate contained a bug in which untrusted input could cause an overflow and panic when converting a <code>Timestamp</code> to <code>SystemTime</code>.</p>
<p>It is recommended to upgrade to <code>prost-types</code> v0.8 and switch the usage of <code>From<Timestamp> for SystemTime</code> to <code>TryFrom<Timestamp> for SystemTime</code>.</p>
<p>See <a href="https://github.com/tokio-rs/prost/issues/438">#438</a> for more information.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/prost-types/RUSTSEC-2021-0073.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/prost-types/RUSTSEC-2021-0073.md">Edit
Advisory</a></li>
</ul>
</article> RUSTSEC-2021-0074: Vulnerability in ammonia https://rustsec.org/advisories/RUSTSEC-2021-0074.html 2021-07-08T00:00:00+00:00 2021-07-08T00:00:00+00:00 Incorrect 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://github.com/rust-ammonia/ammonia/pull/142">
https://github.com/rust-ammonia/ammonia/pull/142
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=3.1.0</code></li>
<li><code>>=2.1.3, <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 "impossible"
DOM, which appeared "safe" 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-std https://rustsec.org/advisories/RUSTSEC-2021-0075.html 2021-07-08T00:00:00+00:00 2021-07-08T00:00:00+00:00 Flaw in `FieldVar::mul_by_inverse` allows unsound R1CS constraint systems <article>
<header>
<h1>
RUSTSEC-2021-0075
</h1>
<span class="subtitle"><p>Flaw in <code>FieldVar::mul_by_inverse</code> allows unsound R1CS constraint systems</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-08">
July 8, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/ark-r1cs-std.html">ark-r1cs-std</a>
(<a href="https://crates.io/crates/ark-r1cs-std">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>crypto-failure</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/arkworks-rs/r1cs-std/pull/70">
https://github.com/arkworks-rs/r1cs-std/pull/70
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.3.1</code></li>
</ul>
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>r1cs</li>
<li>zksnark</li>
<li>arkworks</li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>ark_r1cs_std::FieldVar::mul_by_inverse</code></dt>
<dd>
<ul>
<li><code><0.3.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>Versions <code>0.2.0</code> to <code>0.3.0</code> of ark-r1cs-std did not enforce any constraints in the <code>FieldVar::mul_by_inverse</code> method, allowing a malicious prover to produce an unsound proof that passes all verifier checks.
This method was used primarily in scalar multiplication for <a href="https://docs.rs/ark-r1cs-std/0.3.0/ark_r1cs_std/groups/curves/short_weierstrass/struct.ProjectiveVar.html"><code>short_weierstrass::ProjectiveVar</code></a>.</p>
<p>This bug was fixed in commit <code>47ddbaa</code>, and was released as part of version <code>0.3.1</code> on <code>crates.io</code>.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/ark-r1cs-std/RUSTSEC-2021-0075.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/ark-r1cs-std/RUSTSEC-2021-0075.md">Edit
Advisory</a></li>
</ul>
</article> RUSTSEC-2021-0079: Vulnerability in hyper https://rustsec.org/advisories/RUSTSEC-2021-0079.html 2021-07-07T00:00:00+00:00 2021-07-07T00:00:00+00:00 Integer 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://cve.mitre.org/cgi-bin/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://github.com/hyperium/hyper/security/advisories/GHSA-5h46-h7hh-c6x9">
https://github.com/hyperium/hyper/security/advisories/GHSA-5h46-h7hh-c6x9
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=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 hyper https://rustsec.org/advisories/RUSTSEC-2021-0078.html 2021-07-07T00:00:00+00:00 2021-07-07T00:00:00+00:00 Lenient `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://cve.mitre.org/cgi-bin/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://github.com/hyperium/hyper/security/advisories/GHSA-f3pg-qwvg-p99c">
https://github.com/hyperium/hyper/security/advisories/GHSA-f3pg-qwvg-p99c
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=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 tokio https://rustsec.org/advisories/RUSTSEC-2021-0072.html 2021-07-07T00:00:00+00:00 2021-07-07T00:00:00+00:00 Task 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://github.com/tokio-rs/tokio/issues/3929">
https://github.com/tokio-rs/tokio/issues/3929
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=1.5.1, <1.6.0</code></li>
<li><code>>=1.6.3, <1.7.0</code></li>
<li><code>>=1.7.2, <1.8.0</code></li>
<li><code>>=1.8.1</code></li>
</ul>
</dd>
<dt id="unaffected">Unaffected</dt>
<dd>
<ul>
<li><code><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><=1.8.0, >=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 Advisories https://rustsec.org/feed.xml 2021-08-14T00:00:00+00:00 RustSec https://rustsec.org/favicon.ico Security advisories filed against Rust crates RUSTSEC-2021-0082: Unsoundness in vec-const https://rustsec.org/advisories/RUSTSEC-2021-0082.html 2021-08-14T00:00:00+00:00 2021-08-14T00:00:00+00:00 vec-const attempts to construct a Vec from a pointer to a const slice <article>
<header>
<h1>
RUSTSEC-2021-0082
</h1>
<span class="subtitle"><p>vec-const attempts to construct a Vec from a pointer to a const slice</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-08-14">
August 14, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/vec-const.html">vec-const</a>
(<a href="https://crates.io/crates/vec-const">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Unsound
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>memory-corruption</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/Eolu/vec-const/issues/1#issuecomment-898908241">
https://github.com/Eolu/vec-const/issues/1#issuecomment-898908241
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>memory-safety</li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>This crate claims to construct a const <code>Vec</code> with nonzero length and capacity, but that cannot be done because such a <code>Vec</code> requires a pointer from an allocator.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/vec-const/RUSTSEC-2021-0082.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/vec-const/RUSTSEC-2021-0082.md">Edit
Advisory</a></li>
</ul>
</article> RUSTSEC-2021-0077: Vulnerability in better-macro https://rustsec.org/advisories/RUSTSEC-2021-0077.html 2021-07-22T00:00:00+00:00 2021-07-22T00:00:00+00:00 `better-macro` has deliberate RCE to prove a point <article>
<header>
<h1>
RUSTSEC-2021-0077
</h1>
<span class="subtitle"><p><code>better-macro</code> has deliberate RCE to prove a point</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-22">
July 22, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/better-macro.html">better-macro</a>
(<a href="https://crates.io/crates/better-macro">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>code-execution</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/raycar5/better-macro/blob/24ff1702397b9c19bbfa4c660e2316cd77d3b900/src/lib.rs#L36-L38">
https://github.com/raycar5/better-macro/blob/24ff1702397b9c19bbfa4c660e2316cd77d3b900/src/lib.rs#L36-L38
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
no patched versions
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>rce</li>
<li>proc-macro</li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>better_macro::println</code></dt>
<dd>
<ul>
<li><code>>1.0.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p><a href="https://crates.io/crates/better-macro">better-macro</a> is a fake crate which is
"Proving A Point" that proc-macros can run arbitrary code. This a particularly
novel or interesting observation.</p>
<p>It currently opens <code>https://github.com/raycar5/better-macro/blob/master/doc/hi.md</code>
which doesn't appear to have any malicious content, but there's no guarantee that
will remain the case.</p>
<p>This crate has no useful functionality, and should not be used.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/better-macro/RUSTSEC-2021-0077.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/better-macro/RUSTSEC-2021-0077.md">Edit
Advisory</a></li>
</ul>
</article> RUSTSEC-2021-0080: Vulnerability in tar https://rustsec.org/advisories/RUSTSEC-2021-0080.html 2021-07-19T00:00:00+00:00 2021-07-19T00:00:00+00:00 Links in archive can create arbitrary directories <article>
<header>
<h1>
RUSTSEC-2021-0080
</h1>
<span class="subtitle"><p>Links in archive can create arbitrary directories</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-19">
July 19, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/tar.html">tar</a>
(<a href="https://crates.io/crates/tar">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/alexcrichton/tar-rs/issues/238">
https://github.com/alexcrichton/tar-rs/issues/238
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.4.36</code></li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>tar::Archive::unpack</code></dt>
<dd>
<ul>
<li><code><0.4.36</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>When unpacking a tarball that contains a symlink the <code>tar</code> crate may create
directories outside of the directory it's supposed to unpack into.</p>
<p>The function errors when it's trying to create a file, but the folders are
already created at this point.</p>
<pre><code class="language-rust">use std::{io, io::Result};
use tar::{Archive, Builder, EntryType, Header};
fn main() -> Result<()> {
let mut buf = Vec::new();
{
let mut builder = Builder::new(&mut buf);
// symlink: parent -> ..
let mut header = Header::new_gnu();
header.set_path("symlink")?;
header.set_link_name("..")?;
header.set_entry_type(EntryType::Symlink);
header.set_size(0);
header.set_cksum();
builder.append(&header, io::empty())?;
// file: symlink/exploit/foo/bar
let mut header = Header::new_gnu();
header.set_path("symlink/exploit/foo/bar")?;
header.set_size(0);
header.set_cksum();
builder.append(&header, io::empty())?;
builder.finish()?;
};
Archive::new(&*buf).unpack("demo")
}
</code></pre>
<p>This has been fixed in https://github.com/alexcrichton/tar-rs/pull/259 and is
published as <code>tar</code> 0.4.36. Thanks to Martin Michaelis (@mgjm) for discovering
and reporting this, and Nikhil Benesch (@benesch) for the fix!</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/tar/RUSTSEC-2021-0080.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/tar/RUSTSEC-2021-0080.md">Edit
Advisory</a></li>
</ul>
</article> RUSTSEC-2021-0076: Vulnerability in libsecp256k1 https://rustsec.org/advisories/RUSTSEC-2021-0076.html 2021-07-13T00:00:00+00:00 2021-07-13T00:00:00+00:00 libsecp256k1 allows overflowing signatures <article>
<header>
<h1>
RUSTSEC-2021-0076
</h1>
<span class="subtitle"><p>libsecp256k1 allows overflowing signatures</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-13">
July 13, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/libsecp256k1.html">libsecp256k1</a>
(<a href="https://crates.io/crates/libsecp256k1">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>crypto-failure</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/paritytech/libsecp256k1/pull/67">
https://github.com/paritytech/libsecp256k1/pull/67
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.5.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>libsecp256k1 accepts signatures whose R or S parameter is larger than the
secp256k1 curve order, which differs from other implementations. This could
lead to invalid signatures being verified.</p>
<p>The error is resolved in 0.5.0 by adding a <code>check_overflow</code> flag.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/libsecp256k1/RUSTSEC-2021-0076.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/libsecp256k1/RUSTSEC-2021-0076.md">Edit
Advisory</a></li>
</ul>
</article> RUSTSEC-2021-0073: Vulnerability in prost-types https://rustsec.org/advisories/RUSTSEC-2021-0073.html 2021-07-08T00:00:00+00:00 2021-07-08T00:00:00+00:00 Conversion from `prost_types::Timestamp` to `SystemTime` can cause an overflow and panic <article>
<header>
<h1>
RUSTSEC-2021-0073
</h1>
<span class="subtitle"><p>Conversion from <code>prost_types::Timestamp</code> to <code>SystemTime</code> can cause an overflow and panic</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-08">
July 8, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/prost-types.html">prost-types</a>
(<a href="https://crates.io/crates/prost-types">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>denial-of-service</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/tokio-rs/prost/issues/438">
https://github.com/tokio-rs/prost/issues/438
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.8.0</code></li>
</ul>
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>denial-of-service</li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>prost_types::Timestamp::Into<SystemTime></code></dt>
<dd>
<ul>
<li><code><=0.7.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>Affected versions of this crate contained a bug in which untrusted input could cause an overflow and panic when converting a <code>Timestamp</code> to <code>SystemTime</code>.</p>
<p>It is recommended to upgrade to <code>prost-types</code> v0.8 and switch the usage of <code>From<Timestamp> for SystemTime</code> to <code>TryFrom<Timestamp> for SystemTime</code>.</p>
<p>See <a href="https://github.com/tokio-rs/prost/issues/438">#438</a> for more information.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/prost-types/RUSTSEC-2021-0073.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/prost-types/RUSTSEC-2021-0073.md">Edit
Advisory</a></li>
</ul>
</article> RUSTSEC-2021-0074: Vulnerability in ammonia https://rustsec.org/advisories/RUSTSEC-2021-0074.html 2021-07-08T00:00:00+00:00 2021-07-08T00:00:00+00:00 Incorrect 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://github.com/rust-ammonia/ammonia/pull/142">
https://github.com/rust-ammonia/ammonia/pull/142
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=3.1.0</code></li>
<li><code>>=2.1.3, <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 "impossible"
DOM, which appeared "safe" 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-std https://rustsec.org/advisories/RUSTSEC-2021-0075.html 2021-07-08T00:00:00+00:00 2021-07-08T00:00:00+00:00 Flaw in `FieldVar::mul_by_inverse` allows unsound R1CS constraint systems <article>
<header>
<h1>
RUSTSEC-2021-0075
</h1>
<span class="subtitle"><p>Flaw in <code>FieldVar::mul_by_inverse</code> allows unsound R1CS constraint systems</p>
</span>
</header>
<dl>
<dt id="issued">Issued</dt>
<dd>
<time datetime="2021-07-08">
July 8, 2021
</time>
</dd>
<dt id="package">Package</dt>
<dd>
<a href="/packages/ark-r1cs-std.html">ark-r1cs-std</a>
(<a href="https://crates.io/crates/ark-r1cs-std">crates.io</a>)
</dd>
<dt id="type">Type</dt>
<dd>
Vulnerability
</dd>
<dt id="categories">Categories</dt>
<dd>
<ul>
<li>crypto-failure</li>
</ul>
</dd>
<dt id="details">Details</dt>
<dd>
<a href="https://github.com/arkworks-rs/r1cs-std/pull/70">
https://github.com/arkworks-rs/r1cs-std/pull/70
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=0.3.1</code></li>
</ul>
</dd>
<dt id="keywords">Keywords</dt>
<dd>
<ul>
<li>r1cs</li>
<li>zksnark</li>
<li>arkworks</li>
</ul>
</dd>
</dl>
<dl>
<dt>Affected Functions</dt>
<dd>Version</dd>
<dt><code>ark_r1cs_std::FieldVar::mul_by_inverse</code></dt>
<dd>
<ul>
<li><code><0.3.0</code></li>
</ul>
</dd>
</dl>
<h3 id="description">Description</h3>
<p>Versions <code>0.2.0</code> to <code>0.3.0</code> of ark-r1cs-std did not enforce any constraints in the <code>FieldVar::mul_by_inverse</code> method, allowing a malicious prover to produce an unsound proof that passes all verifier checks.
This method was used primarily in scalar multiplication for <a href="https://docs.rs/ark-r1cs-std/0.3.0/ark_r1cs_std/groups/curves/short_weierstrass/struct.ProjectiveVar.html"><code>short_weierstrass::ProjectiveVar</code></a>.</p>
<p>This bug was fixed in commit <code>47ddbaa</code>, and was released as part of version <code>0.3.1</code> on <code>crates.io</code>.</p>
<h3 id="more">More</h3>
<ul>
<li><a
href="https://github.com/RustSec/advisory-db/commits/main/crates/ark-r1cs-std/RUSTSEC-2021-0075.md">Advisory
History</a></li>
<li><a
href="https://github.com/RustSec/advisory-db/edit/main/crates/ark-r1cs-std/RUSTSEC-2021-0075.md">Edit
Advisory</a></li>
</ul>
</article> RUSTSEC-2021-0079: Vulnerability in hyper https://rustsec.org/advisories/RUSTSEC-2021-0079.html 2021-07-07T00:00:00+00:00 2021-07-07T00:00:00+00:00 Integer 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://cve.mitre.org/cgi-bin/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://github.com/hyperium/hyper/security/advisories/GHSA-5h46-h7hh-c6x9">
https://github.com/hyperium/hyper/security/advisories/GHSA-5h46-h7hh-c6x9
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=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 hyper https://rustsec.org/advisories/RUSTSEC-2021-0078.html 2021-07-07T00:00:00+00:00 2021-07-07T00:00:00+00:00 Lenient `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://cve.mitre.org/cgi-bin/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://github.com/hyperium/hyper/security/advisories/GHSA-f3pg-qwvg-p99c">
https://github.com/hyperium/hyper/security/advisories/GHSA-f3pg-qwvg-p99c
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=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 tokio https://rustsec.org/advisories/RUSTSEC-2021-0072.html 2021-07-07T00:00:00+00:00 2021-07-07T00:00:00+00:00 Task 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://github.com/tokio-rs/tokio/issues/3929">
https://github.com/tokio-rs/tokio/issues/3929
</a>
</dd>
<dt id="patched">Patched</dt>
<dd>
<ul>
<li><code>>=1.5.1, <1.6.0</code></li>
<li><code>>=1.6.3, <1.7.0</code></li>
<li><code>>=1.7.2, <1.8.0</code></li>
<li><code>>=1.8.1</code></li>
</ul>
</dd>
<dt id="unaffected">Unaffected</dt>
<dd>
<ul>
<li><code><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><=1.8.0, >=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