Files
advisory-db/feed.xml
T
2021-08-22 01:18:26 +00:00

1 line
48 KiB
XML

<feed xmlns="http://www.w3.org/2005/Atom"><title>RustSec Advisories</title><id>https://rustsec.org/feed.xml</id><updated>2021-08-14T00:00:00+00:00</updated><author><name>RustSec</name></author><icon>https://rustsec.org/favicon.ico</icon><link href="https://rustsec.org/feed.xml" rel="self" type="application/atom+xml"/><link href="https://rustsec.org/" rel="alternate" type="text/html"/><subtitle>Security advisories filed against Rust crates</subtitle><entry><title>RUSTSEC-2021-0082: Unsoundness in vec-const</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0082.html</id><updated>2021-08-14T00:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0082.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0082: Unsoundness in vec-const"/><published>2021-08-14T00:00:00+00:00</published><summary>vec-const attempts to construct a Vec from a pointer to a const slice</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0082&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;vec-const attempts to construct a Vec from a pointer to a const slice&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-08-14&quot;&gt;&#xA; August 14, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/vec-const.html&quot;&gt;vec-const&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/vec-const&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Unsound&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;memory-corruption&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;Eolu&amp;#x2f;vec-const&amp;#x2f;issues&amp;#x2f;1#issuecomment-898908241&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;Eolu&amp;#x2f;vec-const&amp;#x2f;issues&amp;#x2f;1#issuecomment-898908241&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; no patched versions&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;memory-safety&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;This crate claims to construct a const &lt;code&gt;Vec&lt;/code&gt; with nonzero length and capacity, but that cannot be done because such a &lt;code&gt;Vec&lt;/code&gt; requires a pointer from an allocator.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/vec-const/RUSTSEC-2021-0082.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/vec-const/RUSTSEC-2021-0082.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0077: Vulnerability in better-macro</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0077.html</id><updated>2021-07-22T00:00:00+00:00</updated><category term="code-execution"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0077.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0077: Vulnerability in better-macro"/><published>2021-07-22T00:00:00+00:00</published><summary>`better-macro` has deliberate RCE to prove a point</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0077&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;&lt;code&gt;better-macro&lt;/code&gt; has deliberate RCE to prove a point&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-07-22&quot;&gt;&#xA; July 22, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/better-macro.html&quot;&gt;better-macro&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/better-macro&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;code-execution&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;raycar5&amp;#x2f;better-macro&amp;#x2f;blob&amp;#x2f;24ff1702397b9c19bbfa4c660e2316cd77d3b900&amp;#x2f;src&amp;#x2f;lib.rs#L36-L38&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;raycar5&amp;#x2f;better-macro&amp;#x2f;blob&amp;#x2f;24ff1702397b9c19bbfa4c660e2316cd77d3b900&amp;#x2f;src&amp;#x2f;lib.rs#L36-L38&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; no patched versions&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;rce&lt;/li&gt;&#xA; &#xA; &lt;li&gt;proc-macro&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA; &#xA; &#xA; &lt;dl&gt;&#xA; &lt;dt&gt;Affected Functions&lt;/dt&gt;&#xA; &lt;dd&gt;Version&lt;/dd&gt;&#xA; &#xA; &lt;dt&gt;&lt;code&gt;better_macro::println&lt;/code&gt;&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;1.0.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA; &lt;/dl&gt;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;&lt;a href=&quot;https://crates.io/crates/better-macro&quot;&gt;better-macro&lt;/a&gt; is a fake crate which is&#xA;&amp;quot;Proving A Point&amp;quot; that proc-macros can run arbitrary code. This a particularly&#xA;novel or interesting observation.&lt;/p&gt;&#xA;&lt;p&gt;It currently opens &lt;code&gt;https://github.com/raycar5/better-macro/blob/master/doc/hi.md&lt;/code&gt;&#xA;which doesn&apos;t appear to have any malicious content, but there&apos;s no guarantee that&#xA;will remain the case.&lt;/p&gt;&#xA;&lt;p&gt;This crate has no useful functionality, and should not be used.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/better-macro/RUSTSEC-2021-0077.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/better-macro/RUSTSEC-2021-0077.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0080: Vulnerability in tar</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0080.html</id><updated>2021-07-19T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0080.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0080: Vulnerability in tar"/><published>2021-07-19T00:00:00+00:00</published><summary>Links in archive can create arbitrary directories</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0080&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Links in archive can create arbitrary directories&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-07-19&quot;&gt;&#xA; July 19, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/tar.html&quot;&gt;tar&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/tar&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;alexcrichton&amp;#x2f;tar-rs&amp;#x2f;issues&amp;#x2f;238&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;alexcrichton&amp;#x2f;tar-rs&amp;#x2f;issues&amp;#x2f;238&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=0.4.36&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA; &#xA; &#xA; &lt;dl&gt;&#xA; &lt;dt&gt;Affected Functions&lt;/dt&gt;&#xA; &lt;dd&gt;Version&lt;/dd&gt;&#xA; &#xA; &lt;dt&gt;&lt;code&gt;tar::Archive::unpack&lt;/code&gt;&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;lt;0.4.36&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA; &lt;/dl&gt;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;When unpacking a tarball that contains a symlink the &lt;code&gt;tar&lt;/code&gt; crate may create&#xA;directories outside of the directory it&apos;s supposed to unpack into.&lt;/p&gt;&#xA;&lt;p&gt;The function errors when it&apos;s trying to create a file, but the folders are&#xA;already created at this point.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code class=&quot;language-rust&quot;&gt;use std::{io, io::Result};&#xA;use tar::{Archive, Builder, EntryType, Header};&#xA;&#xA;fn main() -&amp;gt; Result&amp;lt;()&amp;gt; {&#xA; let mut buf = Vec::new();&#xA;&#xA; {&#xA; let mut builder = Builder::new(&amp;amp;mut buf);&#xA;&#xA; // symlink: parent -&amp;gt; ..&#xA; let mut header = Header::new_gnu();&#xA; header.set_path(&amp;quot;symlink&amp;quot;)?;&#xA; header.set_link_name(&amp;quot;..&amp;quot;)?;&#xA; header.set_entry_type(EntryType::Symlink);&#xA; header.set_size(0);&#xA; header.set_cksum();&#xA; builder.append(&amp;amp;header, io::empty())?;&#xA;&#xA; // file: symlink/exploit/foo/bar&#xA; let mut header = Header::new_gnu();&#xA; header.set_path(&amp;quot;symlink/exploit/foo/bar&amp;quot;)?;&#xA; header.set_size(0);&#xA; header.set_cksum();&#xA; builder.append(&amp;amp;header, io::empty())?;&#xA;&#xA; builder.finish()?;&#xA; };&#xA;&#xA; Archive::new(&amp;amp;*buf).unpack(&amp;quot;demo&amp;quot;)&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This has been fixed in https://github.com/alexcrichton/tar-rs/pull/259 and is&#xA;published as &lt;code&gt;tar&lt;/code&gt; 0.4.36. Thanks to Martin Michaelis (@mgjm) for discovering&#xA;and reporting this, and Nikhil Benesch (@benesch) for the fix!&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/tar/RUSTSEC-2021-0080.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/tar/RUSTSEC-2021-0080.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0076: Vulnerability in libsecp256k1</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0076.html</id><updated>2021-07-13T00:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0076.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0076: Vulnerability in libsecp256k1"/><published>2021-07-13T00:00:00+00:00</published><summary>libsecp256k1 allows overflowing signatures</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0076&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;libsecp256k1 allows overflowing signatures&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-07-13&quot;&gt;&#xA; July 13, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/libsecp256k1.html&quot;&gt;libsecp256k1&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/libsecp256k1&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;crypto-failure&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;paritytech&amp;#x2f;libsecp256k1&amp;#x2f;pull&amp;#x2f;67&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;paritytech&amp;#x2f;libsecp256k1&amp;#x2f;pull&amp;#x2f;67&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=0.5.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;libsecp256k1 accepts signatures whose R or S parameter is larger than the&#xA;secp256k1 curve order, which differs from other implementations. This could&#xA;lead to invalid signatures being verified.&lt;/p&gt;&#xA;&lt;p&gt;The error is resolved in 0.5.0 by adding a &lt;code&gt;check_overflow&lt;/code&gt; flag.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/libsecp256k1/RUSTSEC-2021-0076.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/libsecp256k1/RUSTSEC-2021-0076.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0073: Vulnerability in prost-types</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0073.html</id><updated>2021-07-08T00:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0073.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0073: Vulnerability in prost-types"/><published>2021-07-08T00:00:00+00:00</published><summary>Conversion from `prost_types::Timestamp` to `SystemTime` can cause an overflow and panic</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0073&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Conversion from &lt;code&gt;prost_types::Timestamp&lt;/code&gt; to &lt;code&gt;SystemTime&lt;/code&gt; can cause an overflow and panic&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-07-08&quot;&gt;&#xA; July 8, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/prost-types.html&quot;&gt;prost-types&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/prost-types&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;denial-of-service&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;tokio-rs&amp;#x2f;prost&amp;#x2f;issues&amp;#x2f;438&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;tokio-rs&amp;#x2f;prost&amp;#x2f;issues&amp;#x2f;438&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=0.8.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;denial-of-service&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA; &#xA; &#xA; &lt;dl&gt;&#xA; &lt;dt&gt;Affected Functions&lt;/dt&gt;&#xA; &lt;dd&gt;Version&lt;/dd&gt;&#xA; &#xA; &lt;dt&gt;&lt;code&gt;prost_types::Timestamp::Into&amp;lt;SystemTime&amp;gt;&lt;/code&gt;&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;lt;=0.7.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA; &lt;/dl&gt;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;Affected versions of this crate contained a bug in which untrusted input could cause an overflow and panic when converting a &lt;code&gt;Timestamp&lt;/code&gt; to &lt;code&gt;SystemTime&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It is recommended to upgrade to &lt;code&gt;prost-types&lt;/code&gt; v0.8 and switch the usage of &lt;code&gt;From&amp;lt;Timestamp&amp;gt; for SystemTime&lt;/code&gt; to &lt;code&gt;TryFrom&amp;lt;Timestamp&amp;gt; for SystemTime&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;See &lt;a href=&quot;https://github.com/tokio-rs/prost/issues/438&quot;&gt;#438&lt;/a&gt; for more information.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/prost-types/RUSTSEC-2021-0073.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/prost-types/RUSTSEC-2021-0073.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0074: Vulnerability in ammonia</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0074.html</id><updated>2021-07-08T00:00:00+00:00</updated><category term="format-injection"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0074.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0074: Vulnerability in ammonia"/><published>2021-07-08T00:00:00+00:00</published><summary>Incorrect handling of embedded SVG and MathML leads to mutation XSS</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0074&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Incorrect handling of embedded SVG and MathML leads to mutation XSS&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-07-08&quot;&gt;&#xA; July 8, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/ammonia.html&quot;&gt;ammonia&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/ammonia&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;format-injection&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;rust-ammonia&amp;#x2f;ammonia&amp;#x2f;pull&amp;#x2f;142&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;rust-ammonia&amp;#x2f;ammonia&amp;#x2f;pull&amp;#x2f;142&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=3.1.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=2.1.3, &amp;lt;3.0.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;html&lt;/li&gt;&#xA; &#xA; &lt;li&gt;xss&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;Affected versions of this crate did not account for namespace-related parsing&#xA;differences between HTML, SVG, and MathML. Even if the &lt;code&gt;svg&lt;/code&gt; and &lt;code&gt;math&lt;/code&gt; elements&#xA;are not allowed, the underlying HTML parser still treats them differently.&#xA;Running cleanup without accounting for these differing namespaces resulted in an &amp;quot;impossible&amp;quot;&#xA;DOM, which appeared &amp;quot;safe&amp;quot; when examining the DOM tree, but when serialized and deserialized,&#xA;could be exploited to inject abitrary markup.&lt;/p&gt;&#xA;&lt;p&gt;To exploit this, the application using this library must allow a tag that is parsed as raw text in HTML.&#xA;These &lt;a href=&quot;https://github.com/servo/html5ever/blob/57eb334c0ffccc6f88d563419f0fbeef6ff5741c/html5ever/src/tree_builder/rules.rs&quot;&gt;elements&lt;/a&gt; are:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;title&lt;/li&gt;&#xA;&lt;li&gt;textarea&lt;/li&gt;&#xA;&lt;li&gt;xmp&lt;/li&gt;&#xA;&lt;li&gt;iframe&lt;/li&gt;&#xA;&lt;li&gt;noembed&lt;/li&gt;&#xA;&lt;li&gt;noframes&lt;/li&gt;&#xA;&lt;li&gt;plaintext&lt;/li&gt;&#xA;&lt;li&gt;noscript&lt;/li&gt;&#xA;&lt;li&gt;style&lt;/li&gt;&#xA;&lt;li&gt;script&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/ammonia/RUSTSEC-2021-0074.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/ammonia/RUSTSEC-2021-0074.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0075: Vulnerability in ark-r1cs-std</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0075.html</id><updated>2021-07-08T00:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0075.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0075: Vulnerability in ark-r1cs-std"/><published>2021-07-08T00:00:00+00:00</published><summary>Flaw in `FieldVar::mul_by_inverse` allows unsound R1CS constraint systems</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0075&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Flaw in &lt;code&gt;FieldVar::mul_by_inverse&lt;/code&gt; allows unsound R1CS constraint systems&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-07-08&quot;&gt;&#xA; July 8, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/ark-r1cs-std.html&quot;&gt;ark-r1cs-std&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/ark-r1cs-std&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;crypto-failure&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;arkworks-rs&amp;#x2f;r1cs-std&amp;#x2f;pull&amp;#x2f;70&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;arkworks-rs&amp;#x2f;r1cs-std&amp;#x2f;pull&amp;#x2f;70&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=0.3.1&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;r1cs&lt;/li&gt;&#xA; &#xA; &lt;li&gt;zksnark&lt;/li&gt;&#xA; &#xA; &lt;li&gt;arkworks&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA; &#xA; &#xA; &lt;dl&gt;&#xA; &lt;dt&gt;Affected Functions&lt;/dt&gt;&#xA; &lt;dd&gt;Version&lt;/dd&gt;&#xA; &#xA; &lt;dt&gt;&lt;code&gt;ark_r1cs_std::FieldVar::mul_by_inverse&lt;/code&gt;&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;lt;0.3.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA; &lt;/dl&gt;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;Versions &lt;code&gt;0.2.0&lt;/code&gt; to &lt;code&gt;0.3.0&lt;/code&gt; of ark-r1cs-std did not enforce any constraints in the &lt;code&gt;FieldVar::mul_by_inverse&lt;/code&gt; method, allowing a malicious prover to produce an unsound proof that passes all verifier checks.&#xA;This method was used primarily in scalar multiplication for &lt;a href=&quot;https://docs.rs/ark-r1cs-std/0.3.0/ark_r1cs_std/groups/curves/short_weierstrass/struct.ProjectiveVar.html&quot;&gt;&lt;code&gt;short_weierstrass::ProjectiveVar&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This bug was fixed in commit &lt;code&gt;47ddbaa&lt;/code&gt;, and was released as part of version &lt;code&gt;0.3.1&lt;/code&gt; on &lt;code&gt;crates.io&lt;/code&gt;.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/ark-r1cs-std/RUSTSEC-2021-0075.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/ark-r1cs-std/RUSTSEC-2021-0075.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0079: Vulnerability in hyper</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0079.html</id><updated>2021-07-07T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0079.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0079: Vulnerability in hyper"/><published>2021-07-07T00:00:00+00:00</published><summary>Integer overflow in `hyper`&apos;s parsing of the `Transfer-Encoding` header leads to data loss</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0079&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Integer overflow in &lt;code&gt;hyper&lt;/code&gt;&apos;s parsing of the &lt;code&gt;Transfer-Encoding&lt;/code&gt; header leads to data loss&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-07-07&quot;&gt;&#xA; July 7, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/hyper.html&quot;&gt;hyper&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/hyper&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;aliases&quot;&gt;Aliases&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&#xA; &#xA; &#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;cve.mitre.org&amp;#x2f;cgi-bin&amp;#x2f;cvename.cgi?name=CVE-2021-32714&quot;&gt;CVE-2021-32714&lt;/a&gt;&#xA; &#xA; &lt;/li&gt;&#xA; &#xA; &lt;li&gt;&#xA; &#xA; &#xA; GHSA-5h46-h7hh-c6x9&#xA; &#xA; &lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;hyperium&amp;#x2f;hyper&amp;#x2f;security&amp;#x2f;advisories&amp;#x2f;GHSA-5h46-h7hh-c6x9&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;hyperium&amp;#x2f;hyper&amp;#x2f;security&amp;#x2f;advisories&amp;#x2f;GHSA-5h46-h7hh-c6x9&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=0.14.10&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;http&lt;/li&gt;&#xA; &#xA; &lt;li&gt;parsing&lt;/li&gt;&#xA; &#xA; &lt;li&gt;data loss&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;When decoding chunk sizes that are too large, &lt;code&gt;hyper&lt;/code&gt;&apos;s code would encounter an integer overflow. Depending on the situation,&#xA;this could lead to data loss from an incorrect total size, or in rarer cases, a request smuggling attack.&lt;/p&gt;&#xA;&lt;p&gt;To be vulnerable, you must be using &lt;code&gt;hyper&lt;/code&gt; for any HTTP/1 purpose, including as a client or server, and consumers must send&#xA;requests or responses that specify a chunk size greater than 18 exabytes. For a possible request smuggling attack to be possible,&#xA;any upstream proxies must accept a chunk size greater than 64 bits.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/hyper/RUSTSEC-2021-0079.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/hyper/RUSTSEC-2021-0079.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0078: Vulnerability in hyper</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0078.html</id><updated>2021-07-07T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0078.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0078: Vulnerability in hyper"/><published>2021-07-07T00:00:00+00:00</published><summary>Lenient `hyper` header parsing of `Content-Length` could allow request smuggling</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0078&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Lenient &lt;code&gt;hyper&lt;/code&gt; header parsing of &lt;code&gt;Content-Length&lt;/code&gt; could allow request smuggling&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-07-07&quot;&gt;&#xA; July 7, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/hyper.html&quot;&gt;hyper&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/hyper&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;aliases&quot;&gt;Aliases&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&#xA; &#xA; &#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;cve.mitre.org&amp;#x2f;cgi-bin&amp;#x2f;cvename.cgi?name=CVE-2021-32715&quot;&gt;CVE-2021-32715&lt;/a&gt;&#xA; &#xA; &lt;/li&gt;&#xA; &#xA; &lt;li&gt;&#xA; &#xA; &#xA; GHSA-f3pg-qwvg-p99c&#xA; &#xA; &lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;hyperium&amp;#x2f;hyper&amp;#x2f;security&amp;#x2f;advisories&amp;#x2f;GHSA-f3pg-qwvg-p99c&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;hyperium&amp;#x2f;hyper&amp;#x2f;security&amp;#x2f;advisories&amp;#x2f;GHSA-f3pg-qwvg-p99c&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=0.14.10&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;parsing&lt;/li&gt;&#xA; &#xA; &lt;li&gt;http&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;&lt;code&gt;hyper&lt;/code&gt;&apos;s HTTP header parser accepted, according to RFC 7230, illegal contents inside &lt;code&gt;Content-Length&lt;/code&gt; headers.&#xA;Due to this, upstream HTTP proxies that ignore the header may still forward them along if it chooses to ignore the error.&lt;/p&gt;&#xA;&lt;p&gt;To be vulnerable, &lt;code&gt;hyper&lt;/code&gt; must be used as an HTTP/1 server and using an HTTP proxy upstream that ignores the header&apos;s contents&#xA;but still forwards it. Due to all the factors that must line up, an attack exploiting this vulnerability is unlikely.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/hyper/RUSTSEC-2021-0078.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/hyper/RUSTSEC-2021-0078.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0072: Vulnerability in tokio</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0072.html</id><updated>2021-07-07T00:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0072.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0072: Vulnerability in tokio"/><published>2021-07-07T00:00:00+00:00</published><summary>Task dropped in wrong thread when aborting `LocalSet` task</summary><content type="html"> &lt;article&gt;&#xA; &lt;header&gt;&#xA; &lt;h1&gt;&#xA; &#xA; &#xA; RUSTSEC-2021-0072&#xA; &#xA; &lt;/h1&gt;&#xA; &lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Task dropped in wrong thread when aborting &lt;code&gt;LocalSet&lt;/code&gt; task&lt;/p&gt;&#xA;&lt;/span&gt;&#xA; &lt;/header&gt;&#xA;&#xA; &#xA; &#xA;&#xA; &lt;dl&gt;&#xA; &lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;time datetime=&quot;2021-07-07&quot;&gt;&#xA; July 7, 2021&#xA; &lt;/time&gt;&#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &#xA; &lt;a href=&quot;/packages/tokio.html&quot;&gt;tokio&lt;/a&gt;&#xA; (&lt;a href=&quot;https://crates.io/crates/tokio&quot;&gt;crates.io&lt;/a&gt;)&#xA; &#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; Vulnerability&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;memory-corruption&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;tokio-rs&amp;#x2f;tokio&amp;#x2f;issues&amp;#x2f;3929&quot;&gt;&#xA; https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;tokio-rs&amp;#x2f;tokio&amp;#x2f;issues&amp;#x2f;3929&#xA; &lt;/a&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &#xA; &#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=1.5.1, &amp;lt;1.6.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=1.6.3, &amp;lt;1.7.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=1.7.2, &amp;lt;1.8.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;gt;=1.8.1&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/dd&gt;&#xA;&#xA; &#xA; &lt;dt id=&quot;unaffected&quot;&gt;Unaffected&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;lt;0.3.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;race condition&lt;/li&gt;&#xA; &#xA; &lt;li&gt;send&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA; &lt;/dl&gt;&#xA;&#xA; &#xA; &#xA; &#xA; &lt;dl&gt;&#xA; &lt;dt&gt;Affected Functions&lt;/dt&gt;&#xA; &lt;dd&gt;Version&lt;/dd&gt;&#xA; &#xA; &lt;dt&gt;&lt;code&gt;tokio::task::JoinHandle::abort&lt;/code&gt;&lt;/dt&gt;&#xA; &lt;dd&gt;&#xA; &lt;ul&gt;&#xA; &#xA; &lt;li&gt;&lt;code&gt;&amp;lt;=1.8.0, &amp;gt;=0.3.0&lt;/code&gt;&lt;/li&gt;&#xA; &#xA; &lt;/ul&gt;&#xA; &lt;/dd&gt;&#xA; &#xA; &lt;/dl&gt;&#xA; &#xA; &#xA;&#xA; &lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;&#xA; &lt;p&gt;When aborting a task with &lt;code&gt;JoinHandle::abort&lt;/code&gt;, the future is dropped in the&#xA;thread calling abort if the task is not currently being executed. This is&#xA;incorrect for tasks spawned on a &lt;code&gt;LocalSet&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This can easily result in race conditions as many projects use &lt;code&gt;Rc&lt;/code&gt; or &lt;code&gt;RefCell&lt;/code&gt;&#xA;in their Tokio tasks for better performance.&lt;/p&gt;&#xA;&lt;p&gt;See &lt;a href=&quot;https://github.com/tokio-rs/tokio/issues/3929&quot;&gt;tokio#3929&lt;/a&gt; for more details.&lt;/p&gt;&#xA;&#xA;&#xA; &#xA; &#xA; &lt;h3 id=&quot;more&quot;&gt;More&lt;/h3&gt;&#xA;&#xA; &lt;ul&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/tokio/RUSTSEC-2021-0072.md&quot;&gt;Advisory&#xA; History&lt;/a&gt;&lt;/li&gt;&#xA; &lt;li&gt;&lt;a&#xA; href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/tokio/RUSTSEC-2021-0072.md&quot;&gt;Edit&#xA; Advisory&lt;/a&gt;&lt;/li&gt;&#xA; &lt;/ul&gt;&#xA; &#xA; &lt;/article&gt;</content></entry></feed>