mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 19:34:31 -06:00
1946 lines
81 KiB
XML
1946 lines
81 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-07-08T12: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-0346: Vulnerability in zerovec-derive</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0346.html</id><updated>2024-07-08T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0346.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0346: Vulnerability in zerovec-derive"/><published>2024-07-08T12:00:00+00:00</published><summary xml:lang="en">Incorrect usage of `#[repr(packed)]`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/zerovec-derive/RUSTSEC-2024-0346.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/zerovec-derive/RUSTSEC-2024-0346.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0346">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0346
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Incorrect usage of <code>#[repr(packed)]</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-07-01">
|
|
July 1, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-07-08">
|
|
July 8, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/zerovec-derive.html">zerovec-derive</a>
|
|
(<a href="https://crates.io/crates/zerovec-derive">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.10.4</code></li>
|
|
|
|
<li><code>&gt;=0.9.7, &lt;0.10.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The affected versions make unsafe memory accesses under the assumption that <code>#[repr(packed)]</code> has a guaranteed field order.</p>
|
|
<p>The Rust specification does not guarantee this, and https://github.com/rust-lang/rust/pull/125360 (1.80.0-beta) starts
|
|
reordering fields of <code>#[repr(packed)]</code> structs, leading to illegal memory accesses.</p>
|
|
<p>The patched versions <code>0.9.7</code> and <code>0.10.4</code> use <code>#[repr(C, packed)]</code>, which guarantees field order.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2024-0348: Vulnerability in gix-index</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0348.html</id><updated>2024-07-08T12:00:00+00:00</updated><category term="code-execution"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0348.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0348: Vulnerability in gix-index"/><published>2024-07-08T12:00:00+00:00</published><summary xml:lang="en">Traversal outside working tree enables arbitrary code execution</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/gix-index/RUSTSEC-2024-0348.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/gix-index/RUSTSEC-2024-0348.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0348">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0348
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Traversal outside working tree enables arbitrary code execution</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-05-22">
|
|
May 22, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-07-08">
|
|
July 8, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/gix-index.html">gix-index</a>
|
|
(<a href="https://crates.io/crates/gix-index">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/code-execution.html">code-execution</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/directory-traversal.html">#directory-traversal</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-35186">CVE-2024-35186</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-7w47-3wg8-547c">GHSA-7w47-3wg8-547c</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c">
|
|
https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/advisories/GHSA-7w47-3wg8-547c">
|
|
https://github.com/advisories/GHSA-7w47-3wg8-547c
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://nvd.nist.gov/vuln/detail/CVE-2024-35186">
|
|
https://nvd.nist.gov/vuln/detail/CVE-2024-35186
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>8.8 <span class="tag high">
|
|
HIGH
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack vector</dt><dd>Network</dd>
|
|
|
|
|
|
|
|
<dt>Attack complexity</dt><dd>Low</d>
|
|
|
|
|
|
|
|
<dt>Privileges required</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>User interaction</dt><dd>Required</dd>
|
|
|
|
|
|
|
|
<dt>Scope</dt><dd>Unchanged</dd>
|
|
|
|
|
|
|
|
<dt>Confidentiality</dt><dd>High</dd>
|
|
|
|
|
|
|
|
<dt>Integrity</dt><dd>High</dd>
|
|
|
|
|
|
|
|
<dt>Availability</dt><dd>High</dd>
|
|
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt id="cvss">CVSS Vector</dt>
|
|
<dd><a href="https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H">CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.33.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h3>Summary</h3>
|
|
<p>During checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application.</p>
|
|
<h3>Details</h3>
|
|
<p>Although <code>gix-worktree-state</code> checks for collisions with existing files, it does not itself check if a path is really in the working tree when performing a checkout, nor do the path checks in <code>gix-fs</code> and <code>gix-worktree</code> prevent this. Cloning an untrusted repository containing specially crafted tree or blob names will create new files outside the repository, or inside the repository or a submodule's <code>.git</code> directory. The simplest cases are:</p>
|
|
<ul>
|
|
<li>A tree named <code>..</code> to traverse upward. This facilitates arbitrary code execution because files can be placed in one or more locations where they are likely to be executed soon.</li>
|
|
<li>A tree named <code>.git</code> to enter a <code>.git</code> directory. This facilitates arbitrary code execution because hooks can be installed.</li>
|
|
</ul>
|
|
<p>A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:</p>
|
|
<ul>
|
|
<li>A tree or blob whose name contains one or more <code>/</code>, to traverse upward or downward. For example, even without containing any tree named <code>..</code> or <code>.git</code>, a repository can represent a file named <code>../outside</code> or <code>.git/hooks/pre-commit</code>. This is distinct from the more intuitive case a repository containing trees that represent those paths.</li>
|
|
<li>In Windows, a tree or blob whose name contains one or more <code>\</code>, to traverse upward or downward. (Unlike <code>/</code>, these are valid on other systems.) See <a href="https://github.com/git/git/security/advisories/GHSA-xjx4-8694-q2fq">GHSA-xjx4-8694-q2fq</a>.</li>
|
|
<li>On a case-insensitive filesystem (such as NTFS, APFS, or HFS+), a tree named as a case variant of <code>.git</code>.</li>
|
|
<li>On HFS+, a tree named like <code>.git</code> or a case variant, with characters added that HFS+ ignores <a href="https://developer.apple.com/library/archive/technotes/tn/tn1150.html#StringComparisonAlgorithm">in collation</a>. See https://github.com/git/git/commit/6162a1d323d24fd8cbbb1a6145a91fb849b2568f.</li>
|
|
<li>On NTFS, a tree equivalent to <code>.git</code> (or a case variant) by the use of <a href="https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/c54dec26-1551-4d3a-a0ea-4fa40f848eb3">NTFS stream</a> notation, such as <code>.git::$INDEX_ALLOCATION</code>. See <a href="https://github.com/git/git/security/advisories/GHSA-5wph-8frv-58vj">GHSA-5wph-8frv-58vj</a>.</li>
|
|
<li>On an NTFS volume with <a href="https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#short-vs-long-names">8.3 aliasing</a> enabled, a tree named as <code>git~1</code> (or a case variant). See <a href="https://github.com/git/git/security/advisories/GHSA-589j-mmg9-733v">GHSA-589j-mmg9-733v</a>.</li>
|
|
</ul>
|
|
<p>When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain.</p>
|
|
<h3>PoC</h3>
|
|
<p>For simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume <code>sed</code> supports <code>-i</code>, which is the case on most systems. If using Windows, a Git Bash shell should be used.</p>
|
|
<h4>Example: Downward traversal to install hooks</h4>
|
|
<ol>
|
|
<li>Create a new repository with <code>git init dangerous-repo-installs-hook</code> and <code>cd</code> into the directory.</li>
|
|
<li>Create the stand-in called <code>.git@hooks@pre-commit</code>, with the <em>contents</em>:
|
|
<pre><code class="language-sh">#!/bin/sh
|
|
printf 'Vulnerable!\n'
|
|
date &gt;vulnerable
|
|
</code></pre>
|
|
</li>
|
|
<li>Stage the stand-in: <code>git add --chmod=+x .git@hooks@pre-commit</code></li>
|
|
<li>Edit the index: <code>env LC_ALL=C sed -i.orig 's|\.git@hooks@pre-commit|.git/hooks/pre-commit|' .git/index</code></li>
|
|
<li>Commit: <code>git commit -m 'Initial commit'</code></li>
|
|
<li><em>Optionally</em>, push to a private remote.</li>
|
|
</ol>
|
|
<p>Then, on another or the same machine:</p>
|
|
<ol>
|
|
<li>Clone the repository with a <code>gix clone …</code> command.</li>
|
|
<li>Enter the newly created directory.</li>
|
|
<li><em>Optionally</em> run <code>ls -l .git/hooks</code> to observe that the <code>pre-commit</code> hook is already present.</li>
|
|
<li>Make a new file and commit it with <code>git</code>. This causes the payload surreptitiously installed as a <code>pre-commit</code> hook to run, printing the message <code>Vulnerable!</code> and creating a file in the current directory containing the current date and time.</li>
|
|
</ol>
|
|
<p>Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs <code>git commit</code> is capable of.</p>
|
|
<h4>Example: Upward traversal to create a file above the working tree</h4>
|
|
<ol>
|
|
<li>Create a new repository with <code>git init dangerous-repo-reaches-up</code>, and <code>cd</code> into the directory.</li>
|
|
<li>Create the stand-in: <code>echo 'A file outside the working tree, somehow.' &gt;..@outside</code></li>
|
|
<li>Stage the stand-in: <code>git add ..@outside</code></li>
|
|
<li>Edit the index: <code>env LC_ALL=C sed -i.orig 's|\.\.@outside|../outside|' .git/index</code></li>
|
|
<li>Commit: <code>git commit -m 'Initial commit'</code></li>
|
|
<li><em>Optionally</em>, push to a private remote.</li>
|
|
</ol>
|
|
<p>Then, as above, on the same or another machine, clone the repository with a <code>gix clone …</code> command. Observe that a file named <code>outside</code> is present alongside (not inside) the cloned directory.</p>
|
|
<h3>Impact</h3>
|
|
<p>Any use of <code>gix</code> or another application that makes use of <code>gix-worktree-state</code>, or otherwise relies on <code>gix-fs</code> and <code>gix-worktree</code> for validation, is affected, if used to clone untrusted repositories. The above description focuses on code execution, as that leads to a complete loss of confidentiality, integrity, and availability, but creating files outside a working tree without attempting to execute code can directly impact integrity as well.</p>
|
|
<p>In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability <em>may</em> be lower when <code>gix</code> is used to clone a repository for CI/CD purposes, even if untrusted, since in such uses the environment is usually isolated and arbitrary code is usually run deliberately from the repository with necessary safeguards in place.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2024-0347: Vulnerability in zerovec</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0347.html</id><updated>2024-07-08T12:00:00+00:00</updated><category term="memory-corruption"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0347.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0347: Vulnerability in zerovec"/><published>2024-07-08T12:00:00+00:00</published><summary xml:lang="en">Incorrect usage of `#[repr(packed)]`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/zerovec/RUSTSEC-2024-0347.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/zerovec/RUSTSEC-2024-0347.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0347">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0347
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Incorrect usage of <code>#[repr(packed)]</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-07-01">
|
|
July 1, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-07-08">
|
|
July 8, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/zerovec.html">zerovec</a>
|
|
(<a href="https://crates.io/crates/zerovec">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/memory-corruption.html">memory-corruption</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.10.4</code></li>
|
|
|
|
<li><code>&gt;=0.9.7, &lt;0.10.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>The affected versions make unsafe memory accesses under the assumption that <code>#[repr(packed)]</code> has a guaranteed field order.</p>
|
|
<p>The Rust specification does not guarantee this, and https://github.com/rust-lang/rust/pull/125360 (1.80.0-beta) starts
|
|
reordering fields of <code>#[repr(packed)]</code> structs, leading to illegal memory accesses.</p>
|
|
<p>The patched versions <code>0.9.7</code> and <code>0.10.4</code> use <code>#[repr(C, packed)]</code>, which guarantees field order.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2024-0349: Vulnerability in gix-worktree</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0349.html</id><updated>2024-07-08T12:00:00+00:00</updated><category term="code-execution"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0349.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0349: Vulnerability in gix-worktree"/><published>2024-07-08T12:00:00+00:00</published><summary xml:lang="en">Traversal outside working tree enables arbitrary code execution</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/gix-worktree/RUSTSEC-2024-0349.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/gix-worktree/RUSTSEC-2024-0349.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0349">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0349
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Traversal outside working tree enables arbitrary code execution</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-05-22">
|
|
May 22, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-07-08">
|
|
July 8, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/gix-worktree.html">gix-worktree</a>
|
|
(<a href="https://crates.io/crates/gix-worktree">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/code-execution.html">code-execution</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/directory-traversal.html">#directory-traversal</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-35186">CVE-2024-35186</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-7w47-3wg8-547c">GHSA-7w47-3wg8-547c</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c">
|
|
https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/advisories/GHSA-7w47-3wg8-547c">
|
|
https://github.com/advisories/GHSA-7w47-3wg8-547c
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://nvd.nist.gov/vuln/detail/CVE-2024-35186">
|
|
https://nvd.nist.gov/vuln/detail/CVE-2024-35186
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>8.8 <span class="tag high">
|
|
HIGH
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack vector</dt><dd>Network</dd>
|
|
|
|
|
|
|
|
<dt>Attack complexity</dt><dd>Low</d>
|
|
|
|
|
|
|
|
<dt>Privileges required</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>User interaction</dt><dd>Required</dd>
|
|
|
|
|
|
|
|
<dt>Scope</dt><dd>Unchanged</dd>
|
|
|
|
|
|
|
|
<dt>Confidentiality</dt><dd>High</dd>
|
|
|
|
|
|
|
|
<dt>Integrity</dt><dd>High</dd>
|
|
|
|
|
|
|
|
<dt>Availability</dt><dd>High</dd>
|
|
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt id="cvss">CVSS Vector</dt>
|
|
<dd><a href="https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H">CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.34.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h3>Summary</h3>
|
|
<p>During checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application.</p>
|
|
<h3>Details</h3>
|
|
<p>Although <code>gix-worktree-state</code> checks for collisions with existing files, it does not itself check if a path is really in the working tree when performing a checkout, nor do the path checks in <code>gix-fs</code> and <code>gix-worktree</code> prevent this. Cloning an untrusted repository containing specially crafted tree or blob names will create new files outside the repository, or inside the repository or a submodule's <code>.git</code> directory. The simplest cases are:</p>
|
|
<ul>
|
|
<li>A tree named <code>..</code> to traverse upward. This facilitates arbitrary code execution because files can be placed in one or more locations where they are likely to be executed soon.</li>
|
|
<li>A tree named <code>.git</code> to enter a <code>.git</code> directory. This facilitates arbitrary code execution because hooks can be installed.</li>
|
|
</ul>
|
|
<p>A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:</p>
|
|
<ul>
|
|
<li>A tree or blob whose name contains one or more <code>/</code>, to traverse upward or downward. For example, even without containing any tree named <code>..</code> or <code>.git</code>, a repository can represent a file named <code>../outside</code> or <code>.git/hooks/pre-commit</code>. This is distinct from the more intuitive case a repository containing trees that represent those paths.</li>
|
|
<li>In Windows, a tree or blob whose name contains one or more <code>\</code>, to traverse upward or downward. (Unlike <code>/</code>, these are valid on other systems.) See <a href="https://github.com/git/git/security/advisories/GHSA-xjx4-8694-q2fq">GHSA-xjx4-8694-q2fq</a>.</li>
|
|
<li>On a case-insensitive filesystem (such as NTFS, APFS, or HFS+), a tree named as a case variant of <code>.git</code>.</li>
|
|
<li>On HFS+, a tree named like <code>.git</code> or a case variant, with characters added that HFS+ ignores <a href="https://developer.apple.com/library/archive/technotes/tn/tn1150.html#StringComparisonAlgorithm">in collation</a>. See https://github.com/git/git/commit/6162a1d323d24fd8cbbb1a6145a91fb849b2568f.</li>
|
|
<li>On NTFS, a tree equivalent to <code>.git</code> (or a case variant) by the use of <a href="https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/c54dec26-1551-4d3a-a0ea-4fa40f848eb3">NTFS stream</a> notation, such as <code>.git::$INDEX_ALLOCATION</code>. See <a href="https://github.com/git/git/security/advisories/GHSA-5wph-8frv-58vj">GHSA-5wph-8frv-58vj</a>.</li>
|
|
<li>On an NTFS volume with <a href="https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#short-vs-long-names">8.3 aliasing</a> enabled, a tree named as <code>git~1</code> (or a case variant). See <a href="https://github.com/git/git/security/advisories/GHSA-589j-mmg9-733v">GHSA-589j-mmg9-733v</a>.</li>
|
|
</ul>
|
|
<p>When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain.</p>
|
|
<h3>PoC</h3>
|
|
<p>For simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume <code>sed</code> supports <code>-i</code>, which is the case on most systems. If using Windows, a Git Bash shell should be used.</p>
|
|
<h4>Example: Downward traversal to install hooks</h4>
|
|
<ol>
|
|
<li>Create a new repository with <code>git init dangerous-repo-installs-hook</code> and <code>cd</code> into the directory.</li>
|
|
<li>Create the stand-in called <code>.git@hooks@pre-commit</code>, with the <em>contents</em>:
|
|
<pre><code class="language-sh">#!/bin/sh
|
|
printf 'Vulnerable!\n'
|
|
date &gt;vulnerable
|
|
</code></pre>
|
|
</li>
|
|
<li>Stage the stand-in: <code>git add --chmod=+x .git@hooks@pre-commit</code></li>
|
|
<li>Edit the index: <code>env LC_ALL=C sed -i.orig 's|\.git@hooks@pre-commit|.git/hooks/pre-commit|' .git/index</code></li>
|
|
<li>Commit: <code>git commit -m 'Initial commit'</code></li>
|
|
<li><em>Optionally</em>, push to a private remote.</li>
|
|
</ol>
|
|
<p>Then, on another or the same machine:</p>
|
|
<ol>
|
|
<li>Clone the repository with a <code>gix clone …</code> command.</li>
|
|
<li>Enter the newly created directory.</li>
|
|
<li><em>Optionally</em> run <code>ls -l .git/hooks</code> to observe that the <code>pre-commit</code> hook is already present.</li>
|
|
<li>Make a new file and commit it with <code>git</code>. This causes the payload surreptitiously installed as a <code>pre-commit</code> hook to run, printing the message <code>Vulnerable!</code> and creating a file in the current directory containing the current date and time.</li>
|
|
</ol>
|
|
<p>Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs <code>git commit</code> is capable of.</p>
|
|
<h4>Example: Upward traversal to create a file above the working tree</h4>
|
|
<ol>
|
|
<li>Create a new repository with <code>git init dangerous-repo-reaches-up</code>, and <code>cd</code> into the directory.</li>
|
|
<li>Create the stand-in: <code>echo 'A file outside the working tree, somehow.' &gt;..@outside</code></li>
|
|
<li>Stage the stand-in: <code>git add ..@outside</code></li>
|
|
<li>Edit the index: <code>env LC_ALL=C sed -i.orig 's|\.\.@outside|../outside|' .git/index</code></li>
|
|
<li>Commit: <code>git commit -m 'Initial commit'</code></li>
|
|
<li><em>Optionally</em>, push to a private remote.</li>
|
|
</ol>
|
|
<p>Then, as above, on the same or another machine, clone the repository with a <code>gix clone …</code> command. Observe that a file named <code>outside</code> is present alongside (not inside) the cloned directory.</p>
|
|
<h3>Impact</h3>
|
|
<p>Any use of <code>gix</code> or another application that makes use of <code>gix-worktree-state</code>, or otherwise relies on <code>gix-fs</code> and <code>gix-worktree</code> for validation, is affected, if used to clone untrusted repositories. The above description focuses on code execution, as that leads to a complete loss of confidentiality, integrity, and availability, but creating files outside a working tree without attempting to execute code can directly impact integrity as well.</p>
|
|
<p>In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability <em>may</em> be lower when <code>gix</code> is used to clone a repository for CI/CD purposes, even if untrusted, since in such uses the environment is usually isolated and arbitrary code is usually run deliberately from the repository with necessary safeguards in place.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2024-0350: Vulnerability in gix-fs</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0350.html</id><updated>2024-07-08T12:00:00+00:00</updated><category term="code-execution"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0350.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0350: Vulnerability in gix-fs"/><published>2024-07-08T12:00:00+00:00</published><summary xml:lang="en">Traversal outside working tree enables arbitrary code execution</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/gix-fs/RUSTSEC-2024-0350.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/gix-fs/RUSTSEC-2024-0350.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0350">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0350
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Traversal outside working tree enables arbitrary code execution</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-05-22">
|
|
May 22, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-07-08">
|
|
July 8, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/gix-fs.html">gix-fs</a>
|
|
(<a href="https://crates.io/crates/gix-fs">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/code-execution.html">code-execution</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/directory-traversal.html">#directory-traversal</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-35186">CVE-2024-35186</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-7w47-3wg8-547c">GHSA-7w47-3wg8-547c</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c">
|
|
https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="https://github.com/advisories/GHSA-7w47-3wg8-547c">
|
|
https://github.com/advisories/GHSA-7w47-3wg8-547c
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://nvd.nist.gov/vuln/detail/CVE-2024-35186">
|
|
https://nvd.nist.gov/vuln/detail/CVE-2024-35186
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>8.8 <span class="tag high">
|
|
HIGH
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack vector</dt><dd>Network</dd>
|
|
|
|
|
|
|
|
<dt>Attack complexity</dt><dd>Low</d>
|
|
|
|
|
|
|
|
<dt>Privileges required</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>User interaction</dt><dd>Required</dd>
|
|
|
|
|
|
|
|
<dt>Scope</dt><dd>Unchanged</dd>
|
|
|
|
|
|
|
|
<dt>Confidentiality</dt><dd>High</dd>
|
|
|
|
|
|
|
|
<dt>Integrity</dt><dd>High</dd>
|
|
|
|
|
|
|
|
<dt>Availability</dt><dd>High</dd>
|
|
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt id="cvss">CVSS Vector</dt>
|
|
<dd><a href="https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H">CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.11.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h3>Summary</h3>
|
|
<p>During checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application.</p>
|
|
<h3>Details</h3>
|
|
<p>Although <code>gix-worktree-state</code> checks for collisions with existing files, it does not itself check if a path is really in the working tree when performing a checkout, nor do the path checks in <code>gix-fs</code> and <code>gix-worktree</code> prevent this. Cloning an untrusted repository containing specially crafted tree or blob names will create new files outside the repository, or inside the repository or a submodule's <code>.git</code> directory. The simplest cases are:</p>
|
|
<ul>
|
|
<li>A tree named <code>..</code> to traverse upward. This facilitates arbitrary code execution because files can be placed in one or more locations where they are likely to be executed soon.</li>
|
|
<li>A tree named <code>.git</code> to enter a <code>.git</code> directory. This facilitates arbitrary code execution because hooks can be installed.</li>
|
|
</ul>
|
|
<p>A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:</p>
|
|
<ul>
|
|
<li>A tree or blob whose name contains one or more <code>/</code>, to traverse upward or downward. For example, even without containing any tree named <code>..</code> or <code>.git</code>, a repository can represent a file named <code>../outside</code> or <code>.git/hooks/pre-commit</code>. This is distinct from the more intuitive case a repository containing trees that represent those paths.</li>
|
|
<li>In Windows, a tree or blob whose name contains one or more <code>\</code>, to traverse upward or downward. (Unlike <code>/</code>, these are valid on other systems.) See <a href="https://github.com/git/git/security/advisories/GHSA-xjx4-8694-q2fq">GHSA-xjx4-8694-q2fq</a>.</li>
|
|
<li>On a case-insensitive filesystem (such as NTFS, APFS, or HFS+), a tree named as a case variant of <code>.git</code>.</li>
|
|
<li>On HFS+, a tree named like <code>.git</code> or a case variant, with characters added that HFS+ ignores <a href="https://developer.apple.com/library/archive/technotes/tn/tn1150.html#StringComparisonAlgorithm">in collation</a>. See https://github.com/git/git/commit/6162a1d323d24fd8cbbb1a6145a91fb849b2568f.</li>
|
|
<li>On NTFS, a tree equivalent to <code>.git</code> (or a case variant) by the use of <a href="https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/c54dec26-1551-4d3a-a0ea-4fa40f848eb3">NTFS stream</a> notation, such as <code>.git::$INDEX_ALLOCATION</code>. See <a href="https://github.com/git/git/security/advisories/GHSA-5wph-8frv-58vj">GHSA-5wph-8frv-58vj</a>.</li>
|
|
<li>On an NTFS volume with <a href="https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#short-vs-long-names">8.3 aliasing</a> enabled, a tree named as <code>git~1</code> (or a case variant). See <a href="https://github.com/git/git/security/advisories/GHSA-589j-mmg9-733v">GHSA-589j-mmg9-733v</a>.</li>
|
|
</ul>
|
|
<p>When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain.</p>
|
|
<h3>PoC</h3>
|
|
<p>For simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume <code>sed</code> supports <code>-i</code>, which is the case on most systems. If using Windows, a Git Bash shell should be used.</p>
|
|
<h4>Example: Downward traversal to install hooks</h4>
|
|
<ol>
|
|
<li>Create a new repository with <code>git init dangerous-repo-installs-hook</code> and <code>cd</code> into the directory.</li>
|
|
<li>Create the stand-in called <code>.git@hooks@pre-commit</code>, with the <em>contents</em>:
|
|
<pre><code class="language-sh">#!/bin/sh
|
|
printf 'Vulnerable!\n'
|
|
date &gt;vulnerable
|
|
</code></pre>
|
|
</li>
|
|
<li>Stage the stand-in: <code>git add --chmod=+x .git@hooks@pre-commit</code></li>
|
|
<li>Edit the index: <code>env LC_ALL=C sed -i.orig 's|\.git@hooks@pre-commit|.git/hooks/pre-commit|' .git/index</code></li>
|
|
<li>Commit: <code>git commit -m 'Initial commit'</code></li>
|
|
<li><em>Optionally</em>, push to a private remote.</li>
|
|
</ol>
|
|
<p>Then, on another or the same machine:</p>
|
|
<ol>
|
|
<li>Clone the repository with a <code>gix clone …</code> command.</li>
|
|
<li>Enter the newly created directory.</li>
|
|
<li><em>Optionally</em> run <code>ls -l .git/hooks</code> to observe that the <code>pre-commit</code> hook is already present.</li>
|
|
<li>Make a new file and commit it with <code>git</code>. This causes the payload surreptitiously installed as a <code>pre-commit</code> hook to run, printing the message <code>Vulnerable!</code> and creating a file in the current directory containing the current date and time.</li>
|
|
</ol>
|
|
<p>Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs <code>git commit</code> is capable of.</p>
|
|
<h4>Example: Upward traversal to create a file above the working tree</h4>
|
|
<ol>
|
|
<li>Create a new repository with <code>git init dangerous-repo-reaches-up</code>, and <code>cd</code> into the directory.</li>
|
|
<li>Create the stand-in: <code>echo 'A file outside the working tree, somehow.' &gt;..@outside</code></li>
|
|
<li>Stage the stand-in: <code>git add ..@outside</code></li>
|
|
<li>Edit the index: <code>env LC_ALL=C sed -i.orig 's|\.\.@outside|../outside|' .git/index</code></li>
|
|
<li>Commit: <code>git commit -m 'Initial commit'</code></li>
|
|
<li><em>Optionally</em>, push to a private remote.</li>
|
|
</ol>
|
|
<p>Then, as above, on the same or another machine, clone the repository with a <code>gix clone …</code> command. Observe that a file named <code>outside</code> is present alongside (not inside) the cloned directory.</p>
|
|
<h3>Impact</h3>
|
|
<p>Any use of <code>gix</code> or another application that makes use of <code>gix-worktree-state</code>, or otherwise relies on <code>gix-fs</code> and <code>gix-worktree</code> for validation, is affected, if used to clone untrusted repositories. The above description focuses on code execution, as that leads to a complete loss of confidentiality, integrity, and availability, but creating files outside a working tree without attempting to execute code can directly impact integrity as well.</p>
|
|
<p>In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability <em>may</em> be lower when <code>gix</code> is used to clone a repository for CI/CD purposes, even if untrusted, since in such uses the environment is usually isolated and arbitrary code is usually run deliberately from the repository with necessary safeguards in place.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2024-0345: Vulnerability in sequoia-openpgp</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0345.html</id><updated>2024-06-27T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0345.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0345: Vulnerability in sequoia-openpgp"/><published>2024-06-26T12:00:00+00:00</published><summary xml:lang="en">Low severity (DoS) vulnerability in sequoia-openpgp</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/sequoia-openpgp/RUSTSEC-2024-0345.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/sequoia-openpgp/RUSTSEC-2024-0345.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0345">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0345
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Low severity (DoS) vulnerability in sequoia-openpgp</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-06-26">
|
|
June 26, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-06-26">
|
|
June 26, 2024
|
|
</time>
|
|
|
|
<time datetime="2024-06-27">
|
|
(last modified: June 27, 2024)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/sequoia-openpgp.html">sequoia-openpgp</a>
|
|
(<a href="https://crates.io/crates/sequoia-openpgp">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/denial-of-service.html">denial-of-service</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="keywords">Keywords</dt>
|
|
<dd>
|
|
|
|
<a href="/keywords/infinite-loop.html">#infinite-loop</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://gitlab.com/sequoia-pgp/sequoia/-/issues/1106">
|
|
https://gitlab.com/sequoia-pgp/sequoia/-/issues/1106
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=1.21.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;1.13.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>sequoia_openpgp::cert::raw::RawCertParser</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&gt;=1.13.0, &lt;1.21.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>There is a denial-of-service vulnerability in sequoia-openpgp, our
|
|
crate providing a low-level interface to our OpenPGP implementation.
|
|
When triggered, the process will enter an infinite loop.</p>
|
|
<p>Many thanks to Andrew Gallagher for disclosing the issue to us.</p>
|
|
<h2>Impact</h2>
|
|
<p>Any software directly or indirectly using the interface
|
|
<code>sequoia_openpgp::cert::raw::RawCertParser</code>. Notably, this includes all
|
|
software using the <code>sequoia_cert_store</code> crate.</p>
|
|
<h2>Details</h2>
|
|
<p>The <code>RawCertParser</code> does not advance the input stream when
|
|
encountering unsupported cert (primary key) versions, resulting in an
|
|
infinite loop.</p>
|
|
<p>The fix introduces a new raw-cert-specific
|
|
<code>cert::raw::Error::UnuspportedCert</code>.</p>
|
|
<h2>Affected software</h2>
|
|
<ul>
|
|
<li>sequoia-openpgp 1.13.0</li>
|
|
<li>sequoia-openpgp 1.14.0</li>
|
|
<li>sequoia-openpgp 1.15.0</li>
|
|
<li>sequoia-openpgp 1.16.0</li>
|
|
<li>sequoia-openpgp 1.17.0</li>
|
|
<li>sequoia-openpgp 1.18.0</li>
|
|
<li>sequoia-openpgp 1.19.0</li>
|
|
<li>sequoia-openpgp 1.20.0</li>
|
|
<li>Any software built against a vulnerable version of sequoia-openpgp
|
|
which is directly or indirectly using the interface
|
|
<code>sequoia_openpgp::cert::raw::RawCertParser</code>. Notably, this includes
|
|
all software using the <code>sequoia_cert_store</code> crate.</li>
|
|
</ul>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2024-0344: Vulnerability in curve25519-dalek</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0344.html</id><updated>2024-06-18T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0344.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0344: Vulnerability in curve25519-dalek"/><published>2024-06-18T12:00:00+00:00</published><summary xml:lang="en">Timing variability in `curve25519-dalek`&apos;s `Scalar29::sub`/`Scalar52::sub`</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/curve25519-dalek/RUSTSEC-2024-0344.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/curve25519-dalek/RUSTSEC-2024-0344.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0344">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0344
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Timing variability in <code>curve25519-dalek</code>'s <code>Scalar29::sub</code>/<code>Scalar52::sub</code></p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-06-18">
|
|
June 18, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-06-18">
|
|
June 18, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/curve25519-dalek.html">curve25519-dalek</a>
|
|
(<a href="https://crates.io/crates/curve25519-dalek">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/crypto-failure.html">crypto-failure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/dalek-cryptography/curve25519-dalek/pull/659">
|
|
https://github.com/dalek-cryptography/curve25519-dalek/pull/659
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=4.1.3</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Timing variability of any kind is problematic when working with potentially secret values such as
|
|
elliptic curve scalars, and such issues can potentially leak private keys and other secrets. Such a
|
|
problem was recently discovered in <code>curve25519-dalek</code>.</p>
|
|
<p>The <code>Scalar29::sub</code> (32-bit) and <code>Scalar52::sub</code> (64-bit) functions contained usage of a mask value
|
|
inside a loop where LLVM saw an opportunity to insert a branch instruction (<code>jns</code> on x86) to
|
|
conditionally bypass this code section when the mask value is set to zero as can be seen in godbolt:</p>
|
|
<ul>
|
|
<li>32-bit (see L106): <a href="https://godbolt.org/z/zvaWxzvqv">https://godbolt.org/z/zvaWxzvqv</a></li>
|
|
<li>64-bit (see L48): <a href="https://godbolt.org/z/PczYj7Pda">https://godbolt.org/z/PczYj7Pda</a></li>
|
|
</ul>
|
|
<p>A similar problem was recently discovered in the Kyber reference implementation:</p>
|
|
<p><a href="https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/hqbtIGFKIpU/m/cnE3pbueBgAJ">https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/hqbtIGFKIpU/m/cnE3pbueBgAJ</a></p>
|
|
<p>As discussed on that thread, one portable solution, which is also used in this PR, is to introduce a
|
|
volatile read as an optimization barrier, which prevents the compiler from optimizing it away.</p>
|
|
<p>The fix can be validated in godbolt here:</p>
|
|
<ul>
|
|
<li>32-bit: <a href="https://godbolt.org/z/jc9j7eb8E">https://godbolt.org/z/jc9j7eb8E</a></li>
|
|
<li>64-bit: <a href="https://godbolt.org/z/x8d46Yfah">https://godbolt.org/z/x8d46Yfah</a></li>
|
|
</ul>
|
|
<p>The problem was discovered and the solution independently verified by
|
|
Alexander Wagner <a href="mailto:alexander.wagner@aisec.fraunhofer.de">alexander.wagner@aisec.fraunhofer.de</a> and Lea Themint <a href="mailto:lea.thiemt@tum.de">lea.thiemt@tum.de</a> using
|
|
their DATA tool:</p>
|
|
<p><a href="https://github.com/Fraunhofer-AISEC/DATA">https://github.com/Fraunhofer-AISEC/DATA</a></p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2024-0343: Vulnerability in nano-id</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0343.html</id><updated>2024-06-15T12:00:00+00:00</updated><category term="crypto-failure"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0343.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0343: Vulnerability in nano-id"/><published>2024-06-03T12:00:00+00:00</published><summary xml:lang="en">Reduced entropy due to inadequate character set usage</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/nano-id/RUSTSEC-2024-0343.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/nano-id/RUSTSEC-2024-0343.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0343">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0343
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Reduced entropy due to inadequate character set usage</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-06-03">
|
|
June 3, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-06-03">
|
|
June 3, 2024
|
|
</time>
|
|
|
|
<time datetime="2024-06-15">
|
|
(last modified: June 15, 2024)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/nano-id.html">nano-id</a>
|
|
(<a href="https://crates.io/crates/nano-id">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/crypto-failure.html">crypto-failure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-2hfw-w739-p7x5">GHSA-2hfw-w739-p7x5</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-9hc7-6w9r-wj94">GHSA-9hc7-6w9r-wj94</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-36400">CVE-2024-36400</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>9.4 <span class="tag critical">
|
|
CRITICAL
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack vector</dt><dd>Network</dd>
|
|
|
|
|
|
|
|
<dt>Attack complexity</dt><dd>Low</d>
|
|
|
|
|
|
|
|
<dt>Privileges required</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>User interaction</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Scope</dt><dd>Unchanged</dd>
|
|
|
|
|
|
|
|
<dt>Confidentiality</dt><dd>High</dd>
|
|
|
|
|
|
|
|
<dt>Integrity</dt><dd>High</dd>
|
|
|
|
|
|
|
|
<dt>Availability</dt><dd>Low</dd>
|
|
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt id="cvss">CVSS Vector</dt>
|
|
<dd><a href="https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.4.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>nano_id::base58</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.4.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>nano_id::base62</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.4.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
<dt><code>nano_id::gen</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.4.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<h2>Description</h2>
|
|
<p>Affected versions of the nano-id crate incorrectly generated IDs using a reduced character set in the <code>nano_id::base62</code> and <code>nano_id::base58</code> functions. Specifically, the <code>base62</code> function used a character set of 32 symbols instead of the intended 62 symbols, and the <code>base58</code> function used a character set of 16 symbols instead of the intended 58 symbols. Additionally, the <code>nano_id::gen</code> macro is also affected when a custom character set that is not a power of 2 in size is specified.</p>
|
|
<p>It should be noted that <code>nano_id::base64</code> is not affected by this vulnerability.</p>
|
|
<h2>Impact</h2>
|
|
<p>This can result in a significant reduction in entropy, making the generated IDs predictable and vulnerable to brute-force attacks when the IDs are used in security-sensitive contexts such as session tokens or unique identifiers.</p>
|
|
<h2>Patches</h2>
|
|
<p>The flaws were corrected in commit <a href="https://github.com/viz-rs/nano-id/commit/a9022772b2f1ce38929b5b81eccc670ac9d3ab23">a9022772b2f1ce38929b5b81eccc670ac9d3ab23</a> by updating the the <code>nano_id::gen</code> macro to use all specified characters correctly.</p>
|
|
<h2>PoC</h2>
|
|
<pre><code class="language-rust">use std::collections::BTreeSet;
|
|
|
|
fn main() {
|
|
test_base58();
|
|
test_base62();
|
|
}
|
|
|
|
fn test_base58() {
|
|
let mut produced_symbols = BTreeSet::new();
|
|
|
|
for _ in 0..100_000 {
|
|
id = &quot;RUSTSEC-2024-0343&quot;
|
|
for c in id.chars() {
|
|
produced_symbols.insert(c);
|
|
}
|
|
}
|
|
|
|
println!(
|
|
&quot;{} symbols generated from nano_id::base58&quot;,
|
|
produced_symbols.len()
|
|
);
|
|
}
|
|
|
|
fn test_base62() {
|
|
let mut produced_symbols = BTreeSet::new();
|
|
|
|
for _ in 0..100_000 {
|
|
id = &quot;RUSTSEC-2024-0343&quot;
|
|
for c in id.chars() {
|
|
produced_symbols.insert(c);
|
|
}
|
|
}
|
|
|
|
println!(
|
|
&quot;{} symbols generated from nano_id::base62&quot;,
|
|
produced_symbols.len()
|
|
);
|
|
}
|
|
</code></pre>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2024-0341: Vulnerability in tls-listener</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0341.html</id><updated>2024-05-21T12:00:00+00:00</updated><category term="denial-of-service"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0341.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0341: Vulnerability in tls-listener"/><published>2024-05-20T12:00:00+00:00</published><summary xml:lang="en">Slow loris vulnerability with default configuration</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/tls-listener/RUSTSEC-2024-0341.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/tls-listener/RUSTSEC-2024-0341.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0341">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0341
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Slow loris vulnerability with default configuration</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-03-15">
|
|
March 15, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-05-20">
|
|
May 20, 2024
|
|
</time>
|
|
|
|
<time datetime="2024-05-21">
|
|
(last modified: May 21, 2024)
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/tls-listener.html">tls-listener</a>
|
|
(<a href="https://crates.io/crates/tls-listener">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/denial-of-service.html">denial-of-service</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-28854">CVE-2024-28854</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-2qph-qpvm-2qf7">GHSA-2qph-qpvm-2qf7</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/tmccombs/tls-listener/security/advisories/GHSA-2qph-qpvm-2qf7">
|
|
https://github.com/tmccombs/tls-listener/security/advisories/GHSA-2qph-qpvm-2qf7
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="cvss_score">CVSS Score</dt>
|
|
<dd>7.5 <span class="tag high">
|
|
HIGH
|
|
</span></dd>
|
|
|
|
<dt id="cvss_details">CVSS Details</dt>
|
|
<dd>
|
|
<dl>
|
|
|
|
<dt>Attack vector</dt><dd>Network</dd>
|
|
|
|
|
|
|
|
<dt>Attack complexity</dt><dd>Low</d>
|
|
|
|
|
|
|
|
<dt>Privileges required</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>User interaction</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Scope</dt><dd>Unchanged</dd>
|
|
|
|
|
|
|
|
<dt>Confidentiality</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Integrity</dt><dd>None</dd>
|
|
|
|
|
|
|
|
<dt>Availability</dt><dd>High</dd>
|
|
|
|
</dl>
|
|
</dd>
|
|
|
|
<dt id="cvss">CVSS Vector</dt>
|
|
<dd><a href="https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H">CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H</a></dd>
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.10.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Affected Functions</dt>
|
|
<dd>Version</dd>
|
|
|
|
<dt><code>tls_listener::TlsListener::new</code></dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.10.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>tls-listener is a rust lang wrapper around a connection listener to support TLS. With the default configuration of tls-listener, a malicious user can open 6.4 <code>TcpStream</code>s a second, sending 0 bytes, and can trigger a DoS. The default configuration options make any public service using <code>TlsListener::new()</code> vulnerable to a slow-loris DoS attack. This impacts any publicly accessible service using the default configuration of tls-listener in versions prior to 0.10.0. Users are advised to upgrade. Users unable to upgrade may mitigate this by passing a large value, such as <code>usize::MAX</code> as the parameter to <code>Builder::max_handshakes</code>.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry><entry><title>RUSTSEC-2024-0342: Vulnerability in vodozemac</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0342.html</id><updated>2024-05-20T12:00:00+00:00</updated><category term="memory-exposure"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0342.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0342: Vulnerability in vodozemac"/><published>2024-05-20T12:00:00+00:00</published><summary xml:lang="en">Degraded secret zeroization capabilities</summary><content xml:lang="en" type="html"> <article>
|
|
|
|
<span class="floating-menu">
|
|
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/vodozemac/RUSTSEC-2024-0342.md">History</a> ⋅
|
|
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/vodozemac/RUSTSEC-2024-0342.md">Edit</a> ⋅
|
|
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0342">JSON (OSV)</a>
|
|
</span>
|
|
|
|
|
|
<header>
|
|
<h1>
|
|
|
|
RUSTSEC-2024-0342
|
|
|
|
</h1>
|
|
<span class="subtitle"><p>Degraded secret zeroization capabilities</p>
|
|
</span>
|
|
</header>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt id="reported">Reported</dt>
|
|
<dd>
|
|
<time datetime="2024-05-02">
|
|
May 2, 2024
|
|
</time>
|
|
</dd>
|
|
|
|
<dt id="issued">Issued</dt>
|
|
<dd>
|
|
<time datetime="2024-05-20">
|
|
May 20, 2024
|
|
</time>
|
|
|
|
</dd>
|
|
|
|
<dt id="package">Package</dt>
|
|
<dd>
|
|
|
|
|
|
<a href="/packages/vodozemac.html">vodozemac</a>
|
|
(<a href="https://crates.io/crates/vodozemac">crates.io</a>)
|
|
|
|
|
|
</dd>
|
|
|
|
<dt id="type">Type</dt>
|
|
<dd>
|
|
|
|
Vulnerability
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="categories">Categories</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><a href="/categories/memory-exposure.html">memory-exposure</a></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="aliases">Aliases</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-34063">CVE-2024-34063</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/advisories/GHSA-c3hm-hxwf-g5c6">GHSA-c3hm-hxwf-g5c6</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt id="details">References</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://github.com/matrix-org/vodozemac/security/advisories/GHSA-c3hm-hxwf-g5c6">
|
|
https://github.com/matrix-org/vodozemac/security/advisories/GHSA-c3hm-hxwf-g5c6
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt id="patched">Patched</dt>
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li><code>&gt;=0.6.0</code></li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
<dt id="unaffected">Unaffected</dt>
|
|
<dd>
|
|
<ul>
|
|
|
|
<li><code>&lt;0.5.0</code></li>
|
|
|
|
</ul>
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h3 id="description">Description</h3>
|
|
<p>Versions 0.5.0 and 0.5.1 of vodozemac have degraded secret zeroization capabilities,
|
|
due to changes in third-party cryptographic dependencies (the Dalek crates),
|
|
which moved secret zeroization capabilities behind a feature flag while
|
|
vodozemac disabled the default feature set.</p>
|
|
<h2>Impact</h2>
|
|
<p>The degraded zeroization capabilities could result in the production of more
|
|
memory copies of encryption secrets and secrets could linger in memory longer
|
|
than necessary. This marginally increases the risk of sensitive data exposure.</p>
|
|
<p>Overall, we consider the impact of this issue to be low. Although cryptographic
|
|
best practices recommend the clearing of sensitive information from memory once
|
|
it's no longer needed, the inherent limitations of Rust regarding absolute
|
|
zeroization reduce the practical severity of this lapse.</p>
|
|
|
|
|
|
<p id="license" class="license">Advisory available under <a href="https://spdx.org/licenses/CC0-1.0.html">CC0-1.0</a>
|
|
license.
|
|
|
|
|
|
</p>
|
|
</article></content></entry></feed> |