CVE-2024-35186: RUSTSEC-2024-0350 - Traversal outside working tree enables arbitrary code execution

CVE-2024-35186 · Severity: low · CVSS 3.1 · Published 2024-05-22

Traversal outside working tree enables arbitrary code execution

Technologies: gitoxide (crates.io), gitoxide-core (crates.io), gix (crates.io), gix-index (crates.io), gix-worktree (crates.io), gix-worktree-state (crates.io). Vendors: crates.io.

Quick answers

Is CVE-2024-35186 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-35186 being exploited in the wild.
How severe is CVE-2024-35186?
Low severity, with a CVSS score of 3.1, published 22 May 2024.
Which products and versions are affected?
gitoxide (crates.io) SEMVER:introduced=0,fixed=0.36.0; gitoxide-core (crates.io) SEMVER:introduced=0,fixed=0.38.0; gix (crates.io) SEMVER:introduced=0,fixed=0.63.0; gix-fs (crates.io) SEMVER:introduced=0,fixed=0.11.0, SEMVER:introduced=0.0.0-0,fixed=0.11.0; and 3 more.
Is there a fix for CVE-2024-35186?
Yes. gitoxide (crates.io): upgrade to 0.36.0 or later; gitoxide-core (crates.io): upgrade to 0.38.0 or later; gix (crates.io): upgrade to 0.63.0 or later; gix-fs (crates.io): upgrade to 0.11.0 or later; gix-index (crates.io): upgrade to 0.33.0 or later; gix-worktree (crates.io): upgrade to 0.34.0 or later; gix-worktree-state (crates.io): upgrade to 0.11.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-35186?
Check whether you run gitoxide (crates.io), gitoxide-core (crates.io), gix (crates.io) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • gitoxide (crates.io): upgrade to 0.36.0 or later
    cargo update -p gitoxide
  • gitoxide-core (crates.io): upgrade to 0.38.0 or later
    cargo update -p gitoxide-core
  • gix (crates.io): upgrade to 0.63.0 or later
    cargo update -p gix
  • gix-fs (crates.io): upgrade to 0.11.0 or later
    cargo update -p gix-fs
  • gix-index (crates.io): upgrade to 0.33.0 or later
    cargo update -p gix-index
  • gix-worktree (crates.io): upgrade to 0.34.0 or later
    cargo update -p gix-worktree
  • gix-worktree-state (crates.io): upgrade to 0.11.0 or later
    cargo update -p gix-worktree-state

Affected products

  • gitoxide (crates.io) SEMVER:introduced=0,fixed=0.36.0
  • gitoxide-core (crates.io) SEMVER:introduced=0,fixed=0.38.0
  • gix (crates.io) SEMVER:introduced=0,fixed=0.63.0
  • gix-fs (crates.io) SEMVER:introduced=0,fixed=0.11.0, SEMVER:introduced=0.0.0-0,fixed=0.11.0
  • gix-index (crates.io) SEMVER:introduced=0,fixed=0.33.0, SEMVER:introduced=0.0.0-0,fixed=0.33.0
  • gix-worktree (crates.io) SEMVER:introduced=0,fixed=0.34.0, SEMVER:introduced=0.0.0-0,fixed=0.34.0
  • gix-worktree-state (crates.io) SEMVER:introduced=0,fixed=0.11.0

Identifiers

  • CVE-2024-35186
  • GHSA-7w47-3wg8-547c
  • RUSTSEC-2024-0348
  • RUSTSEC-2024-0349
  • RUSTSEC-2024-0350

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.