CVE-2024-45405
published medium CVSS 3.1 · 6.0gix-path improperly resolves configuration path reported by Git
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Byron | — | gitoxide< 0.10.11 | Affected | Not stated | GitHub_M |
| byron | — | gitoxide0 to < 0.10.11 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cargo-caarch64 | Advisory build | 0.10.3~git0.ee7d7ef-150600.3.3.1 | SUSE-SU-2024:3748-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cargo-cppc64le | Advisory build | 0.10.3~git0.ee7d7ef-150600.3.3.1 | SUSE-SU-2024:3748-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cargo-cs390x | Advisory build | 0.10.3~git0.ee7d7ef-150600.3.3.1 | SUSE-SU-2024:3748-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cargo-cx86_64 | Advisory build | 0.10.3~git0.ee7d7ef-150600.3.3.1 | SUSE-SU-2024:3748-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo-auditaarch64 | Advisory build | 0.20.0~git66.972ac93-3.1 | OPENSUSE-SU-2024:14363-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo-auditppc64le | Advisory build | 0.20.0~git66.972ac93-3.1 | OPENSUSE-SU-2024:14363-1 |
Show 38 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo-audits390x | Advisory build | 0.20.0~git66.972ac93-3.1 | OPENSUSE-SU-2024:14363-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo-auditx86_64 | Advisory build | 0.20.0~git66.972ac93-3.1 | OPENSUSE-SU-2024:14363-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo-caarch64 | Advisory build | 0.10.3~git0.ee7d7ef-2.1 | OPENSUSE-SU-2024:14359-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo-cppc64le | Advisory build | 0.10.3~git0.ee7d7ef-2.1 | OPENSUSE-SU-2024:14359-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo-cs390x | Advisory build | 0.10.3~git0.ee7d7ef-2.1 | OPENSUSE-SU-2024:14359-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo-cx86_64 | Advisory build | 0.10.3~git0.ee7d7ef-2.1 | OPENSUSE-SU-2024:14359-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | obs-service-cargoaarch64 | Advisory build | 1.3.6-5.1 | OPENSUSE-SU-2024:14364-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | obs-service-cargoppc64le | Advisory build | 1.3.6-5.1 | OPENSUSE-SU-2024:14364-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | obs-service-cargos390x | Advisory build | 1.3.6-5.1 | OPENSUSE-SU-2024:14364-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | obs-service-cargox86_64 | Advisory build | 1.3.6-5.1 | OPENSUSE-SU-2024:14364-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | onefetchaarch64 | Advisory build | 2.22.0-1.1 | OPENSUSE-SU-2024:14353-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | onefetchppc64le | Advisory build | 2.22.0-1.1 | OPENSUSE-SU-2024:14353-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | onefetchs390x | Advisory build | 2.22.0-1.1 | OPENSUSE-SU-2024:14353-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | onefetchx86_64 | Advisory build | 2.22.0-1.1 | OPENSUSE-SU-2024:14353-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgitaarch64 | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgitppc64le | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgits390x | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgitx86_64 | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-bash-completionaarch64 | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-bash-completionppc64le | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-bash-completions390x | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-bash-completionx86_64 | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-emacsaarch64 | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-emacsppc64le | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-emacss390x | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-emacsx86_64 | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-fish-completionaarch64 | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-fish-completionppc64le | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-fish-completions390x | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-fish-completionx86_64 | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-vim-pluginaarch64 | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-vim-pluginppc64le | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-vim-plugins390x | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-vim-pluginx86_64 | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-zsh-completionaarch64 | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-zsh-completionppc64le | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-zsh-completions390x | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | stgit-zsh-completionx86_64 | Advisory build | 2.4.12-1.1 | OPENSUSE-SU-2024:14355-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.0 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Byron | gitoxide | < 0.10.11 (affected) | GitHub_M · cna |
| byron | gitoxide | 0 to < 0.10.11 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
2- CWE-41 CWE-41: Improper Resolution of Path Equivalence
- CWE-427 CWE-427: Uncontrolled Search Path Element
References
3Provider assertions
2GitHub_M · cna
gix-path improperly resolves configuration path reported by Git
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 56127825c266e919cfff789960868ae179a928919121a4569a0082fc91ce45f6
- Ingested
- 23 Sep 2026, 08:27:47 UTC
- Source record
- Official CVE record