SecurityContext

CVE-2024-45305: gix-path - Misconfiguration

  • Cve: CVE-2024-45305
  • Name: gix-path - Misconfiguration
  • 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.
  • Impact: Less trusted repositories may be treated as more trusted or sensitive information may be leaked between repositories.
  • Remediation: Upgrade to version 0.10.10 or later.
  • Vulnerability type: misconfiguration
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: low
  • Cvss score: 2.5
  • Cvss vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
  • Epss score: 0.00244
  • Epss percentile: 0.15729
  • Assignee: [email protected]
  • Published at: 2024-09-02T18:15:36Z
  • Age in days: 813
  • Modified at: 2026-06-17T07:53:59Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-45305
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-706Use of Incorrectly-Resolved Name or Reference

References

Same in every row:

  • Source: nvd
  • Tags:
Url
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://github.com/Byron/gitoxide/security/advisories/GHSA-v26r-4c9c-h3j6

Products

ProductAffectedPlatform boundSourcesUrl
byron:gitoxide< 0.10.10noadp_cpes/v1/products/byron/gitoxide

Projects

RepositoryLink kindsIndexedUrl
byron/gitoxidepackage, security_advisoryyes/v1/repositories/byron/gitoxide

Index

  • Repositories: 5
  • Repositories high signal: 1
  • Packages: 1

Exploitation

  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts