Files
advisory-db/feed.xml
T
2024-04-03 18:23:29 +00:00

1587 lines
52 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>2024-04-03T12: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-2024-0332: Vulnerability in h2</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0332.html</id><updated>2024-04-03T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0332.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0332: Vulnerability in h2"/><published>2024-04-03T12:00:00+00:00</published><summary xml:lang="en">Degradation of service in h2 servers with CONTINUATION Flood</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/h2/RUSTSEC-2024-0332.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/h2/RUSTSEC-2024-0332.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2024-0332&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2024-0332
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Degradation of service in h2 servers with CONTINUATION Flood&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;reported&quot;&gt;Reported&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-04-03&quot;&gt;
April 3, 2024
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-04-03&quot;&gt;
April 3, 2024
&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/h2.html&quot;&gt;h2&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/h2&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;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/http.html&quot;&gt;#http&lt;/a&gt;
&lt;a href=&quot;/keywords/http2.html&quot;&gt;#http2&lt;/a&gt;
&lt;a href=&quot;/keywords/h2.html&quot;&gt;#h2&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;References&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https://seanmonstar.com/blog/hyper-http2-continuation-flood/&quot;&gt;
https://seanmonstar.com/blog/hyper-http2-continuation-flood/
&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&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;^0.3.26&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.4.4&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 attacker can send a flood of CONTINUATION frames, causing &lt;code&gt;h2&lt;/code&gt; to process them indefinitely.
This results in an increase in CPU usage.&lt;/p&gt;
&lt;p&gt;Tokio task budget helps prevent this from a complete denial-of-service, as the server can still
respond to legitimate requests, albeit with increased latency.&lt;/p&gt;
&lt;p&gt;More details at &amp;quot;https://seanmonstar.com/blog/hyper-http2-continuation-flood/.&lt;/p&gt;
&lt;p&gt;Patches available for 0.4.x and 0.3.x versions.&lt;/p&gt;
&lt;p id=&quot;license&quot; class=&quot;license&quot;&gt;Advisory available under &lt;a href=&quot;https://spdx.org/licenses/CC0-1.0.html&quot;&gt;CC0-1.0&lt;/a&gt;
license.
&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2024-0331: puccinier is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0331.html</id><updated>2024-03-31T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0331.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0331: puccinier is unmaintained"/><published>2024-03-31T12:00:00+00:00</published><summary xml:lang="en">Puccinier is unmainted.</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/puccinier/RUSTSEC-2024-0331.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/puccinier/RUSTSEC-2024-0331.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2024-0331&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2024-0331
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Puccinier is unmainted.&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;reported&quot;&gt;Reported&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-03-31&quot;&gt;
March 31, 2024
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-03-31&quot;&gt;
March 31, 2024
&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/puccinier.html&quot;&gt;puccinier&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/puccinier&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;References&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/catppuccin/toolbox/issues/66&quot;&gt;
https://github.com/catppuccin/toolbox/issues/66
&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&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 tool has been deprecated in favor of Catppuccin&apos;s new tool, &lt;a href=&quot;https://github.com/catppuccin/toolbox/tree/main/whiskers&quot;&gt;whiskers&lt;/a&gt; &lt;a href=&quot;https://crates.io/crates/catppuccin-whiskers&quot;&gt;(crates.io)&lt;/a&gt;.&lt;/p&gt;
&lt;p id=&quot;license&quot; class=&quot;license&quot;&gt;Advisory available under &lt;a href=&quot;https://spdx.org/licenses/CC0-1.0.html&quot;&gt;CC0-1.0&lt;/a&gt;
license.
&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2024-0320: yaml-rust is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0320.html</id><updated>2024-03-25T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0320.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0320: yaml-rust is unmaintained"/><published>2024-03-25T12:00:00+00:00</published><summary xml:lang="en">yaml-rust 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/yaml-rust/RUSTSEC-2024-0320.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/yaml-rust/RUSTSEC-2024-0320.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2024-0320&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2024-0320
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;yaml-rust is unmaintained.&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;reported&quot;&gt;Reported&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-03-20&quot;&gt;
March 20, 2024
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-03-25&quot;&gt;
March 25, 2024
&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/yaml-rust.html&quot;&gt;yaml-rust&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/yaml-rust&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;References&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/rustsec/advisory-db/issues/1921&quot;&gt;
https://github.com/rustsec/advisory-db/issues/1921
&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&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 maintainer seems &lt;a href=&quot;https://github.com/chyh1990/yaml-rust/issues/197&quot;&gt;unreachable&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Many issues and pull requests have been submitted over the years
without any &lt;a href=&quot;https://github.com/chyh1990/yaml-rust/issues/160&quot;&gt;response&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Alternatives&lt;/h2&gt;
&lt;p&gt;Consider switching to the actively maintained &lt;code&gt;yaml-rust2&lt;/code&gt; fork of the original project:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/Ethiraric/yaml-rust2&quot;&gt;yaml-rust2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://crates.io/crates/yaml-rust2&quot;&gt;yaml-rust2 @ crates.io&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p id=&quot;license&quot; class=&quot;license&quot;&gt;Advisory available under &lt;a href=&quot;https://spdx.org/licenses/CC0-1.0.html&quot;&gt;CC0-1.0&lt;/a&gt;
license.
&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2023-0085: Vulnerability in hpack</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0085.html</id><updated>2024-03-15T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0085.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0085: Vulnerability in hpack"/><published>2024-03-15T12:00:00+00:00</published><summary xml:lang="en">HPACK decoder panics on invalid input</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/hpack/RUSTSEC-2023-0085.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/hpack/RUSTSEC-2023-0085.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2023-0085&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2023-0085
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;HPACK decoder panics on invalid input&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;reported&quot;&gt;Reported&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2023-09-15&quot;&gt;
September 15, 2023
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-03-15&quot;&gt;
March 15, 2024
&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/hpack.html&quot;&gt;hpack&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/hpack&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;details&quot;&gt;References&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/mlalic/hpack-rs/issues/11&quot;&gt;
https://github.com/mlalic/hpack-rs/issues/11
&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/sno2/hpack-rs-patched/commit/d669282924a95311599e9e7dd53869ee96b3a2f5&quot;&gt;
https://github.com/sno2/hpack-rs-patched/commit/d669282924a95311599e9e7dd53869ee96b3a2f5
&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&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;Due to insufficient checking of input data, decoding certain data sequences can
lead to &lt;em&gt;Decoder::decode&lt;/em&gt; panicking rather than returning an error.&lt;/p&gt;
&lt;p&gt;Example code that triggers this vulnerability looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-rust&quot;&gt;use hpack::Decoder;
pub fn main() {
let input = &amp;amp;[0x3f];
let mut decoder = Decoder::new();
let _ = decoder.decode(input);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;hpack is unmaintained. A crate with the panics fixed has been published as
&lt;a href=&quot;https://crates.io/crates/hpack-patched&quot;&gt;hpack-patched&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also consider using &lt;a href=&quot;https://crates.io/crates/fluke-hpack&quot;&gt;fluke-hpack&lt;/a&gt; or
&lt;a href=&quot;https://crates.io/crates/httlib-huffman&quot;&gt;httlib-huffman&lt;/a&gt; as an alternative.&lt;/p&gt;
&lt;p id=&quot;license&quot; class=&quot;license&quot;&gt;Advisory available under &lt;a href=&quot;https://spdx.org/licenses/CC0-1.0.html&quot;&gt;CC0-1.0&lt;/a&gt;
license.
&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2023-0084: hpack is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0084.html</id><updated>2024-03-06T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2023-0084.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0084: hpack is unmaintained"/><published>2024-03-06T12:00:00+00:00</published><summary xml:lang="en">`hpack` 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/hpack/RUSTSEC-2023-0084.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/hpack/RUSTSEC-2023-0084.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2023-0084&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2023-0084
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;&lt;code&gt;hpack&lt;/code&gt; is unmaintained&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;reported&quot;&gt;Reported&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2023-09-15&quot;&gt;
September 15, 2023
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-03-06&quot;&gt;
March 6, 2024
&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/hpack.html&quot;&gt;hpack&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/hpack&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;References&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/mlalic/hpack-rs/issues/8&quot;&gt;
https://github.com/mlalic/hpack-rs/issues/8
&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&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 &lt;code&gt;hpack&lt;/code&gt; crate is no longer maintained.&lt;/p&gt;
&lt;p&gt;Consider using &lt;a href=&quot;https://crates.io/crates/fluke-hpack&quot;&gt;fluke-hpack&lt;/a&gt; or
&lt;a href=&quot;https://crates.io/crates/httlib-huffman&quot;&gt;httlib-huffman&lt;/a&gt;.&lt;/p&gt;
&lt;p id=&quot;license&quot; class=&quot;license&quot;&gt;Advisory available under &lt;a href=&quot;https://spdx.org/licenses/CC0-1.0.html&quot;&gt;CC0-1.0&lt;/a&gt;
license.
&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2024-0021: Vulnerability in eyre</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0021.html</id><updated>2024-03-06T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0021.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0021: Vulnerability in eyre"/><published>2024-03-06T12:00:00+00:00</published><summary xml:lang="en">Parts of Report are dropped as the wrong type during downcast</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/eyre/RUSTSEC-2024-0021.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/eyre/RUSTSEC-2024-0021.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2024-0021&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2024-0021
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Parts of Report are dropped as the wrong type during downcast&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;reported&quot;&gt;Reported&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-03-05&quot;&gt;
March 5, 2024
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-03-06&quot;&gt;
March 6, 2024
&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/eyre.html&quot;&gt;eyre&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/eyre&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;details&quot;&gt;References&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/eyre-rs/eyre/issues/141&quot;&gt;
https://github.com/eyre-rs/eyre/issues/141
&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&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.6.12&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.6.9&lt;/code&gt;&lt;/li&gt;
&lt;/ul&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;eyre::Report::downcast&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.6.9, &amp;lt;0.6.12&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;In affected versions, after a &lt;code&gt;Report&lt;/code&gt; is constructed using &lt;code&gt;wrap_err&lt;/code&gt; or
&lt;code&gt;wrap_err_with&lt;/code&gt; to attach a message of type &lt;code&gt;D&lt;/code&gt; onto an error of type &lt;code&gt;E&lt;/code&gt;, then
using &lt;code&gt;downcast&lt;/code&gt; to recover ownership of either the value of type &lt;code&gt;D&lt;/code&gt; or the
value of type &lt;code&gt;E&lt;/code&gt;, one of two things can go wrong:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If downcasting to &lt;code&gt;E&lt;/code&gt;, there remains a value of type &lt;code&gt;D&lt;/code&gt; to be dropped. It is
incorrectly &amp;quot;dropped&amp;quot; by running &lt;code&gt;E&lt;/code&gt;&apos;s drop behavior, rather than &lt;code&gt;D&lt;/code&gt;&apos;s. For
example if &lt;code&gt;D&lt;/code&gt; is &lt;code&gt;&amp;amp;str&lt;/code&gt; and &lt;code&gt;E&lt;/code&gt; is &lt;code&gt;std::io::Error&lt;/code&gt;, there would be a call of
&lt;code&gt;std::io::Error::drop&lt;/code&gt; in which the reference received by the &lt;code&gt;Drop&lt;/code&gt; impl does
not refer to a valid value of type &lt;code&gt;std::io::Error&lt;/code&gt;, but instead to &lt;code&gt;&amp;amp;str&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If downcasting to &lt;code&gt;D&lt;/code&gt;, there remains a value of type &lt;code&gt;E&lt;/code&gt; to be dropped. When
&lt;code&gt;D&lt;/code&gt; and &lt;code&gt;E&lt;/code&gt; do not happen to be the same size, &lt;code&gt;E&lt;/code&gt;&apos;s drop behavior is
incorrectly executed in the wrong location. The reference received by the
&lt;code&gt;Drop&lt;/code&gt; impl may point left or right of the real &lt;code&gt;E&lt;/code&gt; value that is meant to be
getting dropped.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In both cases, when the &lt;code&gt;Report&lt;/code&gt; contains an error &lt;code&gt;E&lt;/code&gt; that has nontrivial drop
behavior, the most likely outcome is memory corruption.&lt;/p&gt;
&lt;p&gt;When the &lt;code&gt;Report&lt;/code&gt; contains an error &lt;code&gt;E&lt;/code&gt; that has trivial drop behavior (for
example a &lt;code&gt;Utf8Error&lt;/code&gt;) but where &lt;code&gt;D&lt;/code&gt; has nontrivial drop behavior (such as
&lt;code&gt;String&lt;/code&gt;), the most likely outcome is that downcasting to &lt;code&gt;E&lt;/code&gt; would leak &lt;code&gt;D&lt;/code&gt;.&lt;/p&gt;
&lt;p id=&quot;license&quot; class=&quot;license&quot;&gt;Advisory available under &lt;a href=&quot;https://spdx.org/licenses/CC0-1.0.html&quot;&gt;CC0-1.0&lt;/a&gt;
license.
&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2024-0020: Vulnerability in whoami</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0020.html</id><updated>2024-03-06T12:00:00+00:00</updated><category term="denial-of-service"/><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0020.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0020: Vulnerability in whoami"/><published>2024-03-05T12:00:00+00:00</published><summary xml:lang="en">Stack buffer overflow with whoami on several Unix platforms</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/whoami/RUSTSEC-2024-0020.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/whoami/RUSTSEC-2024-0020.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2024-0020&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2024-0020
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Stack buffer overflow with whoami on several Unix platforms&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;reported&quot;&gt;Reported&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-02-28&quot;&gt;
February 28, 2024
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-03-05&quot;&gt;
March 5, 2024
&lt;/time&gt;
&lt;time datetime=&quot;2024-03-06&quot;&gt;
(last modified: March 6, 2024)
&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/whoami.html&quot;&gt;whoami&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/whoami&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;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/buffer-overflow.html&quot;&gt;#buffer-overflow&lt;/a&gt;
&lt;a href=&quot;/keywords/stack-buffer-overflow.html&quot;&gt;#stack-buffer-overflow&lt;/a&gt;
&lt;a href=&quot;/keywords/cwe-121.html&quot;&gt;#cwe-121&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;References&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/ardaku/whoami/issues/91&quot;&gt;
https://github.com/ardaku/whoami/issues/91
&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&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.5.0&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.5.3&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;Affected OSes&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;illumos&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;solaris&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;dragonfly&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;freebsd&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;netbsd&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;openbsd&lt;/code&gt;&lt;/li&gt;
&lt;/ul&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;whoami::realname&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;1.5.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;whoami::realname_os&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;1.5.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;whoami::username&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;1.5.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;whoami::username_os&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;1.5.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;With versions of the whoami crate &amp;gt;= 0.5.3 and &amp;lt; 1.5.0, calling any of these functions leads to an
immediate stack buffer overflow on illumos and Solaris:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;whoami::username&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;whoami::realname&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;whoami::username_os&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;whoami::realname_os&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With versions of the whoami crate &amp;gt;= 0.5.3 and &amp;lt; 1.0.1, calling any of the above functions also
leads to a stack buffer overflow on these platforms:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Bitrig&lt;/li&gt;
&lt;li&gt;DragonFlyBSD&lt;/li&gt;
&lt;li&gt;FreeBSD&lt;/li&gt;
&lt;li&gt;NetBSD&lt;/li&gt;
&lt;li&gt;OpenBSD&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This occurs because of an incorrect definition of the &lt;code&gt;passwd&lt;/code&gt; struct on those platforms.&lt;/p&gt;
&lt;p&gt;As a result of this issue, denial of service and data corruption have both been observed in the
wild. The issue is possibly exploitable as well.&lt;/p&gt;
&lt;p&gt;This vulnerability also affects other Unix platforms that aren&apos;t Linux or macOS.&lt;/p&gt;
&lt;p&gt;This issue has been addressed in whoami 1.5.0.&lt;/p&gt;
&lt;p&gt;For more information, see &lt;a href=&quot;https://github.com/ardaku/whoami/issues/91&quot;&gt;this GitHub issue&lt;/a&gt;.&lt;/p&gt;
&lt;p id=&quot;license&quot; class=&quot;license&quot;&gt;Advisory available under &lt;a href=&quot;https://spdx.org/licenses/CC0-1.0.html&quot;&gt;CC0-1.0&lt;/a&gt;
license.
&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2024-0019: Vulnerability in mio</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0019.html</id><updated>2024-03-04T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0019.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0019: Vulnerability in mio"/><published>2024-03-04T12:00:00+00:00</published><summary xml:lang="en">Tokens for named pipes may be delivered after deregistration</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/mio/RUSTSEC-2024-0019.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/mio/RUSTSEC-2024-0019.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2024-0019&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2024-0019
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Tokens for named pipes may be delivered after deregistration&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;reported&quot;&gt;Reported&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-03-04&quot;&gt;
March 4, 2024
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-03-04&quot;&gt;
March 4, 2024
&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/mio.html&quot;&gt;mio&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/mio&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;aliases&quot;&gt;Aliases&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-27308&quot;&gt;CVE-2024-27308&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/advisories/GHSA-r8w9-5wcg-vfj7&quot;&gt;GHSA-r8w9-5wcg-vfj7&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;References&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/tokio-rs/mio/security/advisories/GHSA-r8w9-5wcg-vfj7&quot;&gt;
https://github.com/tokio-rs/mio/security/advisories/GHSA-r8w9-5wcg-vfj7
&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&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.8.11&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.7.2&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;Affected OSes&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;windows&lt;/code&gt;&lt;/li&gt;
&lt;/ul&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;mio::windows::NamedPipe::new&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.7.2, &amp;lt;=0.8.10&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;h2&gt;Impact&lt;/h2&gt;
&lt;p&gt;When using named pipes on Windows, mio will under some circumstances return invalid tokens that correspond to named pipes that have already been deregistered from the mio registry. The impact of this vulnerability depends on how mio is used. For some applications, invalid tokens may be ignored or cause a warning or a crash. On the other hand, for applications that store pointers in the tokens, this vulnerability may result in a use-after-free.&lt;/p&gt;
&lt;p&gt;For users of Tokio, this vulnerability is serious and can result in a use-after-free in Tokio.&lt;/p&gt;
&lt;p&gt;The vulnerability is Windows-specific, and can only happen if you are using named pipes. Other IO resources are not affected.&lt;/p&gt;
&lt;h2&gt;Affected versions&lt;/h2&gt;
&lt;p&gt;This vulnerability has been fixed in mio v0.8.11.&lt;/p&gt;
&lt;p&gt;All versions of mio between v0.7.2 and v0.8.10 are vulnerable.&lt;/p&gt;
&lt;p&gt;Tokio is vulnerable when you are using a vulnerable version of mio AND you are using at least Tokio v1.30.0. Versions of Tokio prior to v1.30.0 will ignore invalid tokens, so they are not vulnerable.&lt;/p&gt;
&lt;h2&gt;Workarounds&lt;/h2&gt;
&lt;p&gt;Vulnerable libraries that use mio can work around this issue by detecting and ignoring invalid tokens.&lt;/p&gt;
&lt;h2&gt;Technical details&lt;/h2&gt;
&lt;p&gt;When an IO resource registered with mio has a readiness event, mio delivers that readiness event to the user using a user-specified token. Mio guarantees that when an IO resource is &lt;a href=&quot;https://docs.rs/mio/latest/mio/struct.Registry.html#method.deregister&quot;&gt;deregistered&lt;/a&gt;, then it will never return the token for that IO resource again. However, for named pipes on windows, mio may sometimes deliver the token for a named pipe even though the named pipe has been previously deregistered.&lt;/p&gt;
&lt;p&gt;This vulnerability was originally reported in the Tokio issue tracker: &lt;a href=&quot;https://github.com/tokio-rs/tokio/issues/6369&quot;&gt;tokio-rs/tokio#6369&lt;/a&gt;&lt;br /&gt;
This vulnerability was fixed in: &lt;a href=&quot;https://github.com/tokio-rs/mio/pull/1760&quot;&gt;tokio-rs/mio#1760&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you to &lt;a href=&quot;https://github.com/rofoun&quot;&gt;@rofoun&lt;/a&gt; and &lt;a href=&quot;https://github.com/radekvit&quot;&gt;@radekvit&lt;/a&gt; for discovering and reporting this issue.&lt;/p&gt;
&lt;p id=&quot;license&quot; class=&quot;license&quot;&gt;Advisory available under &lt;a href=&quot;https://spdx.org/licenses/CC0-1.0.html&quot;&gt;CC0-1.0&lt;/a&gt;
license.
&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2023-0083: Vulnerability in blurhash</title><id>https://rustsec.org/advisories/RUSTSEC-2023-0083.html</id><updated>2024-03-02T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2023-0083.html" rel="alternate" type="text/html" title="RUSTSEC-2023-0083: Vulnerability in blurhash"/><published>2024-03-02T12:00:00+00:00</published><summary xml:lang="en">blurhash: panic on parsing crafted blurhash inputs</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/blurhash/RUSTSEC-2023-0083.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/blurhash/RUSTSEC-2023-0083.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2023-0083&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2023-0083
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;blurhash: panic on parsing crafted blurhash inputs&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;reported&quot;&gt;Reported&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2023-09-19&quot;&gt;
September 19, 2023
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-03-02&quot;&gt;
March 2, 2024
&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/blurhash.html&quot;&gt;blurhash&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/blurhash&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;keywords&quot;&gt;Keywords&lt;/dt&gt;
&lt;dd&gt;
&lt;a href=&quot;/keywords/panic.html&quot;&gt;#panic&lt;/a&gt;
&lt;a href=&quot;/keywords/untrusted-input.html&quot;&gt;#untrusted-input&lt;/a&gt;
&lt;a href=&quot;/keywords/parsing.html&quot;&gt;#parsing&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://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-42447&quot;&gt;CVE-2023-42447&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
cxvp-82cq-57h2
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;References&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/whisperfish/blurhash-rs/security/advisories/GHSA-cxvp-82cq-57h2&quot;&gt;
https://github.com/whisperfish/blurhash-rs/security/advisories/GHSA-cxvp-82cq-57h2
&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-42447&quot;&gt;
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-42447
&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt id=&quot;cvss_score&quot;&gt;CVSS Score&lt;/dt&gt;
&lt;dd&gt;8.6 &lt;span class=&quot;tag high&quot;&gt;
HIGH
&lt;/span&gt;&lt;/dd&gt;
&lt;dt id=&quot;cvss_details&quot;&gt;CVSS Details&lt;/dt&gt;
&lt;dd&gt;
&lt;dl&gt;
&lt;dt&gt;Attack vector&lt;/dt&gt;&lt;dd&gt;Network&lt;/dd&gt;
&lt;dt&gt;Attack complexity&lt;/dt&gt;&lt;dd&gt;Low&lt;/d&gt;
&lt;dt&gt;Privileges required&lt;/dt&gt;&lt;dd&gt;None&lt;/dd&gt;
&lt;dt&gt;User interaction&lt;/dt&gt;&lt;dd&gt;None&lt;/dd&gt;
&lt;dt&gt;Scope&lt;/dt&gt;&lt;dd&gt;Changed&lt;/dd&gt;
&lt;dt&gt;Confidentiality&lt;/dt&gt;&lt;dd&gt;None&lt;/dd&gt;
&lt;dt&gt;Integrity&lt;/dt&gt;&lt;dd&gt;None&lt;/dd&gt;
&lt;dt&gt;Availability&lt;/dt&gt;&lt;dd&gt;High&lt;/dd&gt;
&lt;/dl&gt;
&lt;/dd&gt;
&lt;dt id=&quot;cvss&quot;&gt;CVSS Vector&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H&quot;&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H&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.2.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&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;blurhash::decode&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;*&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;h2&gt;Impact&lt;/h2&gt;
&lt;p&gt;The blurhash parsing code may panic due to multiple panic-guarded out-of-bounds accesses on untrusted input.&lt;/p&gt;
&lt;p&gt;In a typical deployment, this may get triggered by feeding a maliciously crafted blurhashes over the network. These may include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;UTF-8 compliant strings containing multi-byte UTF-8 characters&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Patches&lt;/h2&gt;
&lt;p&gt;The patches were released under version 0.2.0, which may require user intervention because of slight API churn.&lt;/p&gt;
&lt;p id=&quot;license&quot; class=&quot;license&quot;&gt;Advisory available under &lt;a href=&quot;https://spdx.org/licenses/CC0-1.0.html&quot;&gt;CC0-1.0&lt;/a&gt;
license.
&lt;/p&gt;
&lt;/article&gt;</content></entry><entry><title>RUSTSEC-2024-0018: Vulnerability in crayon</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0018.html</id><updated>2024-03-01T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0018.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0018: Vulnerability in crayon"/><published>2024-03-01T12:00:00+00:00</published><summary xml:lang="en">ObjectPool creates uninitialized memory when freeing objects</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/crayon/RUSTSEC-2024-0018.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/crayon/RUSTSEC-2024-0018.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2024-0018&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2024-0018
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;ObjectPool creates uninitialized memory when freeing objects&lt;/p&gt;
&lt;/span&gt;
&lt;/header&gt;
&lt;dl&gt;
&lt;dt id=&quot;reported&quot;&gt;Reported&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-02-27&quot;&gt;
February 27, 2024
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2024-03-01&quot;&gt;
March 1, 2024
&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/crayon.html&quot;&gt;crayon&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/crayon&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/std--mem--uninitialized.html&quot;&gt;#std--mem--uninitialized&lt;/a&gt;
&lt;a href=&quot;/keywords/address-sanitizer.html&quot;&gt;#address-sanitizer&lt;/a&gt;
&lt;/dd&gt;
&lt;dt id=&quot;details&quot;&gt;References&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/shawnscode/crayon/issues/109&quot;&gt;
https://github.com/shawnscode/crayon/issues/109
&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&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;0.6.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&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;crayon::utils::object_pool::ObjectPool&amp;lt;H,T&amp;gt;::free&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.6.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;As of version 0.6.0, the ObjectPool explicitly creates an uninitialized instance of its
type parameter when it attempts to free an object, and swaps it into the storage. This
causes instant undefined behavior due to reading the uninitialized memory in order to
write it to the pool storage.&lt;/p&gt;
&lt;p&gt;Extremely basic usage of the crate can trigger this issue, e.g. this code from a doctest:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-rust&quot;&gt;use crayon::prelude::*;
application::oneshot().unwrap();
let mut params = MeshParams::default();
let mesh = video::create_mesh(params, None).unwrap();
// Deletes the mesh object.
video::delete_mesh(mesh); // &amp;lt;-- UB
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The Clippy warning for this code was silenced in commit c2fde19caf6149d91faa504263f0bc5cafc35de5.&lt;/p&gt;
&lt;p&gt;Discovered via https://asan.saethlin.dev/ub?crate=crayon&amp;amp;version=0.7.1&lt;/p&gt;
&lt;p id=&quot;license&quot; class=&quot;license&quot;&gt;Advisory available under &lt;a href=&quot;https://spdx.org/licenses/CC0-1.0.html&quot;&gt;CC0-1.0&lt;/a&gt;
license.
&lt;/p&gt;
&lt;/article&gt;</content></entry></feed>