mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 16:34:33 -06:00
Update gh-pages
This commit is contained in:
@@ -0,0 +1,398 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="author" content="Rust Project Developers">
|
||||
<meta name="description" content="Security advisory database for Rust crates published through https://crates.io">
|
||||
<title>RUSTSEC-2025-0001: gix-worktree-state: gix-worktree-state nonexclusive checkout sets executable files world-writable › RustSec Advisory Database</title>
|
||||
|
||||
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,300italic,400italic" rel="stylesheet">
|
||||
<link href="/css/basic.css" rel="stylesheet">
|
||||
<link href="/css/highlight.css" rel="stylesheet">
|
||||
<link href="/css/index.css" rel="stylesheet">
|
||||
|
||||
<script src="/js/index.js" defer></script>
|
||||
<script src="/js/search.js" defer></script>
|
||||
|
||||
<header>
|
||||
<div class="header-top">
|
||||
<h1><a href="/"><img class="logo-image" src="/img/rustsec-logo.svg" /></a></h1>
|
||||
|
||||
<div class="search">
|
||||
<form onsubmit="return searchform();">
|
||||
<input type="search" id="search-term"
|
||||
placeholder="Look up package or ID..." required
|
||||
size="20">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<nav>
|
||||
<div>
|
||||
<a href="/">About</a>
|
||||
<a href="/advisories/">Advisories</a>
|
||||
<a href="/contributing.html">Report Vulnerabilities</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://rust-lang.zulipchat.com/login/#narrow/stream/146229-wg-secure-code/" title="Zulip" aria-label="Zulip"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height:1em;fill:currentColor"><path d="M473.09 122.97c0 22.69-10.19 42.85-25.72 55.08L296.61 312.69c-2.8 2.4-6.44-1.47-4.42-4.7l55.3-110.72c1.55-3.1-.46-6.91-3.64-6.91H129.36c-33.22 0-60.4-30.32-60.4-67.37 0-37.06 27.18-67.37 60.4-67.37h283.33c33.22-.02 60.4 30.3 60.4 67.35zM129.36 506.05h283.33c33.22 0 60.4-30.32 60.4-67.37 0-37.06-27.18-67.37-60.4-67.37H198.2c-3.18 0-5.19-3.81-3.64-6.91l55.3-110.72c2.02-3.23-1.62-7.1-4.42-4.7L94.68 383.6c-15.53 12.22-25.72 32.39-25.72 55.08 0 37.05 27.18 67.37 60.4 67.37zm522.5-124.15l124.78-179.6v-1.56H663.52v-48.98h190.09v34.21L731.55 363.24v1.56h124.01v48.98h-203.7V381.9zm338.98-230.14V302.6c0 45.09 17.1 68.03 47.43 68.03 31.1 0 48.2-21.77 48.2-68.03V151.76h59.09V298.7c0 80.86-40.82 119.34-109.24 119.34-66.09 0-104.96-36.54-104.96-120.12V151.76h59.48zm244.91 0h59.48v212.25h104.18v49.76h-163.66V151.76zm297 0v262.01h-59.48V151.76h59.48zm90.18 3.5c18.27-3.11 43.93-5.44 80.08-5.44 36.54 0 62.59 7 80.08 20.99 16.72 13.22 27.99 34.99 27.99 60.64 0 25.66-8.55 47.43-24.1 62.2-20.21 19.05-50.15 27.6-85.13 27.6-7.77 0-14.77-.39-20.21-1.17v93.69h-58.7V155.26zm58.7 118.96c5.05 1.17 11.27 1.55 19.83 1.55 31.49 0 50.92-15.94 50.92-42.76 0-24.1-16.72-38.49-46.26-38.49-12.05 0-20.21 1.17-24.49 2.33v77.37z"/></svg></a>
|
||||
<a href="https://twitter.com/RustSec/" title="Twitter" aria-label="Twitter"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height:1em;fill:currentColor"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></svg></a>
|
||||
<a href="https://github.com/RustSec/" title="GitHub" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512" style="height:1em;fill:currentColor"><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg></a>
|
||||
<a href="/feed.xml" title="Atom Feed" aria-label="Atom Feed"><svg xmlns="http://www.w3.org/2000/svg" style="height:1em" viewBox="0 0 8 8">
|
||||
<style type="text/css">
|
||||
.button {stroke: none; fill: currentColor;}
|
||||
.symbol {stroke: none; fill-opacity=0;}
|
||||
</style>
|
||||
<rect class="button" width="8" height="8" rx="1.5" />
|
||||
<circle class="symbol" cx="2" cy="6" r="1" />
|
||||
<path class="symbol" d="m 1,4 a 3,3 0 0 1 3,3 h 1 a 4,4 0 0 0 -4,-4 z" />
|
||||
<path class="symbol" d="m 1,2 a 5,5 0 0 1 5,5 h 1 a 6,6 0 0 0 -6,-6 z" />
|
||||
</svg></a>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="advisory">
|
||||
<article>
|
||||
|
||||
<span class="floating-menu">
|
||||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/gix-worktree-state/RUSTSEC-2025-0001.md">History</a> ⋅
|
||||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/gix-worktree-state/RUSTSEC-2025-0001.md">Edit</a> ⋅
|
||||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0001">JSON (OSV)</a>
|
||||
</span>
|
||||
|
||||
|
||||
<header>
|
||||
<h1>
|
||||
|
||||
RUSTSEC-2025-0001
|
||||
|
||||
</h1>
|
||||
<span class="subtitle"><p>gix-worktree-state nonexclusive checkout sets executable files world-writable</p>
|
||||
</span>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt id="reported">Reported</dt>
|
||||
<dd>
|
||||
<time datetime="2025-01-18">
|
||||
January 18, 2025
|
||||
</time>
|
||||
</dd>
|
||||
|
||||
<dt id="issued">Issued</dt>
|
||||
<dd>
|
||||
<time datetime="2025-01-18">
|
||||
January 18, 2025
|
||||
</time>
|
||||
|
||||
</dd>
|
||||
|
||||
<dt id="package">Package</dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a href="/packages/gix-worktree-state.html">gix-worktree-state</a>
|
||||
(<a href="https://crates.io/crates/gix-worktree-state">crates.io</a>)
|
||||
|
||||
|
||||
</dd>
|
||||
|
||||
<dt id="type">Type</dt>
|
||||
<dd>
|
||||
|
||||
Vulnerability
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
|
||||
<dt id="keywords">Keywords</dt>
|
||||
<dd>
|
||||
|
||||
<a href="/keywords/permissions.html">#permissions</a>
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt id="aliases">Aliases</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
|
||||
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-22620">CVE-2025-22620</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt id="details">References</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-fqmf-w4xh-33rh">
|
||||
https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-fqmf-w4xh-33rh
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dt id="cvss_score">CVSS Score</dt>
|
||||
<dd>5 <span class="tag medium">
|
||||
MEDIUM
|
||||
</span></dd>
|
||||
|
||||
<dt id="cvss_details">CVSS Details</dt>
|
||||
<dd>
|
||||
<dl>
|
||||
|
||||
<dt>Attack vector</dt><dd>Local</dd>
|
||||
|
||||
|
||||
|
||||
<dt>Attack complexity</dt><dd>Low</d>
|
||||
|
||||
|
||||
|
||||
<dt>Privileges required</dt><dd>Low</dd>
|
||||
|
||||
|
||||
|
||||
<dt>User interaction</dt><dd>Required</dd>
|
||||
|
||||
|
||||
|
||||
<dt>Scope</dt><dd>Unchanged</dd>
|
||||
|
||||
|
||||
|
||||
<dt>Confidentiality</dt><dd>None</dd>
|
||||
|
||||
|
||||
|
||||
<dt>Integrity</dt><dd>High</dd>
|
||||
|
||||
|
||||
|
||||
<dt>Availability</dt><dd>None</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:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N">CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N</a></dd>
|
||||
|
||||
|
||||
|
||||
<dt id="patched">Patched</dt>
|
||||
<dd>
|
||||
|
||||
<ul>
|
||||
|
||||
<li><code>>=0.17.0</code></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dt>Affected OSes</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li><code>aix</code></li>
|
||||
|
||||
<li><code>android</code></li>
|
||||
|
||||
<li><code>dragonfly</code></li>
|
||||
|
||||
<li><code>emscripten</code></li>
|
||||
|
||||
<li><code>espidf</code></li>
|
||||
|
||||
<li><code>freebsd</code></li>
|
||||
|
||||
<li><code>fuchsia</code></li>
|
||||
|
||||
<li><code>haiku</code></li>
|
||||
|
||||
<li><code>horizon</code></li>
|
||||
|
||||
<li><code>hurd</code></li>
|
||||
|
||||
<li><code>illumos</code></li>
|
||||
|
||||
<li><code>ios</code></li>
|
||||
|
||||
<li><code>l4re</code></li>
|
||||
|
||||
<li><code>linux</code></li>
|
||||
|
||||
<li><code>macos</code></li>
|
||||
|
||||
<li><code>netbsd</code></li>
|
||||
|
||||
<li><code>nto</code></li>
|
||||
|
||||
<li><code>nuttx</code></li>
|
||||
|
||||
<li><code>openbsd</code></li>
|
||||
|
||||
<li><code>redox</code></li>
|
||||
|
||||
<li><code>rtems</code></li>
|
||||
|
||||
<li><code>solaris</code></li>
|
||||
|
||||
<li><code>tvos</code></li>
|
||||
|
||||
<li><code>visionos</code></li>
|
||||
|
||||
<li><code>vita</code></li>
|
||||
|
||||
<li><code>vxworks</code></li>
|
||||
|
||||
<li><code>watchos</code></li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Affected Functions</dt>
|
||||
<dd>Version</dd>
|
||||
|
||||
<dt><code>gix_worktree_state::checkout</code></dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li><code><0.17.0</code></li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
<h3 id="description">Description</h3>
|
||||
<h3>Summary</h3>
|
||||
<p><code>gix-worktree-state</code> specifies 0777 permissions when checking out executable files, intending that the umask will restrict them appropriately. But one of the strategies it uses to set permissions is not subject to the umask. This causes files in a repository to be world-writable in some situations.</p>
|
||||
<h3>Details</h3>
|
||||
<p>Git repositories track executable bits for regular files. In tree objects and the index, regular file modes are stored as 0644 if not executable, or 0755 if executable. But this is independent of how the permissions are set in the filesystem (where supported).</p>
|
||||
<p><a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/function.rs#L8-L35"><code>gix_worktree_state::checkout</code></a> has two strategies for checking out a file and marking it executable on a Unix-like operating system, one of which is vulnerable:</p>
|
||||
<ul>
|
||||
<li>If the file is created by assuming it does not already exist, correct permissions are applied, because permissions specified when opening a file are subject to the umask.</li>
|
||||
<li>If the file is considered possibly already to exist—even in a clean checkout if the application does not specify the option to treat the destination directory as empty—then permissions conferring unrestricted access to any user account on the system are wrongly applied, because permissions specified when calling chmod on an existing file are not subject to the umask. </li>
|
||||
</ul>
|
||||
<p>Specifically, <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/entry.rs#L56-L191"><code>checkout::entry::checkout</code></a> chooses the strategy for each file. The same strategy is usually chosen for each executable file, if no <a href="https://github.com/git/git/blob/a60673e9252b08d4eca90543b3729f4798b9aafd/Documentation/RelNotes/2.11.0.txt#L149-L154">process</a> (i.e. <a href="https://github.com/GitoxideLabs/gitoxide/discussions/996">long running</a>) smudge filter is in use. The strategy depends on the <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/mod.rs#L50-L53"><code>checkout::Options::destination_is_initially_empty</code></a> value, which is passed along to <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/entry.rs#L253-L277"><code>checkout::entry::open_file</code></a>, whose return value includes a flag indicating whether permissions still need to be set:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>With <code>destination_is_initially_empty: true</code>, executable permissions are specified when opening the file, via <a href="https://doc.rust-lang.org/std/os/unix/fs/trait.OpenOptionsExt.html#tymethod.mode"><code>OpenOptionsEx::mode</code></a>, by its effect on the behavior of <a href="https://doc.rust-lang.org/std/fs/struct.OpenOptions.html#method.open"><code>OpenOptions::open</code></a>. A mode of 0777 is safe here, for the same reason the default mode of 0666 is safe. When creating a file, the applied mode is the specified mode with any bits unset from it that are set in the umask.</p>
|
||||
<p>https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/entry.rs#L265-L268</p>
|
||||
<p>The <code>set_executable_after_creation</code> flag in the <code>open_file</code> return value is then <code>false</code>.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>With <code>destination_is_initially_empty: false</code>, executable permissions are set in a separate step, via <a href="https://doc.rust-lang.org/beta/std/os/unix/fs/trait.PermissionsExt.html#tymethod.set_mode"><code>PermissionsExt::set_mode</code></a> and <a href="https://doc.rust-lang.org/beta/std/fs/fn.set_permissions.html"><code>set_permissions</code></a>. A mode of 0777 is not safe here, because the umask is not applied. The vulnerable code appears in <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/entry.rs#L279-L299"><code>checkout::entry::finalize_entry</code></a>, which receives the <code>set_executable_after_creation</code> flag originally from <code>open_file</code>:</p>
|
||||
<p>https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/entry.rs#L288-L293</p>
|
||||
<p>The file has unrestricted permissions.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p><code>finalize_entry</code> is <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/chunk.rs#L229-L236">likewise called</a> from <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/chunk.rs#L157-L259"><code>checkout::chunk::process_delayed_filter_results</code></a>.</p>
|
||||
<h3>PoC</h3>
|
||||
<ol>
|
||||
<li>
|
||||
<p>On a Unix-like system such as GNU/Linux or macOS, create a new project and define its dependencies. While the vulnerability is in <code>gix-worktree-state</code>, this example will use vulnerable code through the <code>gix</code> crate, which exposes it. Run:</p>
|
||||
<pre><code class="language-sh">cargo new checkout-index
|
||||
cd checkout-index
|
||||
cargo add gix gix-object
|
||||
</code></pre>
|
||||
</li>
|
||||
<li>
|
||||
<p>In the <code>checkout-index</code> directory, edit <code>src/main.rs</code> so that its entire contents are:</p>
|
||||
<pre><code class="language-rust">fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let repo = gix::discover("has-executable")?;
|
||||
let mut index = repo.open_index()?;
|
||||
gix::worktree::state::checkout(
|
||||
&mut index,
|
||||
repo.work_dir().ok_or("need non-bare repo")?,
|
||||
gix_object::find::Never, // Can also use: repo.objects.clone()
|
||||
&gix::progress::Discard,
|
||||
&gix::progress::Discard,
|
||||
&Default::default(),
|
||||
Default::default(),
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
</code></pre>
|
||||
</li>
|
||||
<li>
|
||||
<p>Create the test repository that the vulnerable program will operate on. Still in the <code>checkout-index</code> directory, run:</p>
|
||||
<pre><code class="language-sh">git init has-executable
|
||||
touch has-executable/a has-executable/b
|
||||
chmod +x has-executable/b
|
||||
git -C has-executable add .
|
||||
</code></pre>
|
||||
<p>It is not necessary to commit the changes, only to stage them, since the test program will check out the index.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><em>Optionally</em>, run <code>rm has-executable/[ab]</code> to remove the staged files from disk.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Run the program by issuing <code>cargo run</code>. The program uses <code>gix-worktree-state</code> to check out the index. It should terminate successfully and not issue any errors.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Run <code>ls -l has-executable</code> to inspect the permissions of the checked out files. Observe that owner, group, and other all have read, write, and execute permissions on <code>b</code>.</p>
|
||||
<pre><code class="language-text">-rw-r--r-- 1 ek ek 0 Jan 9 03:38 a
|
||||
-rwxrwxrwx 1 ek ek 0 Jan 9 03:38 b
|
||||
</code></pre>
|
||||
<p>With affected versions of <code>gix-worktree-state</code>, the output shows <code>-rwxrwxrwx</code> for <code>b</code>, whether the files were removed in step 4 or not.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>It was not necessary to set <code>destination_is_initially_empty</code> to <code>false</code> explicitly to trigger the bug, because that is its default value. If desired, modify the program to pass <code>true</code> and rerun the experiment to verify that <code>b</code> is no longer created with excessive permissions. The modified program would change the last <code>checkout</code> argument from <code>Default::default(),</code> to:</p>
|
||||
<pre><code class="language-rust"> gix::worktree::state::checkout::Options {
|
||||
destination_is_initially_empty: true,
|
||||
..Default::default()
|
||||
},
|
||||
</code></pre>
|
||||
</li>
|
||||
</ol>
|
||||
<h3>Impact</h3>
|
||||
<p>Setting unlimited file permissions is a problem on systems where a user account exists on the system that should not have the ability to access and modify the files. That applies to multi-user systems, or when an account is used to run software with reduced abilities. (Some programs may also treat broad write permissions to mean less validation is required.)</p>
|
||||
<p>This bug affects Unix-like systems but not Windows. The <code>gix clone</code> command is not believed to be affected, due to <a href="https://github.com/GitoxideLabs/gitoxide/blob/af704f57bb9480c47cdd393465264d586f1d4562/gitoxide-core/src/index/checkout.rs#L14-L172"><code>checkout_exclusive</code></a>'s <a href="https://github.com/GitoxideLabs/gitoxide/blob/af704f57bb9480c47cdd393465264d586f1d4562/gitoxide-core/src/index/checkout.rs#L61">use</a> of <code>destination_is_initially_empty: true</code>. Specialized uses in which repositories are known never to have any files marked executable are unaffected. Repositories that no untrusted users can access, due to not having the ability to traverse the directories to them or due to sufficiently restrictive ACLs, are likewise unaffected.</p>
|
||||
<p>The default value of <code>destination_is_initially_empty</code> is <code>false</code>, so some applications may be affected even if they don't attempt checkouts in nonempty directories. The 0777 permissions are applied to files that are created earlier in the same checkout, as well as those that already existed, regardless of their prior permissions. On preexisting files, 0777 is set <em>even if <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/mod.rs#L54-L58"><code>overwrite_existing</code></a> is <code>false</code></em>, as that prevents the checkout from changing file contents but not permissions.</p>
|
||||
<p>Files not tracked/staged as executable are not checked out with insecure permissions. Such a file that previously existed keeps its old permissions. However, this may include executable permissions that no longer match repository metadata, as well as undesired write permissions acquired from a previous vulnerable checkout. <code>set_mode(0o777)</code> clears other bits, so the bug is not exacerbated by the presence of setuid/setgid bits. In some applications, the vulnerable strategy may be used only for files rewritten by a <a href="https://git-scm.com/docs/gitattributes/2.40.0#_long_running_filter_process">long running</a> smudge filter or only in the presence of <a href="https://git-scm.com/docs/gitattributes/2.40.0#_delay">delays</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>
|
||||
</main>
|
||||
@@ -64,6 +64,25 @@
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<time datetime="2025-01-18">
|
||||
January 18, 2025
|
||||
</time>
|
||||
|
||||
|
||||
<h3>
|
||||
|
||||
<span class="tag medium">MEDIUM</span>
|
||||
|
||||
<a href="/advisories/RUSTSEC-2025-0001.html">
|
||||
RUSTSEC-2025-0001: Vulnerability in gix-worktree-state
|
||||
</a>
|
||||
</h3>
|
||||
<span><p>gix-worktree-state nonexclusive checkout sets executable files world-writable</p>
|
||||
</span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<time datetime="2025-01-03">
|
||||
January 3, 2025
|
||||
|
||||
@@ -1,5 +1,346 @@
|
||||
<?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-01-03T12:00:00+00:00</updated><author><name>RustSec</name></author><icon>https://rustsec.org/favicon.ico</icon><link href="https://rustsec.org/feed.xml" rel="self" type="application/atom+xml"/><link href="https://rustsec.org/" rel="alternate" type="text/html"/><subtitle xml:lang="en">Security advisories filed against Rust crates</subtitle><entry><title>RUSTSEC-2024-0433: Vulnerability in age</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0433.html</id><updated>2025-01-03T12:00:00+00:00</updated><category term="code-execution"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0433.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0433: Vulnerability in age"/><published>2025-01-03T12:00:00+00:00</published><summary xml:lang="en">Malicious plugin names, recipients, or identities can cause arbitrary binary execution</summary><content xml:lang="en" type="html"> <article>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom"><title>RustSec Advisories</title><id>https://rustsec.org/feed.xml</id><updated>2025-01-18T12: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-0001: Vulnerability in gix-worktree-state</title><id>https://rustsec.org/advisories/RUSTSEC-2025-0001.html</id><updated>2025-01-18T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2025-0001.html" rel="alternate" type="text/html" title="RUSTSEC-2025-0001: Vulnerability in gix-worktree-state"/><published>2025-01-18T12:00:00+00:00</published><summary xml:lang="en">gix-worktree-state nonexclusive checkout sets executable files world-writable</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-state/RUSTSEC-2025-0001.md">History</a> ⋅
|
||||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/gix-worktree-state/RUSTSEC-2025-0001.md">Edit</a> ⋅
|
||||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2025-0001">JSON (OSV)</a>
|
||||
</span>
|
||||
|
||||
|
||||
<header>
|
||||
<h1>
|
||||
|
||||
RUSTSEC-2025-0001
|
||||
|
||||
</h1>
|
||||
<span class="subtitle"><p>gix-worktree-state nonexclusive checkout sets executable files world-writable</p>
|
||||
</span>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt id="reported">Reported</dt>
|
||||
<dd>
|
||||
<time datetime="2025-01-18">
|
||||
January 18, 2025
|
||||
</time>
|
||||
</dd>
|
||||
|
||||
<dt id="issued">Issued</dt>
|
||||
<dd>
|
||||
<time datetime="2025-01-18">
|
||||
January 18, 2025
|
||||
</time>
|
||||
|
||||
</dd>
|
||||
|
||||
<dt id="package">Package</dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a href="/packages/gix-worktree-state.html">gix-worktree-state</a>
|
||||
(<a href="https://crates.io/crates/gix-worktree-state">crates.io</a>)
|
||||
|
||||
|
||||
</dd>
|
||||
|
||||
<dt id="type">Type</dt>
|
||||
<dd>
|
||||
|
||||
Vulnerability
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
|
||||
<dt id="keywords">Keywords</dt>
|
||||
<dd>
|
||||
|
||||
<a href="/keywords/permissions.html">#permissions</a>
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt id="aliases">Aliases</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
|
||||
<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-22620">CVE-2025-22620</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt id="details">References</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-fqmf-w4xh-33rh">
|
||||
https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-fqmf-w4xh-33rh
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dt id="cvss_score">CVSS Score</dt>
|
||||
<dd>5 <span class="tag medium">
|
||||
MEDIUM
|
||||
</span></dd>
|
||||
|
||||
<dt id="cvss_details">CVSS Details</dt>
|
||||
<dd>
|
||||
<dl>
|
||||
|
||||
<dt>Attack vector</dt><dd>Local</dd>
|
||||
|
||||
|
||||
|
||||
<dt>Attack complexity</dt><dd>Low</d>
|
||||
|
||||
|
||||
|
||||
<dt>Privileges required</dt><dd>Low</dd>
|
||||
|
||||
|
||||
|
||||
<dt>User interaction</dt><dd>Required</dd>
|
||||
|
||||
|
||||
|
||||
<dt>Scope</dt><dd>Unchanged</dd>
|
||||
|
||||
|
||||
|
||||
<dt>Confidentiality</dt><dd>None</dd>
|
||||
|
||||
|
||||
|
||||
<dt>Integrity</dt><dd>High</dd>
|
||||
|
||||
|
||||
|
||||
<dt>Availability</dt><dd>None</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:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N">CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N</a></dd>
|
||||
|
||||
|
||||
|
||||
<dt id="patched">Patched</dt>
|
||||
<dd>
|
||||
|
||||
<ul>
|
||||
|
||||
<li><code>&gt;=0.17.0</code></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dt>Affected OSes</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li><code>aix</code></li>
|
||||
|
||||
<li><code>android</code></li>
|
||||
|
||||
<li><code>dragonfly</code></li>
|
||||
|
||||
<li><code>emscripten</code></li>
|
||||
|
||||
<li><code>espidf</code></li>
|
||||
|
||||
<li><code>freebsd</code></li>
|
||||
|
||||
<li><code>fuchsia</code></li>
|
||||
|
||||
<li><code>haiku</code></li>
|
||||
|
||||
<li><code>horizon</code></li>
|
||||
|
||||
<li><code>hurd</code></li>
|
||||
|
||||
<li><code>illumos</code></li>
|
||||
|
||||
<li><code>ios</code></li>
|
||||
|
||||
<li><code>l4re</code></li>
|
||||
|
||||
<li><code>linux</code></li>
|
||||
|
||||
<li><code>macos</code></li>
|
||||
|
||||
<li><code>netbsd</code></li>
|
||||
|
||||
<li><code>nto</code></li>
|
||||
|
||||
<li><code>nuttx</code></li>
|
||||
|
||||
<li><code>openbsd</code></li>
|
||||
|
||||
<li><code>redox</code></li>
|
||||
|
||||
<li><code>rtems</code></li>
|
||||
|
||||
<li><code>solaris</code></li>
|
||||
|
||||
<li><code>tvos</code></li>
|
||||
|
||||
<li><code>visionos</code></li>
|
||||
|
||||
<li><code>vita</code></li>
|
||||
|
||||
<li><code>vxworks</code></li>
|
||||
|
||||
<li><code>watchos</code></li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Affected Functions</dt>
|
||||
<dd>Version</dd>
|
||||
|
||||
<dt><code>gix_worktree_state::checkout</code></dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li><code>&lt;0.17.0</code></li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
<h3 id="description">Description</h3>
|
||||
<h3>Summary</h3>
|
||||
<p><code>gix-worktree-state</code> specifies 0777 permissions when checking out executable files, intending that the umask will restrict them appropriately. But one of the strategies it uses to set permissions is not subject to the umask. This causes files in a repository to be world-writable in some situations.</p>
|
||||
<h3>Details</h3>
|
||||
<p>Git repositories track executable bits for regular files. In tree objects and the index, regular file modes are stored as 0644 if not executable, or 0755 if executable. But this is independent of how the permissions are set in the filesystem (where supported).</p>
|
||||
<p><a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/function.rs#L8-L35"><code>gix_worktree_state::checkout</code></a> has two strategies for checking out a file and marking it executable on a Unix-like operating system, one of which is vulnerable:</p>
|
||||
<ul>
|
||||
<li>If the file is created by assuming it does not already exist, correct permissions are applied, because permissions specified when opening a file are subject to the umask.</li>
|
||||
<li>If the file is considered possibly already to exist—even in a clean checkout if the application does not specify the option to treat the destination directory as empty—then permissions conferring unrestricted access to any user account on the system are wrongly applied, because permissions specified when calling chmod on an existing file are not subject to the umask. </li>
|
||||
</ul>
|
||||
<p>Specifically, <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/entry.rs#L56-L191"><code>checkout::entry::checkout</code></a> chooses the strategy for each file. The same strategy is usually chosen for each executable file, if no <a href="https://github.com/git/git/blob/a60673e9252b08d4eca90543b3729f4798b9aafd/Documentation/RelNotes/2.11.0.txt#L149-L154">process</a> (i.e. <a href="https://github.com/GitoxideLabs/gitoxide/discussions/996">long running</a>) smudge filter is in use. The strategy depends on the <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/mod.rs#L50-L53"><code>checkout::Options::destination_is_initially_empty</code></a> value, which is passed along to <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/entry.rs#L253-L277"><code>checkout::entry::open_file</code></a>, whose return value includes a flag indicating whether permissions still need to be set:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>With <code>destination_is_initially_empty: true</code>, executable permissions are specified when opening the file, via <a href="https://doc.rust-lang.org/std/os/unix/fs/trait.OpenOptionsExt.html#tymethod.mode"><code>OpenOptionsEx::mode</code></a>, by its effect on the behavior of <a href="https://doc.rust-lang.org/std/fs/struct.OpenOptions.html#method.open"><code>OpenOptions::open</code></a>. A mode of 0777 is safe here, for the same reason the default mode of 0666 is safe. When creating a file, the applied mode is the specified mode with any bits unset from it that are set in the umask.</p>
|
||||
<p>https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/entry.rs#L265-L268</p>
|
||||
<p>The <code>set_executable_after_creation</code> flag in the <code>open_file</code> return value is then <code>false</code>.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>With <code>destination_is_initially_empty: false</code>, executable permissions are set in a separate step, via <a href="https://doc.rust-lang.org/beta/std/os/unix/fs/trait.PermissionsExt.html#tymethod.set_mode"><code>PermissionsExt::set_mode</code></a> and <a href="https://doc.rust-lang.org/beta/std/fs/fn.set_permissions.html"><code>set_permissions</code></a>. A mode of 0777 is not safe here, because the umask is not applied. The vulnerable code appears in <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/entry.rs#L279-L299"><code>checkout::entry::finalize_entry</code></a>, which receives the <code>set_executable_after_creation</code> flag originally from <code>open_file</code>:</p>
|
||||
<p>https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/entry.rs#L288-L293</p>
|
||||
<p>The file has unrestricted permissions.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p><code>finalize_entry</code> is <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/chunk.rs#L229-L236">likewise called</a> from <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/chunk.rs#L157-L259"><code>checkout::chunk::process_delayed_filter_results</code></a>.</p>
|
||||
<h3>PoC</h3>
|
||||
<ol>
|
||||
<li>
|
||||
<p>On a Unix-like system such as GNU/Linux or macOS, create a new project and define its dependencies. While the vulnerability is in <code>gix-worktree-state</code>, this example will use vulnerable code through the <code>gix</code> crate, which exposes it. Run:</p>
|
||||
<pre><code class="language-sh">cargo new checkout-index
|
||||
cd checkout-index
|
||||
cargo add gix gix-object
|
||||
</code></pre>
|
||||
</li>
|
||||
<li>
|
||||
<p>In the <code>checkout-index</code> directory, edit <code>src/main.rs</code> so that its entire contents are:</p>
|
||||
<pre><code class="language-rust">fn main() -&gt; Result&lt;(), Box&lt;dyn std::error::Error&gt;&gt; {
|
||||
let repo = gix::discover(&quot;has-executable&quot;)?;
|
||||
let mut index = repo.open_index()?;
|
||||
gix::worktree::state::checkout(
|
||||
&amp;mut index,
|
||||
repo.work_dir().ok_or(&quot;need non-bare repo&quot;)?,
|
||||
gix_object::find::Never, // Can also use: repo.objects.clone()
|
||||
&amp;gix::progress::Discard,
|
||||
&amp;gix::progress::Discard,
|
||||
&amp;Default::default(),
|
||||
Default::default(),
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
</code></pre>
|
||||
</li>
|
||||
<li>
|
||||
<p>Create the test repository that the vulnerable program will operate on. Still in the <code>checkout-index</code> directory, run:</p>
|
||||
<pre><code class="language-sh">git init has-executable
|
||||
touch has-executable/a has-executable/b
|
||||
chmod +x has-executable/b
|
||||
git -C has-executable add .
|
||||
</code></pre>
|
||||
<p>It is not necessary to commit the changes, only to stage them, since the test program will check out the index.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><em>Optionally</em>, run <code>rm has-executable/[ab]</code> to remove the staged files from disk.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Run the program by issuing <code>cargo run</code>. The program uses <code>gix-worktree-state</code> to check out the index. It should terminate successfully and not issue any errors.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Run <code>ls -l has-executable</code> to inspect the permissions of the checked out files. Observe that owner, group, and other all have read, write, and execute permissions on <code>b</code>.</p>
|
||||
<pre><code class="language-text">-rw-r--r-- 1 ek ek 0 Jan 9 03:38 a
|
||||
-rwxrwxrwx 1 ek ek 0 Jan 9 03:38 b
|
||||
</code></pre>
|
||||
<p>With affected versions of <code>gix-worktree-state</code>, the output shows <code>-rwxrwxrwx</code> for <code>b</code>, whether the files were removed in step 4 or not.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>It was not necessary to set <code>destination_is_initially_empty</code> to <code>false</code> explicitly to trigger the bug, because that is its default value. If desired, modify the program to pass <code>true</code> and rerun the experiment to verify that <code>b</code> is no longer created with excessive permissions. The modified program would change the last <code>checkout</code> argument from <code>Default::default(),</code> to:</p>
|
||||
<pre><code class="language-rust"> gix::worktree::state::checkout::Options {
|
||||
destination_is_initially_empty: true,
|
||||
..Default::default()
|
||||
},
|
||||
</code></pre>
|
||||
</li>
|
||||
</ol>
|
||||
<h3>Impact</h3>
|
||||
<p>Setting unlimited file permissions is a problem on systems where a user account exists on the system that should not have the ability to access and modify the files. That applies to multi-user systems, or when an account is used to run software with reduced abilities. (Some programs may also treat broad write permissions to mean less validation is required.)</p>
|
||||
<p>This bug affects Unix-like systems but not Windows. The <code>gix clone</code> command is not believed to be affected, due to <a href="https://github.com/GitoxideLabs/gitoxide/blob/af704f57bb9480c47cdd393465264d586f1d4562/gitoxide-core/src/index/checkout.rs#L14-L172"><code>checkout_exclusive</code></a>'s <a href="https://github.com/GitoxideLabs/gitoxide/blob/af704f57bb9480c47cdd393465264d586f1d4562/gitoxide-core/src/index/checkout.rs#L61">use</a> of <code>destination_is_initially_empty: true</code>. Specialized uses in which repositories are known never to have any files marked executable are unaffected. Repositories that no untrusted users can access, due to not having the ability to traverse the directories to them or due to sufficiently restrictive ACLs, are likewise unaffected.</p>
|
||||
<p>The default value of <code>destination_is_initially_empty</code> is <code>false</code>, so some applications may be affected even if they don't attempt checkouts in nonempty directories. The 0777 permissions are applied to files that are created earlier in the same checkout, as well as those that already existed, regardless of their prior permissions. On preexisting files, 0777 is set <em>even if <a href="https://github.com/GitoxideLabs/gitoxide/blob/8d84818240d44e1f5fe78a231b5d9bffd0283918/gix-worktree-state/src/checkout/mod.rs#L54-L58"><code>overwrite_existing</code></a> is <code>false</code></em>, as that prevents the checkout from changing file contents but not permissions.</p>
|
||||
<p>Files not tracked/staged as executable are not checked out with insecure permissions. Such a file that previously existed keeps its old permissions. However, this may include executable permissions that no longer match repository metadata, as well as undesired write permissions acquired from a previous vulnerable checkout. <code>set_mode(0o777)</code> clears other bits, so the bug is not exacerbated by the presence of setuid/setgid bits. In some applications, the vulnerable strategy may be used only for files rewritten by a <a href="https://git-scm.com/docs/gitattributes/2.40.0#_long_running_filter_process">long running</a> smudge filter or only in the presence of <a href="https://git-scm.com/docs/gitattributes/2.40.0#_delay">delays</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-0433: Vulnerability in age</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0433.html</id><updated>2025-01-03T12:00:00+00:00</updated><category term="code-execution"/><link href="https://rustsec.org/advisories/RUSTSEC-2024-0433.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0433: Vulnerability in age"/><published>2025-01-03T12:00:00+00:00</published><summary xml:lang="en">Malicious plugin names, recipients, or identities can cause arbitrary binary execution</summary><content xml:lang="en" type="html"> <article>
|
||||
|
||||
<span class="floating-menu">
|
||||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/age/RUSTSEC-2024-0433.md">History</a> ⋅
|
||||
@@ -1435,157 +1776,5 @@ without <code>MaybeUninit</code> or equivalent structures.</p>
|
||||
license.
|
||||
|
||||
|
||||
</p>
|
||||
</article></content></entry><entry><title>RUSTSEC-2024-0428: Unsoundness in kvm-ioctls</title><id>https://rustsec.org/advisories/RUSTSEC-2024-0428.html</id><updated>2024-12-22T12:00:00+00:00</updated><link href="https://rustsec.org/advisories/RUSTSEC-2024-0428.html" rel="alternate" type="text/html" title="RUSTSEC-2024-0428: Unsoundness in kvm-ioctls"/><published>2024-12-22T12:00:00+00:00</published><summary xml:lang="en">Undefined behaviour in `kvm_ioctls::ioctls::vm::VmFd::create_device`</summary><content xml:lang="en" type="html"> <article>
|
||||
|
||||
<span class="floating-menu">
|
||||
<a href="https://github.com/RustSec/advisory-db/commits/main/crates/kvm-ioctls/RUSTSEC-2024-0428.md">History</a> ⋅
|
||||
<a href="https://github.com/RustSec/advisory-db/edit/main/crates/kvm-ioctls/RUSTSEC-2024-0428.md">Edit</a> ⋅
|
||||
<a href="https://api.osv.dev/v1/vulns/RUSTSEC-2024-0428">JSON (OSV)</a>
|
||||
</span>
|
||||
|
||||
|
||||
<header>
|
||||
<h1>
|
||||
|
||||
RUSTSEC-2024-0428
|
||||
|
||||
</h1>
|
||||
<span class="subtitle"><p>Undefined behaviour in <code>kvm_ioctls::ioctls::vm::VmFd::create_device</code></p>
|
||||
</span>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt id="reported">Reported</dt>
|
||||
<dd>
|
||||
<time datetime="2024-12-05">
|
||||
December 5, 2024
|
||||
</time>
|
||||
</dd>
|
||||
|
||||
<dt id="issued">Issued</dt>
|
||||
<dd>
|
||||
<time datetime="2024-12-22">
|
||||
December 22, 2024
|
||||
</time>
|
||||
|
||||
</dd>
|
||||
|
||||
<dt id="package">Package</dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a href="/packages/kvm-ioctls.html">kvm-ioctls</a>
|
||||
(<a href="https://crates.io/crates/kvm-ioctls">crates.io</a>)
|
||||
|
||||
|
||||
</dd>
|
||||
|
||||
<dt id="type">Type</dt>
|
||||
<dd>
|
||||
|
||||
<span class="tag info">INFO</span>
|
||||
Unsound
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
|
||||
<dt id="keywords">Keywords</dt>
|
||||
<dd>
|
||||
|
||||
<a href="/keywords/unsound.html">#unsound</a>
|
||||
|
||||
<a href="/keywords/1-82.html">#1-82</a>
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dt id="details">References</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="https://github.com/rust-vmm/kvm/pull/298">
|
||||
https://github.com/rust-vmm/kvm/pull/298
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dt id="patched">Patched</dt>
|
||||
<dd>
|
||||
|
||||
<ul>
|
||||
|
||||
<li><code>&gt;=0.19.1</code></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dt>Affected OSes</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li><code>linux</code></li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Affected Functions</dt>
|
||||
<dd>Version</dd>
|
||||
|
||||
<dt><code>kvm_ioctls::ioctls::vm::VmFd::create_device</code></dt>
|
||||
<dd>
|
||||
<ul>
|
||||
|
||||
<li><code>&lt;=0.19.0</code></li>
|
||||
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
<h3 id="description">Description</h3>
|
||||
<p>An issue was identified in the <code>VmFd::create_device function</code>, leading to undefined behavior and miscompilations on rustc 1.82.0 and newer due to the function's violation of Rust's pointer safety rules.</p>
|
||||
<p>The function downcasted a mutable reference to its <code>struct kvm_create_device</code> argument to an immutable pointer, and then proceeded to pass this pointer to a mutating system call. Rustc 1.82.0 and newer elides subsequent reads of this structure's fields, meaning code will not see the value written by the kernel into the <code>fd</code> member. Instead, the code will observe the value that this field was initialized to prior to calling <code>VmFd::create_device</code> (usually, 0).</p>
|
||||
<p>The issue started in kvm-ioctls 0.1.0 and was fixed in 0.19.1 by correctly using
|
||||
a mutable pointer.</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>
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -694,6 +694,11 @@
|
||||
<li><a href="/keywords/path-building.html">path-building</a>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li><a href="/keywords/permissions.html">permissions</a>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li><a href="/keywords/pointer.html">pointer</a>
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="author" content="Rust Project Developers">
|
||||
<meta name="description" content="Security advisory database for Rust crates published through https://crates.io">
|
||||
<title>Advisories with keyword 'permissions' › RustSec Advisory Database</title>
|
||||
|
||||
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,300italic,400italic" rel="stylesheet">
|
||||
<link href="/css/basic.css" rel="stylesheet">
|
||||
<link href="/css/highlight.css" rel="stylesheet">
|
||||
<link href="/css/index.css" rel="stylesheet">
|
||||
|
||||
<script src="/js/index.js" defer></script>
|
||||
<script src="/js/search.js" defer></script>
|
||||
|
||||
<header>
|
||||
<div class="header-top">
|
||||
<h1><a href="/"><img class="logo-image" src="/img/rustsec-logo.svg" /></a></h1>
|
||||
|
||||
<div class="search">
|
||||
<form onsubmit="return searchform();">
|
||||
<input type="search" id="search-term"
|
||||
placeholder="Look up package or ID..." required
|
||||
size="20">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<nav>
|
||||
<div>
|
||||
<a href="/">About</a>
|
||||
<a href="/advisories/">Advisories</a>
|
||||
<a href="/contributing.html">Report Vulnerabilities</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://rust-lang.zulipchat.com/login/#narrow/stream/146229-wg-secure-code/" title="Zulip" aria-label="Zulip"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height:1em;fill:currentColor"><path d="M473.09 122.97c0 22.69-10.19 42.85-25.72 55.08L296.61 312.69c-2.8 2.4-6.44-1.47-4.42-4.7l55.3-110.72c1.55-3.1-.46-6.91-3.64-6.91H129.36c-33.22 0-60.4-30.32-60.4-67.37 0-37.06 27.18-67.37 60.4-67.37h283.33c33.22-.02 60.4 30.3 60.4 67.35zM129.36 506.05h283.33c33.22 0 60.4-30.32 60.4-67.37 0-37.06-27.18-67.37-60.4-67.37H198.2c-3.18 0-5.19-3.81-3.64-6.91l55.3-110.72c2.02-3.23-1.62-7.1-4.42-4.7L94.68 383.6c-15.53 12.22-25.72 32.39-25.72 55.08 0 37.05 27.18 67.37 60.4 67.37zm522.5-124.15l124.78-179.6v-1.56H663.52v-48.98h190.09v34.21L731.55 363.24v1.56h124.01v48.98h-203.7V381.9zm338.98-230.14V302.6c0 45.09 17.1 68.03 47.43 68.03 31.1 0 48.2-21.77 48.2-68.03V151.76h59.09V298.7c0 80.86-40.82 119.34-109.24 119.34-66.09 0-104.96-36.54-104.96-120.12V151.76h59.48zm244.91 0h59.48v212.25h104.18v49.76h-163.66V151.76zm297 0v262.01h-59.48V151.76h59.48zm90.18 3.5c18.27-3.11 43.93-5.44 80.08-5.44 36.54 0 62.59 7 80.08 20.99 16.72 13.22 27.99 34.99 27.99 60.64 0 25.66-8.55 47.43-24.1 62.2-20.21 19.05-50.15 27.6-85.13 27.6-7.77 0-14.77-.39-20.21-1.17v93.69h-58.7V155.26zm58.7 118.96c5.05 1.17 11.27 1.55 19.83 1.55 31.49 0 50.92-15.94 50.92-42.76 0-24.1-16.72-38.49-46.26-38.49-12.05 0-20.21 1.17-24.49 2.33v77.37z"/></svg></a>
|
||||
<a href="https://twitter.com/RustSec/" title="Twitter" aria-label="Twitter"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height:1em;fill:currentColor"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></svg></a>
|
||||
<a href="https://github.com/RustSec/" title="GitHub" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512" style="height:1em;fill:currentColor"><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg></a>
|
||||
<a href="/feed.xml" title="Atom Feed" aria-label="Atom Feed"><svg xmlns="http://www.w3.org/2000/svg" style="height:1em" viewBox="0 0 8 8">
|
||||
<style type="text/css">
|
||||
.button {stroke: none; fill: currentColor;}
|
||||
.symbol {stroke: none; fill-opacity=0;}
|
||||
</style>
|
||||
<rect class="button" width="8" height="8" rx="1.5" />
|
||||
<circle class="symbol" cx="2" cy="6" r="1" />
|
||||
<path class="symbol" d="m 1,4 a 3,3 0 0 1 3,3 h 1 a 4,4 0 0 0 -4,-4 z" />
|
||||
<path class="symbol" d="m 1,2 a 5,5 0 0 1 5,5 h 1 a 6,6 0 0 0 -6,-6 z" />
|
||||
</svg></a>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="advisories">
|
||||
<article>
|
||||
|
||||
<header>
|
||||
<span class="floating-menu">
|
||||
<a href="/categories/">Categories</a> ⋅
|
||||
<a href="/keywords/">Keywords</a> ⋅
|
||||
<a href="/packages/">Packages</a>
|
||||
</span>
|
||||
<h1>Advisories with keyword 'permissions'</h1>
|
||||
</header>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<time datetime="2025-01-18">
|
||||
January 18, 2025
|
||||
</time>
|
||||
|
||||
|
||||
<h3>
|
||||
|
||||
<span class="tag medium">MEDIUM</span>
|
||||
|
||||
<a href="/advisories/RUSTSEC-2025-0001.html">
|
||||
RUSTSEC-2025-0001: Vulnerability in gix-worktree-state
|
||||
</a>
|
||||
</h3>
|
||||
<span><p>gix-worktree-state nonexclusive checkout sets executable files world-writable</p>
|
||||
</span>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</article>
|
||||
</main>
|
||||
@@ -0,0 +1,90 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="author" content="Rust Project Developers">
|
||||
<meta name="description" content="Security advisory database for Rust crates published through https://crates.io">
|
||||
<title>Advisories for package 'gix-worktree-state' › RustSec Advisory Database</title>
|
||||
|
||||
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,300italic,400italic" rel="stylesheet">
|
||||
<link href="/css/basic.css" rel="stylesheet">
|
||||
<link href="/css/highlight.css" rel="stylesheet">
|
||||
<link href="/css/index.css" rel="stylesheet">
|
||||
|
||||
<script src="/js/index.js" defer></script>
|
||||
<script src="/js/search.js" defer></script>
|
||||
|
||||
<header>
|
||||
<div class="header-top">
|
||||
<h1><a href="/"><img class="logo-image" src="/img/rustsec-logo.svg" /></a></h1>
|
||||
|
||||
<div class="search">
|
||||
<form onsubmit="return searchform();">
|
||||
<input type="search" id="search-term"
|
||||
placeholder="Look up package or ID..." required
|
||||
size="20">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<nav>
|
||||
<div>
|
||||
<a href="/">About</a>
|
||||
<a href="/advisories/">Advisories</a>
|
||||
<a href="/contributing.html">Report Vulnerabilities</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://rust-lang.zulipchat.com/login/#narrow/stream/146229-wg-secure-code/" title="Zulip" aria-label="Zulip"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height:1em;fill:currentColor"><path d="M473.09 122.97c0 22.69-10.19 42.85-25.72 55.08L296.61 312.69c-2.8 2.4-6.44-1.47-4.42-4.7l55.3-110.72c1.55-3.1-.46-6.91-3.64-6.91H129.36c-33.22 0-60.4-30.32-60.4-67.37 0-37.06 27.18-67.37 60.4-67.37h283.33c33.22-.02 60.4 30.3 60.4 67.35zM129.36 506.05h283.33c33.22 0 60.4-30.32 60.4-67.37 0-37.06-27.18-67.37-60.4-67.37H198.2c-3.18 0-5.19-3.81-3.64-6.91l55.3-110.72c2.02-3.23-1.62-7.1-4.42-4.7L94.68 383.6c-15.53 12.22-25.72 32.39-25.72 55.08 0 37.05 27.18 67.37 60.4 67.37zm522.5-124.15l124.78-179.6v-1.56H663.52v-48.98h190.09v34.21L731.55 363.24v1.56h124.01v48.98h-203.7V381.9zm338.98-230.14V302.6c0 45.09 17.1 68.03 47.43 68.03 31.1 0 48.2-21.77 48.2-68.03V151.76h59.09V298.7c0 80.86-40.82 119.34-109.24 119.34-66.09 0-104.96-36.54-104.96-120.12V151.76h59.48zm244.91 0h59.48v212.25h104.18v49.76h-163.66V151.76zm297 0v262.01h-59.48V151.76h59.48zm90.18 3.5c18.27-3.11 43.93-5.44 80.08-5.44 36.54 0 62.59 7 80.08 20.99 16.72 13.22 27.99 34.99 27.99 60.64 0 25.66-8.55 47.43-24.1 62.2-20.21 19.05-50.15 27.6-85.13 27.6-7.77 0-14.77-.39-20.21-1.17v93.69h-58.7V155.26zm58.7 118.96c5.05 1.17 11.27 1.55 19.83 1.55 31.49 0 50.92-15.94 50.92-42.76 0-24.1-16.72-38.49-46.26-38.49-12.05 0-20.21 1.17-24.49 2.33v77.37z"/></svg></a>
|
||||
<a href="https://twitter.com/RustSec/" title="Twitter" aria-label="Twitter"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height:1em;fill:currentColor"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></svg></a>
|
||||
<a href="https://github.com/RustSec/" title="GitHub" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512" style="height:1em;fill:currentColor"><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg></a>
|
||||
<a href="/feed.xml" title="Atom Feed" aria-label="Atom Feed"><svg xmlns="http://www.w3.org/2000/svg" style="height:1em" viewBox="0 0 8 8">
|
||||
<style type="text/css">
|
||||
.button {stroke: none; fill: currentColor;}
|
||||
.symbol {stroke: none; fill-opacity=0;}
|
||||
</style>
|
||||
<rect class="button" width="8" height="8" rx="1.5" />
|
||||
<circle class="symbol" cx="2" cy="6" r="1" />
|
||||
<path class="symbol" d="m 1,4 a 3,3 0 0 1 3,3 h 1 a 4,4 0 0 0 -4,-4 z" />
|
||||
<path class="symbol" d="m 1,2 a 5,5 0 0 1 5,5 h 1 a 6,6 0 0 0 -6,-6 z" />
|
||||
</svg></a>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="advisories">
|
||||
<article>
|
||||
|
||||
<header>
|
||||
<span class="floating-menu">
|
||||
<a href="/categories/">Categories</a> ⋅
|
||||
<a href="/keywords/">Keywords</a> ⋅
|
||||
<a href="/packages/">Packages</a>
|
||||
</span>
|
||||
<h1>Advisories for package 'gix-worktree-state'</h1>
|
||||
</header>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<time datetime="2025-01-18">
|
||||
January 18, 2025
|
||||
</time>
|
||||
|
||||
|
||||
<h3>
|
||||
|
||||
<span class="tag medium">MEDIUM</span>
|
||||
|
||||
<a href="/advisories/RUSTSEC-2025-0001.html">
|
||||
RUSTSEC-2025-0001: Vulnerability in gix-worktree-state
|
||||
</a>
|
||||
</h3>
|
||||
<span><p>gix-worktree-state nonexclusive checkout sets executable files world-writable</p>
|
||||
</span>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</article>
|
||||
</main>
|
||||
@@ -1326,6 +1326,12 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li><a href="/packages/gix-worktree-state.html">gix-worktree-state</a>
|
||||
|
||||
(1)
|
||||
|
||||
</li>
|
||||
|
||||
<li><a href="/packages/glib.html">glib</a>
|
||||
|
||||
(1)
|
||||
|
||||
Reference in New Issue
Block a user