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

CVE-2024-45305: gix-path uses local config across repos when it is the highest scope

September 3, 2024

gix-path executes git to find the path of a configuration file that belongs to the git installation itself, but mistakenly treats the local repository’s configuration as system-wide if no higher scoped configuration is found. In rare cases, this causes a less trusted repository to be treated as more trusted, or leaks sensitive information from one repository to another, such as sending credentials to another repository’s remote.

References

  • git-scm.com/docs/git-config
  • github.com/Byron/gitoxide
  • github.com/Byron/gitoxide/blob/12251eb052df30105538fa831e641eea557f13d8/gix-path/src/env/git/mod.rs
  • github.com/Byron/gitoxide/blob/12251eb052df30105538fa831e641eea557f13d8/gix-path/src/env/git/mod.rs
  • github.com/Byron/gitoxide/security/advisories/GHSA-v26r-4c9c-h3j6
  • github.com/advisories/GHSA-v26r-4c9c-h3j6
  • nvd.nist.gov/vuln/detail/CVE-2024-45305
  • rustsec.org/advisories/RUSTSEC-2024-0367.html

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.10.10

Fixed versions

  • 0.10.10

Solution

Upgrade to version 0.10.10 or above.

Impact 2.5 LOW

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

Learn more about CVSS

Weakness

  • CWE-706: Use of Incorrectly-Resolved Name or Reference

Source file

cargo/gix-path/CVE-2024-45305.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:04 +0000.