# CVE-2024-45405: gix-path improperly resolves configuration path reported by Git

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.0
- **CVSS:** 6.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-41, CWE-427
- **Aliases:** GHSA-m8rp-vv92-46c7, RUSTSEC-2024-0371
- **Published:** 2024-09-06T12:00:00.000Z
- **Modified:** 2026-11-09T11:00:02.579Z

## Who should check

- Projects that depend on crates.io package gix-path (\< 0.10.11)
- Anyone running Byron gitoxide \< 0.10.11

## Description

\`gix-path\` is a crate of the \`gitoxide\` project (an implementation of \`git\` written in Rust) dealing paths and their conversions. Prior to version 0.10.11, \`gix-path\` runs \`git\` to find the path of a configuration file associated with the \`git\` installation, but improperly resolves paths containing unusual or non-ASCII characters, in rare cases enabling a local attacker to inject configuration leading to code execution. Version 0.10.11 contains a patch for the issue.

In \`gix\_path::env\`, the underlying implementation of the \`installation\_config\` and \`installation\_config\_prefix\` functions calls \`git config -l --show-origin\` to find the path of a file to treat as belonging to the \`git\` installation. Affected versions of \`gix-path\` do not pass \`-z\`/\`--null\` to cause \`git\` to report literal paths. Instead, to cover the occasional case that \`git\` outputs a quoted path, they attempt to parse the path by stripping the quotation marks. The problem is that, when a path is quoted, it may change in substantial ways beyond the concatenation of quotation marks. If not reversed, these changes can result in another valid path that is not equivalent to the original.

On a single-user system, it is not possible to exploit this, unless \`GIT\_CONFIG\_SYSTEM\` and \`GIT\_CONFIG\_GLOBAL\` have been set to unusual values or Git has been installed in an unusual way. Such a scenario is not expected. Exploitation is unlikely even on a multi-user system, though it is plausible in some uncommon configurations or use cases. In general, exploitation is more likely to succeed if users are expected to install \`git\` themselves, and are likely to do so in predictable locations; locations where \`git\` is installed, whether due to usernames in their paths or otherwise, contain characters that \`git\` quotes by default in paths, such as non-English letters and accented letters; a custom \`system\`-scope configuration file is specified with the \`GIT\_CONFIG\_SYSTEM\` environment variable, and its path is in an unusual location or has strangely named components; or a \`system\`-scope configuration file is absent, empty, or suppressed by means other than \`GIT\_CONFIG\_NOSYSTEM\`. Currently, \`gix-path\` can treat a \`global\`-scope configuration file as belonging to the installation if no higher scope configuration file is available. This increases the likelihood of exploitation even on a system where \`git\` is installed system-wide in an ordinary way. However, exploitation is expected to be very difficult even under any combination of those factors.

## Affected and fixed versions

- crates.io `gix-path`: affected \< 0.10.11; fixed 0.10.11 (osv)
- Byron gitoxide: \< 0.10.11 (cvelist)

## Mitigation

- Upgrade gix-path to 0.10.11 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-45405. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-45405.md
Affected: gix-path < 0.10.11
Fixed in: 0.10.11

Steps:
1. Search this machine and project for gix-path (crates.io), Byron gitoxide: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-45405 being exploited?

There is no confirmed exploitation: CVE-2024-45405 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-45405?

Medium: CVSS 6.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-45405?

gix-path \< 0.10.11.

### Is there a fix for CVE-2024-45405?

Yes. Fixed in 0.10.11. Upgrade gix-path to 0.10.11 or later.

### How do I check if I'm affected by CVE-2024-45405?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/Byron/gitoxide/security/advisories/GHSA-m8rp-vv92-46c7>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-45405>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2024-0371.html>
- patch: <https://github.com/Byron/gitoxide/commit/650a1b5cf25e086197cc55a68525a411e1c28031>
- other: <https://github.com/Byron/gitoxide/blob/1cfe577d461293879e91538dbc4bbfe01722e1e8/gix-path/src/env/git/mod.rs#L138-L142>
- other: <https://github.com/Byron/gitoxide>
- other: <https://crates.io/crates/gix-path>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-45405>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-m8rp-vv92-46c7> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2024-0371> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-45405> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-45405>
