Files
advisory-db/feed.xml
T
2022-01-19 22:35:17 +00:00

1593 lines
48 KiB
XML

<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>RustSec Advisories</title><id>https://rustsec.org/feed.xml</id><updated>2022-01-19T00: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 xml:lang="en">Security advisories filed against Rust crates</subtitle><entry><title>RUSTSEC-2022-0003: Vulnerability in ammonia</title><id>https://rustsec.org/advisories/RUSTSEC-2022-0003.html</id><updated>2022-01-19T00:00:00+00:00</updated><category term="format-injection"/><link href="https://rustsec.org/advisories/RUSTSEC-2022-0003.html" rel="alternate" type="text/html" title="RUSTSEC-2022-0003: Vulnerability in ammonia"/><published>2022-01-19T00:00:00+00:00</published><summary xml:lang="en">Space bug in `clean_text`</summary><content xml:lang="en" type="html"> &lt;article&gt;
&lt;span class=&quot;floating-menu&quot;&gt;
&lt;a href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/ammonia/RUSTSEC-2022-0003.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/ammonia/RUSTSEC-2022-0003.md&quot;&gt;Edit&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2022-0003
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Space bug in &lt;code&gt;clean_text&lt;/code&gt;&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2022-01-19&quot;&gt;
January 19, 2022
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/packages/ammonia.html&quot;&gt;ammonia&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/ammonia&quot;&gt;crates.io&lt;/a&gt;)
&lt;/dd&gt;
&lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;
&lt;dd&gt;
Vulnerability
&lt;/dd&gt;
&lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/categories/format-injection.html&quot;&gt;format-injection&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/html.html&quot;&gt;#html&lt;/a&gt;
&lt;a href=&quot;/keywords/xss.html&quot;&gt;#xss&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;rust-ammonia&amp;#x2f;ammonia&amp;#x2f;pull&amp;#x2f;147&quot;&gt;
https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;rust-ammonia&amp;#x2f;ammonia&amp;#x2f;pull&amp;#x2f;147
&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=3.1.3&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;unaffected&quot;&gt;Unaffected&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;3.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/html.html&quot;&gt;#html&lt;/a&gt;
&lt;a href=&quot;/keywords/xss.html&quot;&gt;#xss&lt;/a&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;Affected Functions&lt;/dt&gt;
&lt;dd&gt;Version&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;ammonia::clean_text&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;=3.1.2&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;
&lt;p&gt;An incorrect mapping from HTML specification to ASCII codes was used.
Because HTML treats the Form Feed as whitespace, code like this has an injection bug:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;let html = format!(&amp;quot;&amp;lt;div title={}&amp;gt;&amp;quot;, clean_text(user_supplied_string));
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Applications are not affected if they quote their attributes, or if they don&apos;t use &lt;code&gt;clean_text&lt;/code&gt; at all.&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2022-0002: Vulnerability in dashmap</title><id>https://rustsec.org/advisories/RUSTSEC-2022-0002.html</id><updated>2022-01-10T00:00:00+00:00</updated><category term="memory-exposure"/><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2022-0002.html" rel="alternate" type="text/html" title="RUSTSEC-2022-0002: Vulnerability in dashmap"/><published>2022-01-10T00:00:00+00:00</published><summary xml:lang="en">Unsoundness in `dashmap` references</summary><content xml:lang="en" type="html"> &lt;article&gt;
&lt;span class=&quot;floating-menu&quot;&gt;
&lt;a href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/dashmap/RUSTSEC-2022-0002.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/dashmap/RUSTSEC-2022-0002.md&quot;&gt;Edit&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2022-0002
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Unsoundness in &lt;code&gt;dashmap&lt;/code&gt; references&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2022-01-10&quot;&gt;
January 10, 2022
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/packages/dashmap.html&quot;&gt;dashmap&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/dashmap&quot;&gt;crates.io&lt;/a&gt;)
&lt;/dd&gt;
&lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;
&lt;dd&gt;
Vulnerability
&lt;/dd&gt;
&lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/categories/memory-exposure.html&quot;&gt;memory-exposure&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/categories/memory-corruption.html&quot;&gt;memory-corruption&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/segfault.html&quot;&gt;#segfault&lt;/a&gt;
&lt;a href=&quot;/keywords/use-after-free.html&quot;&gt;#use-after-free&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;xacrimon&amp;#x2f;dashmap&amp;#x2f;issues&amp;#x2f;167&quot;&gt;
https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;xacrimon&amp;#x2f;dashmap&amp;#x2f;issues&amp;#x2f;167
&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;
&lt;dd&gt;
no patched versions
&lt;/dd&gt;
&lt;dt id=&quot;unaffected&quot;&gt;Unaffected&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/segfault.html&quot;&gt;#segfault&lt;/a&gt;
&lt;a href=&quot;/keywords/use-after-free.html&quot;&gt;#use-after-free&lt;/a&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;Affected Functions&lt;/dt&gt;
&lt;dd&gt;Version&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::mapref::multiple::RefMulti::key&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::mapref::multiple::RefMulti::pair&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::mapref::multiple::RefMulti::value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::mapref::multiple::RefMutMulti::key&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::mapref::multiple::RefMutMulti::pair&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::mapref::multiple::RefMutMulti::pair_mut&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::mapref::one::Ref::key&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::mapref::one::Ref::pair&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::mapref::one::Ref::value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::mapref::one::RefMut::key&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::mapref::one::RefMut::pair&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::mapref::one::RefMut::pair_mut&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::setref::multiple::RefMulti::key&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;dashmap::setref::one::Ref::key&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=5.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;
&lt;p&gt;Reference returned by some methods of &lt;code&gt;Ref&lt;/code&gt; (and similar types) may outlive the &lt;code&gt;Ref&lt;/code&gt; and escape the lock.
This causes undefined behavior and may result in a segfault.&lt;/p&gt;
&lt;p&gt;More information in &lt;a href=&quot;https://github.com/xacrimon/dashmap/issues/167&quot;&gt;&lt;code&gt;dashmap#167&lt;/code&gt;&lt;/a&gt; issue.&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2022-0001: lmdb is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2022-0001.html</id><updated>2022-01-05T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2022-0001.html" rel="alternate" type="text/html" title="RUSTSEC-2022-0001: lmdb is unmaintained"/><published>2022-01-05T00:00:00+00:00</published><summary xml:lang="en">lmdb is unmaintained, use lmdb-rkv instead</summary><content xml:lang="en" type="html"> &lt;article&gt;
&lt;span class=&quot;floating-menu&quot;&gt;
&lt;a href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/lmdb/RUSTSEC-2022-0001.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/lmdb/RUSTSEC-2022-0001.md&quot;&gt;Edit&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2022-0001
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;lmdb is unmaintained, use lmdb-rkv instead&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2022-01-05&quot;&gt;
January 5, 2022
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/packages/lmdb.html&quot;&gt;lmdb&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/lmdb&quot;&gt;crates.io&lt;/a&gt;)
&lt;/dd&gt;
&lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;
&lt;dd&gt;
&lt;span class=&quot;tag info&quot;&gt;INFO&lt;/span&gt;
Unmaintained
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;danburkert&amp;#x2f;lmdb-rs&quot;&gt;
https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;danburkert&amp;#x2f;lmdb-rs
&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;
&lt;dd&gt;
no patched versions
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;
&lt;p&gt;The lmdb crate hasn&apos;t had any updates since August 2018.&lt;/p&gt;
&lt;p&gt;Mozilla&apos;s &lt;a href=&quot;https://github.com/mozilla/lmdb-rs&quot;&gt;lmdb-rkv&lt;/a&gt; fork of the crate has received additional maintenance work beyond that and is the best available replacement.&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0134: rental is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0134.html</id><updated>2021-12-27T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0134.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0134: rental is unmaintained"/><published>2021-12-27T00:00:00+00:00</published><summary xml:lang="en">rental is unmaintained, author has moved on</summary><content xml:lang="en" type="html"> &lt;article&gt;
&lt;span class=&quot;floating-menu&quot;&gt;
&lt;a href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/rental/RUSTSEC-2021-0134.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/rental/RUSTSEC-2021-0134.md&quot;&gt;Edit&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2021-0134
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;rental is unmaintained, author has moved on&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2021-12-27&quot;&gt;
December 27, 2021
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/packages/rental.html&quot;&gt;rental&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/rental&quot;&gt;crates.io&lt;/a&gt;)
&lt;/dd&gt;
&lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;
&lt;dd&gt;
&lt;span class=&quot;tag info&quot;&gt;INFO&lt;/span&gt;
Unmaintained
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;jpernst&amp;#x2f;rental&amp;#x2f;commit&amp;#x2f;213671ab3aab3452efd7e2290c6bb714ee327014&quot;&gt;
https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;jpernst&amp;#x2f;rental&amp;#x2f;commit&amp;#x2f;213671ab3aab3452efd7e2290c6bb714ee327014
&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;
&lt;dd&gt;
no patched versions
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;
&lt;p&gt;The author encourages users to explore other solutions, or maintain a fork.&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0133: cargo-download is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0133.html</id><updated>2021-12-25T00:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2021-0133.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0133: cargo-download is unmaintained"/><published>2021-12-25T00:00:00+00:00</published><summary xml:lang="en">cargo-download is unmaintained</summary><content xml:lang="en" type="html"> &lt;article&gt;
&lt;span class=&quot;floating-menu&quot;&gt;
&lt;a href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/cargo-download/RUSTSEC-2021-0133.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/cargo-download/RUSTSEC-2021-0133.md&quot;&gt;Edit&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2021-0133
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;cargo-download is unmaintained&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2021-12-25&quot;&gt;
December 25, 2021
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/packages/cargo-download.html&quot;&gt;cargo-download&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/cargo-download&quot;&gt;crates.io&lt;/a&gt;)
&lt;/dd&gt;
&lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;
&lt;dd&gt;
&lt;span class=&quot;tag info&quot;&gt;INFO&lt;/span&gt;
Unmaintained
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;Xion&amp;#x2f;cargo-download&quot;&gt;
https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;Xion&amp;#x2f;cargo-download
&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;
&lt;dd&gt;
no patched versions
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;
&lt;p&gt;The cargo download subcommand (via cargo-download crate) is broken and maintainer has disappeared from GitHub and hasn&apos;t had any commits for a year.&lt;/p&gt;
&lt;p&gt;Using this downloader will result to corrupted crates.&lt;/p&gt;
&lt;p&gt;Maintainer has not responded to maintenance takeover.&lt;/p&gt;
&lt;p&gt;Just use wget / curl directly.&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0130: Vulnerability in lru</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0130.html</id><updated>2021-12-21T00:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0130.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0130: Vulnerability in lru"/><published>2021-12-21T00:00:00+00:00</published><summary xml:lang="en">Use after free in lru crate</summary><content xml:lang="en" type="html"> &lt;article&gt;
&lt;span class=&quot;floating-menu&quot;&gt;
&lt;a href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/lru/RUSTSEC-2021-0130.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/lru/RUSTSEC-2021-0130.md&quot;&gt;Edit&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2021-0130
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Use after free in lru crate&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2021-12-21&quot;&gt;
December 21, 2021
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/packages/lru.html&quot;&gt;lru&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/lru&quot;&gt;crates.io&lt;/a&gt;)
&lt;/dd&gt;
&lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;
&lt;dd&gt;
Vulnerability
&lt;/dd&gt;
&lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/categories/memory-corruption.html&quot;&gt;memory-corruption&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/use-after-free.html&quot;&gt;#use-after-free&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;jeromefroe&amp;#x2f;lru-rs&amp;#x2f;issues&amp;#x2f;120&quot;&gt;
https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;jeromefroe&amp;#x2f;lru-rs&amp;#x2f;issues&amp;#x2f;120
&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.7.1&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/use-after-free.html&quot;&gt;#use-after-free&lt;/a&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;Affected Functions&lt;/dt&gt;
&lt;dd&gt;Version&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;lru::LruCache::iter&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.7.1&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;lru::LruCache::iter_mut&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.7.1&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;
&lt;p&gt;Lru crate has use after free vulnerability.&lt;/p&gt;
&lt;p&gt;Lru crate has two functions for getting an iterator. Both iterators give
references to key and value. Calling specific functions, like pop(), will remove
and free the value, and but it&apos;s still possible to access the reference of value
which is already dropped causing use after free.&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0131: Vulnerability in brotli-sys</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0131.html</id><updated>2021-12-20T00:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0131.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0131: Vulnerability in brotli-sys"/><published>2021-12-20T00:00:00+00:00</published><summary xml:lang="en">Integer overflow in the bundled Brotli C library</summary><content xml:lang="en" type="html"> &lt;article&gt;
&lt;span class=&quot;floating-menu&quot;&gt;
&lt;a href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/brotli-sys/RUSTSEC-2021-0131.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/brotli-sys/RUSTSEC-2021-0131.md&quot;&gt;Edit&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2021-0131
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Integer overflow in the bundled Brotli C library&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2021-12-20&quot;&gt;
December 20, 2021
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/packages/brotli-sys.html&quot;&gt;brotli-sys&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/brotli-sys&quot;&gt;crates.io&lt;/a&gt;)
&lt;/dd&gt;
&lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;
&lt;dd&gt;
Vulnerability
&lt;/dd&gt;
&lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/categories/memory-corruption.html&quot;&gt;memory-corruption&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/integer-overflow.html&quot;&gt;#integer-overflow&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;aliases&quot;&gt;Aliases&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;cve.mitre.org&amp;#x2f;cgi-bin&amp;#x2f;cvename.cgi?name=CVE-2020-8927&quot;&gt;CVE-2020-8927&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;bitemyapp&amp;#x2f;brotli2-rs&amp;#x2f;issues&amp;#x2f;45&quot;&gt;
https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;bitemyapp&amp;#x2f;brotli2-rs&amp;#x2f;issues&amp;#x2f;45
&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;
&lt;dd&gt;
no patched versions
&lt;/dd&gt;
&lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/integer-overflow.html&quot;&gt;#integer-overflow&lt;/a&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;
&lt;p&gt;A buffer overflow exists in the Brotli library versions prior to 1.0.8 where an attacker controlling the input length of a &amp;quot;one-shot&amp;quot; decompression request to a script can trigger a crash, which happens when copying over chunks of data larger than 2 GiB.&lt;/p&gt;
&lt;p&gt;An updated version of &lt;code&gt;brotli-sys&lt;/code&gt; has not been released. If one cannot update the C library, its authors recommend to use the &amp;quot;streaming&amp;quot; API as opposed to the &amp;quot;one-shot&amp;quot; API, and impose chunk size limits.&lt;/p&gt;
&lt;p&gt;In Rust the issue can be mitigated by migrating to the &lt;code&gt;brotli&lt;/code&gt; crate, which provides a Rust implementation of Brotli compression and decompression that is not affected by this issue.&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0132: Vulnerability in compu-brotli-sys</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0132.html</id><updated>2021-12-20T00:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0132.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0132: Vulnerability in compu-brotli-sys"/><published>2021-12-20T00:00:00+00:00</published><summary xml:lang="en">Integer overflow in the bundled Brotli C library</summary><content xml:lang="en" type="html"> &lt;article&gt;
&lt;span class=&quot;floating-menu&quot;&gt;
&lt;a href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/compu-brotli-sys/RUSTSEC-2021-0132.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/compu-brotli-sys/RUSTSEC-2021-0132.md&quot;&gt;Edit&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2021-0132
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Integer overflow in the bundled Brotli C library&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2021-12-20&quot;&gt;
December 20, 2021
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/packages/compu-brotli-sys.html&quot;&gt;compu-brotli-sys&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/compu-brotli-sys&quot;&gt;crates.io&lt;/a&gt;)
&lt;/dd&gt;
&lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;
&lt;dd&gt;
Vulnerability
&lt;/dd&gt;
&lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/categories/memory-corruption.html&quot;&gt;memory-corruption&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/integer-overflow.html&quot;&gt;#integer-overflow&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;aliases&quot;&gt;Aliases&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;cve.mitre.org&amp;#x2f;cgi-bin&amp;#x2f;cvename.cgi?name=CVE-2020-8927&quot;&gt;CVE-2020-8927&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;google&amp;#x2f;brotli&amp;#x2f;releases&amp;#x2f;tag&amp;#x2f;v1.0.9&quot;&gt;
https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;google&amp;#x2f;brotli&amp;#x2f;releases&amp;#x2f;tag&amp;#x2f;v1.0.9
&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=1.0.9&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/integer-overflow.html&quot;&gt;#integer-overflow&lt;/a&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;
&lt;p&gt;A buffer overflow exists in the Brotli library versions prior to 1.0.8 where an attacker controlling the input length of a &amp;quot;one-shot&amp;quot; decompression request to a script can trigger a crash, which happens when copying over chunks of data larger than 2 GiB.&lt;/p&gt;
&lt;p&gt;If one cannot update the C library, its authors recommend to use the &amp;quot;streaming&amp;quot; API as opposed to the &amp;quot;one-shot&amp;quot; API, and impose chunk size limits.&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0129: Vulnerability in openssl-src</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0129.html</id><updated>2021-12-14T00:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0129.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0129: Vulnerability in openssl-src"/><published>2021-12-14T00:00:00+00:00</published><summary xml:lang="en">Invalid handling of `X509_verify_cert()` internal errors in libssl</summary><content xml:lang="en" type="html"> &lt;article&gt;
&lt;span class=&quot;floating-menu&quot;&gt;
&lt;a href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/openssl-src/RUSTSEC-2021-0129.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/openssl-src/RUSTSEC-2021-0129.md&quot;&gt;Edit&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2021-0129
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Invalid handling of &lt;code&gt;X509_verify_cert()&lt;/code&gt; internal errors in libssl&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2021-12-14&quot;&gt;
December 14, 2021
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/packages/openssl-src.html&quot;&gt;openssl-src&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/openssl-src&quot;&gt;crates.io&lt;/a&gt;)
&lt;/dd&gt;
&lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;
&lt;dd&gt;
Vulnerability
&lt;/dd&gt;
&lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/categories/denial-of-service.html&quot;&gt;denial-of-service&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;aliases&quot;&gt;Aliases&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;cve.mitre.org&amp;#x2f;cgi-bin&amp;#x2f;cvename.cgi?name=CVE-2021-4044&quot;&gt;CVE-2021-4044&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;www.openssl.org&amp;#x2f;news&amp;#x2f;secadv&amp;#x2f;20211214.txt&quot;&gt;
https:&amp;#x2f;&amp;#x2f;www.openssl.org&amp;#x2f;news&amp;#x2f;secadv&amp;#x2f;20211214.txt
&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=300.0.4&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;unaffected&quot;&gt;Unaffected&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;300.0.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;
&lt;p&gt;Internally libssl in OpenSSL calls &lt;code&gt;X509_verify_cert()&lt;/code&gt; on the client side to
verify a certificate supplied by a server. That function may return a negative
return value to indicate an internal error (for example out of memory). Such a
negative return value is mishandled by OpenSSL and will cause an IO function
(such as &lt;code&gt;SSL_connect()&lt;/code&gt; or &lt;code&gt;SSL_do_handshake()&lt;/code&gt;) to not indicate success and a
subsequent call to &lt;code&gt;SSL_get_error()&lt;/code&gt; to return the value
&lt;code&gt;SSL_ERROR_WANT_RETRY_VERIFY&lt;/code&gt;. This return value is only supposed to be returned
by OpenSSL if the application has previously called
&lt;code&gt;SSL_CTX_set_cert_verify_callback()&lt;/code&gt;. Since most applications do not do this the
&lt;code&gt;SSL_ERROR_WANT_RETRY_VERIFY&lt;/code&gt; return value from &lt;code&gt;SSL_get_error()&lt;/code&gt; will be totally
unexpected and applications may not behave correctly as a result. The exact
behaviour will depend on the application but it could result in crashes,
infinite loops or other similar incorrect responses.&lt;/p&gt;
&lt;p&gt;This issue is made more serious in combination with a separate bug in OpenSSL
3.0 that will cause &lt;code&gt;X509_verify_cert()&lt;/code&gt; to indicate an internal error when
processing a certificate chain. This will occur where a certificate does not
include the Subject Alternative Name extension but where a Certificate Authority
has enforced name constraints. This issue can occur even with valid chains.&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2021-0128: Vulnerability in rusqlite</title><id>https://rustsec.org/advisories/RUSTSEC-2021-0128.html</id><updated>2021-12-07T00:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2021-0128.html" rel="alternate" type="text/html" title="RUSTSEC-2021-0128: Vulnerability in rusqlite"/><published>2021-12-07T00:00:00+00:00</published><summary xml:lang="en">Incorrect Lifetime Bounds on Closures in `rusqlite`</summary><content xml:lang="en" type="html"> &lt;article&gt;
&lt;span class=&quot;floating-menu&quot;&gt;
&lt;a href=&quot;https://github.com/RustSec/advisory-db/commits/main/crates/rusqlite/RUSTSEC-2021-0128.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/rusqlite/RUSTSEC-2021-0128.md&quot;&gt;Edit&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2021-0128
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Incorrect Lifetime Bounds on Closures in &lt;code&gt;rusqlite&lt;/code&gt;&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2021-12-07&quot;&gt;
December 7, 2021
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;package&quot;&gt;Package&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/packages/rusqlite.html&quot;&gt;rusqlite&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/rusqlite&quot;&gt;crates.io&lt;/a&gt;)
&lt;/dd&gt;
&lt;dt id=&quot;type&quot;&gt;Type&lt;/dt&gt;
&lt;dd&gt;
Vulnerability
&lt;/dd&gt;
&lt;dt id=&quot;categories&quot;&gt;Categories&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/categories/memory-corruption.html&quot;&gt;memory-corruption&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/use-after-free.html&quot;&gt;#use-after-free&lt;/a&gt;
&lt;a href=&quot;/keywords/incorrect-lifetime.html&quot;&gt;#incorrect-lifetime&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;Details&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;rusqlite&amp;#x2f;rusqlite&amp;#x2f;issues&amp;#x2f;1048&quot;&gt;
https:&amp;#x2f;&amp;#x2f;github.com&amp;#x2f;rusqlite&amp;#x2f;rusqlite&amp;#x2f;issues&amp;#x2f;1048
&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;patched&quot;&gt;Patched&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.26.2&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;^0.25.4&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;unaffected&quot;&gt;Unaffected&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.25.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/use-after-free.html&quot;&gt;#use-after-free&lt;/a&gt;
&lt;a href=&quot;/keywords/incorrect-lifetime.html&quot;&gt;#incorrect-lifetime&lt;/a&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;Affected Functions&lt;/dt&gt;
&lt;dd&gt;Version&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;rusqlite::Connection::commit_hook&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.25.0, &amp;lt;0.25.4&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.26.0, &amp;lt;0.26.2&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;rusqlite::Connection::create_aggregate_function&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.25.0, &amp;lt;0.25.4&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.26.0, &amp;lt;0.26.2&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;rusqlite::Connection::create_collation&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.25.0, &amp;lt;0.25.4&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.26.0, &amp;lt;0.26.2&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;rusqlite::Connection::create_scalar_function&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.25.0, &amp;lt;0.25.4&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.26.0, &amp;lt;0.26.2&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;rusqlite::Connection::create_window_function&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.25.0, &amp;lt;0.25.4&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.26.0, &amp;lt;0.26.2&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;rusqlite::Connection::rollback_hook&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.25.0, &amp;lt;0.25.4&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.26.0, &amp;lt;0.26.2&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;rusqlite::Connection::update_hook&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.25.0, &amp;lt;0.25.4&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.26.0, &amp;lt;0.26.2&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id=&quot;description&quot;&gt;Description&lt;/h3&gt;
&lt;p&gt;The lifetime bound on several closure-accepting &lt;code&gt;rusqlite&lt;/code&gt; functions (specifically, functions which register a callback to be later invoked by SQLite) was too relaxed. If a closure referencing borrowed values on the stack is was passed to one of these functions, it could allow Rust code to access objects on the stack after they have been dropped.&lt;/p&gt;
&lt;p&gt;The impacted functions are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Under &lt;code&gt;cfg(feature = &amp;quot;functions&amp;quot;)&lt;/code&gt;: &lt;code&gt;Connection::create_scalar_function&lt;/code&gt;, &lt;code&gt;Connection::create_aggregate_function&lt;/code&gt; and &lt;code&gt;Connection::create_window_function&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Under &lt;code&gt;cfg(feature = &amp;quot;hooks&amp;quot;)&lt;/code&gt;: &lt;code&gt;Connection::commit_hook&lt;/code&gt;, &lt;code&gt;Connection::rollback_hook&lt;/code&gt; and &lt;code&gt;Connection::update_hook&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Under &lt;code&gt;cfg(feature = &amp;quot;collation&amp;quot;)&lt;/code&gt;: &lt;code&gt;Connection::create_collation&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The issue exists in all &lt;code&gt;0.25.*&lt;/code&gt; versions prior to &lt;code&gt;0.25.4&lt;/code&gt;, and all &lt;code&gt;0.26.*&lt;/code&gt; versions prior to 0.26.2 (specifically: &lt;code&gt;0.25.0&lt;/code&gt;, &lt;code&gt;0.25.1&lt;/code&gt;, &lt;code&gt;0.25.2&lt;/code&gt;, &lt;code&gt;0.25.3&lt;/code&gt;, &lt;code&gt;0.26.0&lt;/code&gt;, and &lt;code&gt;0.26.1&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;The fix is available in versions &lt;code&gt;0.26.2&lt;/code&gt; and newer, and also has been back-ported to &lt;code&gt;0.25.4&lt;/code&gt;. As it does not exist in &lt;code&gt;0.24.*&lt;/code&gt;, all affected versions should have an upgrade path to a semver-compatible release.&lt;/p&gt;
&lt;/article&gt;</content></entry></feed>