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

- Severity: Low 2.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-08-31T12:00:00.000Z
- Modified: 2026-11-09T11:00:02.605Z
- Also known as: GHSA-v26r-4c9c-h3j6, RUSTSEC-2024-0367
- Weaknesses: CWE-706
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Byron gitoxide: < 0.10.10; before 0.10.10
- gix-path (crates.io): before 0.10.10; from 0.0.0-0 before 0.10.10

## Every score

- GitHub_M: CVSS:3.1 2.5 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 2.5 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- RustSec Advisory Database: CVSS:3.1 2.5 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`

## References

- <https://github.com/Byron/gitoxide/security/advisories/GHSA-v26r-4c9c-h3j6> (web)
- <https://git-scm.com/docs/git-config#SCOPES> (web)
- <https://github.com/Byron/gitoxide/blob/12251eb052df30105538fa831e641eea557f13d8/gix-path/src/env/git/mod.rs#L112> (web)
- <https://github.com/Byron/gitoxide/blob/12251eb052df30105538fa831e641eea557f13d8/gix-path/src/env/git/mod.rs#L91> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45305> (advisory, web)
- <https://github.com/Byron/gitoxide> (package)
- <https://rustsec.org/advisories/RUSTSEC-2024-0367.html> (advisory, web)
- <https://crates.io/crates/gix-path> (package)
- <https://github.com/Byron/gitoxide/commit/12251eb052df30105538fa831e641eea557f13d8> (web)

## Sources

- CVE List: [CVE-2024-45305](https://www.cve.org/CVERecord?id=CVE-2024-45305), CVE Terms of Use, modified 2024-09-03
- GitHub Advisory Database: [GHSA-v26r-4c9c-h3j6](https://github.com/advisories/GHSA-v26r-4c9c-h3j6), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2024-0367](https://rustsec.org/advisories/RUSTSEC-2024-0367.html), CC0-1.0, modified 2026-11-09
- NVD: [CVE-2024-45305](https://nvd.nist.gov/vuln/detail/CVE-2024-45305), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45305 · Whole record: https://cve.day/CVE-2024-45305.json · Rebuilt by cve.day 2026-11-25T22:58:44.995Z
