Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. gix
  4. ›
  5. CVE-2024-35186

CVE-2024-35186: gix traversal outside working tree enables arbitrary code execution

May 22, 2024 (updated July 8, 2024)

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.

References

  • github.com/Byron/gitoxide
  • github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c
  • github.com/advisories/GHSA-7w47-3wg8-547c
  • nvd.nist.gov/vuln/detail/CVE-2024-35186
  • rustsec.org/advisories/RUSTSEC-2024-0348.html
  • rustsec.org/advisories/RUSTSEC-2024-0350.html

Code Behaviors & Features

Detect and mitigate CVE-2024-35186 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.63.0

Fixed versions

  • 0.63.0

Solution

Upgrade to version 0.63.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-23: Relative Path Traversal

Source file

cargo/gix/CVE-2024-35186.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:56 +0000.