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

- Priority: **Routine**
- Reason: Not severe (CVSS 2.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-09-02 · Modified: 2024-09-03
- Aliases: UBUNTU-CVE-2024-45305, DEBIAN-CVE-2024-45305, CGA-4jv6-8r8j-r998, CGA-8gg3-cqmh-r8pj, CGA-jvp3-fx4w-5vwx, CGA-qwg6-vqrf-6hhj, CGA-vmq8-wj6w-3c34, CGA-xcxp-43qr-w8c9, GHSA-v26r-4c9c-h3j6, RUSTSEC-2024-0367
- Record: https://cvemate.com/vulnerability/CVE-2024-45305 · JSON: https://cvemate.com/vulnerability/CVE-2024-45305/json

## Description

```text
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.
```

## Signals

- CVSS: 2.5 low (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
- EPSS: 0.244%, percentile 16.678%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard cargo-audit (Chainguard): \< 0.21.2-r1
- chainguard cargo-c (Chainguard): \< 0.10.23-r1
- chainguard starship (Chainguard): \< 1.22.1-r0
- wolfi cargo-audit (Wolfi): \< 0.21.2-r1
- wolfi cargo-c (Wolfi): \< 0.10.23-r1
- wolfi starship (Wolfi): \< 1.22.1-r0
- byron gitoxide: \< 0.10.10
- Crates.Io gix-path (Crates.Io): \< 0.10.10 \| ≥ 0.0.0-0, \< 0.10.10
- debian rust-gix-path (Debian): \< 0.10.11-1
- ubuntu rust-gix-path (Ubuntu): All versions (No fix recorded)

## References

- <https://github.com/Byron/gitoxide/security/advisories/GHSA-v26r-4c9c-h3j6>
- <https://git-scm.com/docs/git-config#SCOPES>
- <https://github.com/Byron/gitoxide/blob/12251eb052df30105538fa831e641eea557f13d8/gix-path/src/env/git/mod.rs#L112>
- <https://github.com/Byron/gitoxide/blob/12251eb052df30105538fa831e641eea557f13d8/gix-path/src/env/git/mod.rs#L91>
- <https://ubuntu.com/security/CVE-2024-45305>
- <https://www.cve.org/CVERecord?id=CVE-2024-45305>
- <https://security-tracker.debian.org/tracker/CVE-2024-45305>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45305.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45305>
- <https://github.com/Byron/gitoxide>
- <https://rustsec.org/advisories/RUSTSEC-2024-0367.html>
- <https://crates.io/crates/gix-path>
- <https://github.com/Byron/gitoxide/commit/12251eb052df30105538fa831e641eea557f13d8>
- <https://github.com/advisories/GHSA-v26r-4c9c-h3j6>

---

Data as of 2026-12-05T18:17:26.486Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
