CVE-2024-45305 json
gix-path uses local config across repos when it is the highest scope
published 2024-08-31 2 y ago modified 2026-11-09 2 h ago also EUVD-2024-2874 , GHSA-v26r-4c9c-h3j6 , RUSTSEC-2024-0367
- cvss
- 2.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 15%
- public exploits
- 0
- none known
Summary
gix-path is a crate of the gitoxide project dealing with git paths and their conversions. `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. In `gix_path::env`, the underlying implementation of the `installation_config` and `installation_config_prefix` functions calls `git config -l --show-origin` and parses the first line of the output to extract the path to the configuration file holding the configuration variable of highest scope. It is believed to be very difficult to exploit this vulnerability deliberately, due to the need either to anticipate a situation in which higher-scoped configuration variables would be absent, or to arrange for this to happen. Although any operating system may be affected, users running Apple Git on macOS are much less likely to be affected. This issue has been addressed in release version 0.10.10. All users are advised to upgrade.
Patch / fix
- crates.io gix-path 0.10.10
- Byron gitoxide 0.10.10
- rust-gix-path Debian 14, Debian 13 0.10.11-1
debian advisories DEBIAN-CVE-2024-45305
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-45305 updated cvss 2.5
gix-path: Flaw in gix-path Crate could lead to misconfiguration and information leakage
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.24% chance of exploitation in the next 30 days, higher than 15% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 2.5 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
| GitHub | 3.1 | 2.5 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
| OSV | 3.1 | 2.5 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | gix-path | <0.10.10 >=0.0.0-0, <0.10.10 |
0.10.10 |
Affected products
- Byron gitoxide
Classification
- Weakness
-
- CWE-706 Use of Incorrectly-Resolved Name or Reference
References
-
github.com
/Byron/gitoxide/commit/12251eb052df30105538fa831e641eea557f13d8
web
-
github.com
/Byron/gitoxide/security/advisories/GHSA-v26r-4c9c-h3j6
web
-
git-scm.com
/docs/git-config#SCOPES
web
-
github.com
/Byron/gitoxide/blob/12251eb052df30105538fa831e641eea557f13d8/gix-path/src/env/git/mod.rs#L112
web
-
github.com
/Byron/gitoxide/blob/12251eb052df30105538fa831e641eea557f13d8/gix-path/src/env/git/mod.rs#L91
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-45305
advisory, web
-
github.com
/Byron/gitoxide
package
-
rustsec.org
/advisories/RUSTSEC-2024-0367.html
web, advisory
-
crates.io
/crates/gix-path
package
Sources
- CVE List CVE-2024-45305
- GitHub Advisory GHSA-v26r-4c9c-h3j6
- NVD CVE-2024-45305
- OSV RUSTSEC-2024-0367
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.