Files
advisory-db/feed.xml
T
2025-04-10 12:29:52 +00:00

1717 lines
57 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>RustSec Advisories</title><id>https://rustsec.org/feed.xml</id><updated>2025-04-10T12: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-2025-0024: Vulnerability in crossbeam-channel</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0024.html</id><updated>2025-04-10T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0024.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0024: Vulnerability in crossbeam-channel"/><published>2025-04-10T12:00:00+00:00</published><summary xml:lang="en">crossbeam-channel: double free on Drop</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/crossbeam-channel/RUSTSEC-2025-0024.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/crossbeam-channel/RUSTSEC-2025-0024.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2025-0024&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2025-0024
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;crossbeam-channel: double free on Drop&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;2025-04-08&quot;&gt;
April 8, 2025
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2025-04-10&quot;&gt;
April 10, 2025
&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/crossbeam-channel.html&quot;&gt;crossbeam-channel&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/crossbeam-channel&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/race.html&quot;&gt;#race&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;
TROVE-2025-013
&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/crossbeam-rs/crossbeam/pull/1187&quot;&gt;
https://github.com/crossbeam-rs/crossbeam/pull/1187
&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.5.15&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.11&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 internal &lt;code&gt;Channel&lt;/code&gt; type&apos;s &lt;code&gt;Drop&lt;/code&gt; method has a race
which could, in some circumstances, lead to a double-free.
This could result in memory corruption.&lt;/p&gt;
&lt;p&gt;Quoting from the
&lt;a href=&quot;https://github.com/crossbeam-rs/crossbeam/pull/1187#issue-2980761131&quot;&gt;upstream description in merge request #1187&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The problem lies in the fact that &lt;code&gt;dicard_all_messages&lt;/code&gt; contained two paths that could lead to &lt;code&gt;head.block&lt;/code&gt; being read but only one of them would swap the value. This meant that &lt;code&gt;dicard_all_messages&lt;/code&gt; could end up observing a non-null block pointer (and therefore attempting to free it) without setting &lt;code&gt;head.block&lt;/code&gt; to null. This would then lead to &lt;code&gt;Channel::drop&lt;/code&gt; making a second attempt at dropping the same pointer.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The bug was introduced while fixing a memory leak, in
upstream &lt;a href=&quot;https://github.com/crossbeam-rs/crossbeam/pull/1084&quot;&gt;MR #1084&lt;/a&gt;,
first published in 0.5.12.&lt;/p&gt;
&lt;p&gt;The fix is in
upstream &lt;a href=&quot;https://github.com/crossbeam-rs/crossbeam/pull/1187&quot;&gt;MR #1187&lt;/a&gt;
and has been published in 0.5.15&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-2025-0023: Unsoundness in tokio</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0023.html</id><updated>2025-04-08T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0023.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0023: Unsoundness in tokio"/><published>2025-04-07T12:00:00+00:00</published><summary xml:lang="en">Broadcast channel calls clone in parallel, but does not require `Sync`</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/tokio/RUSTSEC-2025-0023.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/tokio/RUSTSEC-2025-0023.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2025-0023&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2025-0023
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Broadcast channel calls clone in parallel, but does not require &lt;code&gt;Sync&lt;/code&gt;&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;2025-04-07&quot;&gt;
April 7, 2025
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2025-04-07&quot;&gt;
April 7, 2025
&lt;/time&gt;
&lt;time datetime=&quot;2025-04-08&quot;&gt;
(last modified: April 8, 2025)
&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/tokio.html&quot;&gt;tokio&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/tokio&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;
Unsound
&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/tokio-rs/tokio/pull/7232&quot;&gt;
https://github.com/tokio-rs/tokio/pull/7232
&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.38.2, &amp;lt;1.39.0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=1.42.1, &amp;lt;1.43.0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=1.43.1, &amp;lt;1.44.0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=1.44.2&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.2.5&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 broadcast channel internally calls &lt;code&gt;clone&lt;/code&gt; on the stored value when
receiving it, and only requires &lt;code&gt;T:Send&lt;/code&gt;. This means that using the broadcast
channel with values that are &lt;code&gt;Send&lt;/code&gt; but not &lt;code&gt;Sync&lt;/code&gt; can trigger unsoundness if
the &lt;code&gt;clone&lt;/code&gt; implementation makes use of the value being &lt;code&gt;!Sync&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Thank you to Austin Bonander for finding 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-2025-0021: Vulnerability in gix-features</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0021.html</id><updated>2025-04-08T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0021.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0021: Vulnerability in gix-features"/><published>2025-04-04T12:00:00+00:00</published><summary xml:lang="en">SHA-1 collision attacks are not detected</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/gix-features/RUSTSEC-2025-0021.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/gix-features/RUSTSEC-2025-0021.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2025-0021&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2025-0021
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;SHA-1 collision attacks are not detected&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;2025-04-03&quot;&gt;
April 3, 2025
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2025-04-04&quot;&gt;
April 4, 2025
&lt;/time&gt;
&lt;time datetime=&quot;2025-04-08&quot;&gt;
(last modified: April 8, 2025)
&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/gix-features.html&quot;&gt;gix-features&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/gix-features&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/crypto-failure.html&quot;&gt;crypto-failure&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/hash-collision.html&quot;&gt;#hash-collision&lt;/a&gt;
&lt;a href=&quot;/keywords/sha-1.html&quot;&gt;#sha-1&lt;/a&gt;
&lt;a href=&quot;/keywords/weak-hash.html&quot;&gt;#weak-hash&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-2025-31130&quot;&gt;CVE-2025-31130&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/advisories/GHSA-2frx-2596-x5r6&quot;&gt;GHSA-2frx-2596-x5r6&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/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6&quot;&gt;
https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6
&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/advisories/GHSA-2frx-2596-x5r6&quot;&gt;
https://github.com/advisories/GHSA-2frx-2596-x5r6
&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;https://nvd.nist.gov/vuln/detail/CVE-2025-31130&quot;&gt;
https://nvd.nist.gov/vuln/detail/CVE-2025-31130
&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;6.8 &lt;span class=&quot;tag medium&quot;&gt;
MEDIUM
&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;High&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;High&lt;/dd&gt;
&lt;dt&gt;Availability&lt;/dt&gt;&lt;dd&gt;None&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:H/PR:N/UI:N/S:C/C:N/I:H/A:N&quot;&gt;CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N&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.41.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;gix_features::hash::Hasher::digest&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.41.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;gix_features::hash::Hasher::update&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.41.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;gix_features::hash::Write::flush&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.41.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;gix_features::hash::Write::new&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.41.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;gix_features::hash::Write::write&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.41.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;gix_features::hash::bytes&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.41.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;gix_features::hash::bytes_of_file&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.41.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;gix_features::hash::bytes_with_hasher&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.41.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;gix_features::hash::hasher&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.41.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;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;gitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks.&lt;/p&gt;
&lt;h3&gt;Details&lt;/h3&gt;
&lt;p&gt;gitoxide uses the &lt;code&gt;sha1_smol&lt;/code&gt; or &lt;code&gt;sha1&lt;/code&gt; crate, both of which implement standard SHA-1 without any mitigations for collision attacks. This means that two distinct Git objects with colliding SHA-1 hashes would break the Git object model and integrity checks when used with gitoxide.&lt;/p&gt;
&lt;p&gt;The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the &lt;a href=&quot;https://github.com/crmarcstevens/sha1collisiondetection&quot;&gt;sha1collisiondetection&lt;/a&gt; algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes.&lt;/p&gt;
&lt;h3&gt;PoC&lt;/h3&gt;
&lt;p&gt;The following program demonstrates the problem, using the two &lt;a href=&quot;https://shattered.io/&quot;&gt;SHAttered PDFs&lt;/a&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-rust&quot;&gt;use sha1_checked::{CollisionResult, Digest};
fn sha1_oid_of_file(filename: &amp;amp;str) -&amp;gt; gix::ObjectId {
let mut hasher = gix::features::hash::hasher(gix::hash::Kind::Sha1);
hasher.update(&amp;amp;std::fs::read(filename).unwrap());
gix::ObjectId::Sha1(hasher.digest())
}
fn sha1dc_oid_of_file(filename: &amp;amp;str) -&amp;gt; Result&amp;lt;gix::ObjectId, String&amp;gt; {
// Matches Git’s behaviour.
let mut hasher = sha1_checked::Builder::default().safe_hash(false).build();
hasher.update(&amp;amp;std::fs::read(filename).unwrap());
match hasher.try_finalize() {
CollisionResult::Ok(digest) =&amp;gt; Ok(gix::ObjectId::Sha1(digest.into())),
CollisionResult::Mitigated(_) =&amp;gt; unreachable!(),
CollisionResult::Collision(digest) =&amp;gt; Err(format!(
&amp;quot;Collision attack: {}&amp;quot;,
gix::ObjectId::Sha1(digest.into()).to_hex()
)),
}
}
fn main() {
dbg!(sha1_oid_of_file(&amp;quot;shattered-1.pdf&amp;quot;));
dbg!(sha1_oid_of_file(&amp;quot;shattered-2.pdf&amp;quot;));
dbg!(sha1dc_oid_of_file(&amp;quot;shattered-1.pdf&amp;quot;));
dbg!(sha1dc_oid_of_file(&amp;quot;shattered-2.pdf&amp;quot;));
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The output is as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[src/main.rs:24:5] sha1_oid_of_file(&amp;quot;shattered-1.pdf&amp;quot;) = Sha1(38762cf7f55934b34d179ae6a4c80cadccbb7f0a)
[src/main.rs:25:5] sha1_oid_of_file(&amp;quot;shattered-2.pdf&amp;quot;) = Sha1(38762cf7f55934b34d179ae6a4c80cadccbb7f0a)
[src/main.rs:26:5] sha1dc_oid_of_file(&amp;quot;shattered-1.pdf&amp;quot;) = Err(
&amp;quot;Collision attack: 38762cf7f55934b34d179ae6a4c80cadccbb7f0a&amp;quot;,
)
[src/main.rs:27:5] sha1dc_oid_of_file(&amp;quot;shattered-2.pdf&amp;quot;) = Err(
&amp;quot;Collision attack: 38762cf7f55934b34d179ae6a4c80cadccbb7f0a&amp;quot;,
)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The latter behaviour matches Git.&lt;/p&gt;
&lt;p&gt;Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources.&lt;/p&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;An attacker with the ability to mount a collision attack on SHA-1 like the &lt;a href=&quot;https://shattered.io/&quot;&gt;SHAttered&lt;/a&gt; or &lt;a href=&quot;https://sha-mbles.github.io/&quot;&gt;SHA-1 is a Shambles&lt;/a&gt; attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities.&lt;/p&gt;
&lt;p&gt;This vulnerability affects any user of gitoxide, including &lt;code&gt;gix-*&lt;/code&gt; library crates, that reads or writes Git objects.&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-2025-0022: Vulnerability in openssl</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0022.html</id><updated>2025-04-04T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0022.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0022: Vulnerability in openssl"/><published>2025-04-04T12:00:00+00:00</published><summary xml:lang="en">Use-After-Free in `Md::fetch` and `Cipher::fetch`</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/RUSTSEC-2025-0022.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/openssl/RUSTSEC-2025-0022.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2025-0022&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2025-0022
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Use-After-Free in &lt;code&gt;Md::fetch&lt;/code&gt; and &lt;code&gt;Cipher::fetch&lt;/code&gt;&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;2025-04-04&quot;&gt;
April 4, 2025
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2025-04-04&quot;&gt;
April 4, 2025
&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.html&quot;&gt;openssl&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/openssl&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/sfackler/rust-openssl/pull/2390&quot;&gt;
https://github.com/sfackler/rust-openssl/pull/2390
&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.10.72&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.10.39&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;openssl::cipher::Cipher::fetch&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.10.39, &amp;lt;0.10.72&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;openssl::md::Md::fetch&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.10.39, &amp;lt;0.10.72&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;When a &lt;code&gt;Some(...)&lt;/code&gt; value was passed to the &lt;code&gt;properties&lt;/code&gt; argument of either of these functions, a use-after-free would result.&lt;/p&gt;
&lt;p&gt;In practice this would nearly always result in OpenSSL treating the properties as an empty string (due to &lt;code&gt;CString::drop&lt;/code&gt;&apos;s behavior).&lt;/p&gt;
&lt;p&gt;The maintainers thank &lt;a href=&quot;https://github.com/quitbug/&quot;&gt;quitbug&lt;/a&gt; for reporting this vulnerability to us.&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-2025-0020: Vulnerability in pyo3</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0020.html</id><updated>2025-04-01T12:00:00+00:00</updated><category term="memory-exposure"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0020.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0020: Vulnerability in pyo3"/><published>2025-04-01T12:00:00+00:00</published><summary xml:lang="en">Risk of buffer overflow in `PyString::from_object`</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/pyo3/RUSTSEC-2025-0020.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/pyo3/RUSTSEC-2025-0020.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2025-0020&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2025-0020
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Risk of buffer overflow in &lt;code&gt;PyString::from_object&lt;/code&gt;&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;2025-04-01&quot;&gt;
April 1, 2025
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2025-04-01&quot;&gt;
April 1, 2025
&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/pyo3.html&quot;&gt;pyo3&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/pyo3&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;/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;/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/PyO3/pyo3/issues/5005&quot;&gt;
https://github.com/PyO3/pyo3/issues/5005
&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.24.1&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;pyo3::types::PyString::from_object&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.24.1&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;pyo3::types::PyString::from_object_bound&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.24.1&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;gt;=0.21.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;&lt;code&gt;PyString::from_object&lt;/code&gt; took &lt;code&gt;&amp;amp;str&lt;/code&gt; arguments and forwarded them directly to the Python C API without checking for terminating nul bytes. This could lead the Python interpreter to read beyond the end of the &lt;code&gt;&amp;amp;str&lt;/code&gt; data and potentially leak contents of the out-of-bounds read (by raising a Python exception containing a copy of the data including the overflow).&lt;/p&gt;
&lt;p&gt;In PyO3 0.24.1 this function will now allocate a &lt;code&gt;CString&lt;/code&gt; to guarantee a terminating nul bytes. PyO3 0.25 will likely offer an alternative API which takes &lt;code&gt;&amp;amp;CStr&lt;/code&gt; arguments.&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-2025-0019: Unsoundness in array-init-cursor</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0019.html</id><updated>2025-03-30T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0019.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0019: Unsoundness in array-init-cursor"/><published>2025-03-30T12:00:00+00:00</published><summary xml:lang="en">`array-init-cursor` in version 0.2.0 and below is unsound when used with types that implement `Drop`</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/array-init-cursor/RUSTSEC-2025-0019.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/array-init-cursor/RUSTSEC-2025-0019.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2025-0019&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2025-0019
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;&lt;code&gt;array-init-cursor&lt;/code&gt; in version 0.2.0 and below is unsound when used with types that implement &lt;code&gt;Drop&lt;/code&gt;&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;2025-03-27&quot;&gt;
March 27, 2025
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2025-03-30&quot;&gt;
March 30, 2025
&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/array-init-cursor.html&quot;&gt;array-init-cursor&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/array-init-cursor&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;
Unsound
&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/planus-org/planus/issues/293&quot;&gt;
https://github.com/planus-org/planus/issues/293
&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.2.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;The &lt;code&gt;Drop&lt;/code&gt; implementation will get run twice when using the cursor.&lt;/p&gt;
&lt;p&gt;This issue does not affect you, if you are using only using the crate with
types that are &lt;code&gt;Copy&lt;/code&gt; such as &lt;code&gt;u8&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This issue also does not affect you, if you are only depending on it through
the crate &lt;code&gt;planus&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-2025-0018: Vulnerability in xmas-elf</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0018.html</id><updated>2025-03-26T12:00:00+00:00</updated><category term="memory-exposure"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0018.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0018: Vulnerability in xmas-elf"/><published>2025-03-26T12:00:00+00:00</published><summary xml:lang="en">Potential out-of-bounds read with a malformed ELF file and the HashTable API.</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/xmas-elf/RUSTSEC-2025-0018.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/xmas-elf/RUSTSEC-2025-0018.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2025-0018&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2025-0018
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Potential out-of-bounds read with a malformed ELF file and the HashTable API.&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;2025-03-26&quot;&gt;
March 26, 2025
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2025-03-26&quot;&gt;
March 26, 2025
&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/xmas-elf.html&quot;&gt;xmas-elf&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/xmas-elf&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;/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/nrc/xmas-elf/issues/86&quot;&gt;
https://github.com/nrc/xmas-elf/issues/86
&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.10&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;xmas_elf::hash::HashTable::get_bucket&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.10&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;xmas_elf::hash::HashTable::get_chain&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.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;p&gt;Affected versions of this crate only validated the &lt;code&gt;index&lt;/code&gt; argument of
&lt;code&gt;HashTable::get_bucket&lt;/code&gt; and &lt;code&gt;HashTable::get_chain&lt;/code&gt; against the input-controlled
&lt;code&gt;bucket_count&lt;/code&gt; and &lt;code&gt;chain_count&lt;/code&gt; fields, but not against the size of the ELF
section. As a result, a malformed ELF file could trigger out-of-bounds reads in
a consumer of the HashTable API by setting these fields to inappropriately large
values that would fall outside the relevant hash table section, and by
introducing correspondingly out-of-bounds hash table indexes elsewhere in the ELF
file.&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-2025-0017: trust-dns-proto is unmaintained</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0017.html</id><updated>2025-03-23T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0017.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0017: trust-dns-proto is unmaintained"/><published>2025-03-23T12:00:00+00:00</published><summary xml:lang="en">The `trust-dns` project has been rebranded to `hickory-dns`</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/trust-dns-proto/RUSTSEC-2025-0017.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/trust-dns-proto/RUSTSEC-2025-0017.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2025-0017&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2025-0017
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;The &lt;code&gt;trust-dns&lt;/code&gt; project has been rebranded to &lt;code&gt;hickory-dns&lt;/code&gt;&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;2025-03-23&quot;&gt;
March 23, 2025
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2025-03-23&quot;&gt;
March 23, 2025
&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/trust-dns-proto.html&quot;&gt;trust-dns-proto&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/trust-dns-proto&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://crates.io/crates/hickory-proto&quot;&gt;
https://crates.io/crates/hickory-proto
&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/hickory-dns/hickory-dns/issues/2051&quot;&gt;
https://github.com/hickory-dns/hickory-dns/issues/2051
&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.23.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;The &lt;code&gt;trust-dns-proto&lt;/code&gt; crate is now available as &lt;code&gt;hickory-proto&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-2025-0015: Vulnerability in web-push</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0015.html</id><updated>2025-03-22T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0015.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0015: Vulnerability in web-push"/><published>2025-03-22T12:00:00+00:00</published><summary xml:lang="en">Denial of Service via malicious Web Push endpoint</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/web-push/RUSTSEC-2025-0015.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/web-push/RUSTSEC-2025-0015.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2025-0015&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2025-0015
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Denial of Service via malicious Web Push endpoint&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;2025-02-16&quot;&gt;
February 16, 2025
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2025-03-22&quot;&gt;
March 22, 2025
&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/web-push.html&quot;&gt;web-push&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/web-push&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/oom.html&quot;&gt;#oom&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/pimeys/rust-web-push/pull/68&quot;&gt;
https://github.com/pimeys/rust-web-push/pull/68
&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.10.3&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;Prior to version 0.10.3, the built-in clients of the &lt;code&gt;web-push&lt;/code&gt; crate
eagerly allocated memory based on the &lt;code&gt;Content-Length&lt;/code&gt; header returned by the
Web Push endpoint. Malicious Web Push endpoints could return a large
&lt;code&gt;Content-Length&lt;/code&gt; without ever having to send as much data, leading to
denial of service by memory exhaustion.&lt;/p&gt;
&lt;p&gt;Services providing Web Push notifications typically allow the user to
register an arbitrary endpoint, so the endpoint should not be trusted.&lt;/p&gt;
&lt;p&gt;The fixed version 0.10.3 now limits the amount of memory it will allocate
for each response, limits the amount of data it will read from the endpoint,
and returns an error if the endpoint sends too much data.&lt;/p&gt;
&lt;p&gt;As before, it is recommended that services add a timeout for each request
to Web Push endpoints.&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-2025-0016: Vulnerability in pared</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0016.html</id><updated>2025-03-22T12:00:00+00:00</updated><category term="code-execution"/><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2025-0016.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0016: Vulnerability in pared"/><published>2025-03-22T12:00:00+00:00</published><summary xml:lang="en">Use after free in `Parc` and `Prc` due to missing lifetime constraints</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/pared/RUSTSEC-2025-0016.md&quot;&gt;History&lt;/a&gt; ⋅
&lt;a href=&quot;https://github.com/RustSec/advisory-db/edit/main/crates/pared/RUSTSEC-2025-0016.md&quot;&gt;Edit&lt;/a&gt; ⋅
&lt;a href=&quot;https://api.osv.dev/v1/vulns/RUSTSEC-2025-0016&quot;&gt;JSON (OSV)&lt;/a&gt;
&lt;/span&gt;
&lt;header&gt;
&lt;h1&gt;
RUSTSEC-2025-0016
&lt;/h1&gt;
&lt;span class=&quot;subtitle&quot;&gt;&lt;p&gt;Use after free in &lt;code&gt;Parc&lt;/code&gt; and &lt;code&gt;Prc&lt;/code&gt; due to missing lifetime constraints&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;2025-03-13&quot;&gt;
March 13, 2025
&lt;/time&gt;
&lt;/dd&gt;
&lt;dt id=&quot;issued&quot;&gt;Issued&lt;/dt&gt;
&lt;dd&gt;
&lt;time datetime=&quot;2025-03-22&quot;&gt;
March 22, 2025
&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/pared.html&quot;&gt;pared&lt;/a&gt;
(&lt;a href=&quot;https://crates.io/crates/pared&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/code-execution.html&quot;&gt;code-execution&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;details&quot;&gt;References&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&quot;https://github.com/radekvit/pared/issues/2&quot;&gt;
https://github.com/radekvit/pared/issues/2
&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.4.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;pared::prc::Prc::from_rc&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.4.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;pared::prc::Prc::project&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.4.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;pared::prc::Prc::try_from_rc&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.4.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;pared::sync::Parc::from_arc&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.4.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;pared::sync::Parc::project&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.4.0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;pared::sync::Parc::try_from_arc&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;0.4.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;Affected versions of this crate didn&apos;t provide sufficient lifetime constraints to conversion
functions from &lt;code&gt;alloc::sync::Arc&lt;/code&gt; and &lt;code&gt;alloc::rc::Rc&lt;/code&gt;, which made it possible to create
projections of these reference counted pointers. Unlike the original reference counted pointers,
these projections could outlive original data&apos;s lifetimes.&lt;/p&gt;
&lt;p&gt;This projected pointer could cause the original &lt;code&gt;Arc&lt;/code&gt;&apos;s or &lt;code&gt;Rc&lt;/code&gt;&apos;s &lt;code&gt;Drop::drop&lt;/code&gt; to get called at
a point where the original data was no longer valid, leading to a potential use after free.&lt;/p&gt;
&lt;p&gt;The affected functions were&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;pared::prc::Prc::from_rc&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pared::prc::Prc::project&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pared::prc::Prc::try_from_rc&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pared::sync::Parc::from_arc&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pared::sync::Parc::project&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pared::sync::Parc::try_from_arc&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This flaw was fixed in &lt;a href=&quot;https://github.com/radekvit/pared/commit/108f540ea8acb6073751a1aa386085c1cdc4fd1e&quot;&gt;108f540ea8acb6073751a1aa386085c1cdc4fd1e&lt;/a&gt;
by requiring that the type stored in the &lt;code&gt;Arc&lt;/code&gt;s and &lt;code&gt;Rc&lt;/code&gt;s passed to these functions contain &lt;code&gt;T: &apos;static&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></feed>