Vulnerability DatabaseRUSTSEC-2024-0367

RUSTSEC-2024-0367
Rust vulnerability analysis and mitigation

Overview

RUSTSEC-2024-0367 (CVE-2024-45305) affects the gix-path Rust package versions prior to 0.10.10. The vulnerability occurs when gix-path executes git to find the path of a configuration file belonging to the git installation, but incorrectly treats the local repository's configuration as system-wide if no higher scoped configuration is found (GitHub Advisory).

Technical details

The vulnerability exists in the gix_path::env implementation of the installation_config and installation_config_prefix functions. These functions call 'git config -l --show-origin' and parse the first line of output to extract the path to the configuration file holding the configuration variable of highest scope. The issue manifests when configuration files associated with higher scopes are deliberately skipped using GIT_CONFIG_SYSTEM and GIT_CONFIG_GLOBAL environment variables, or when the GIT_CONFIG_NOSYSTEM environment variable is used to disable installation-associated configuration. The vulnerability has been assigned a CVSS score of 2.5 (Low) with the vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N (GitHub Advisory).

Impact

The vulnerability can lead to two primary issues: less secure configurations may be set for specific repositories where deemed acceptable but not wanted for others, and more critically, configuration that supplies secrets for one repository's remote can be inadvertently used to send those secrets to another repository's remote. The impact is particularly concerning in scenarios where a user is in one repository while operating on another, such as during repository cloning operations (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.10.10 and later. Users are advised to upgrade to the patched version. As additional security measures, it's recommended to use credential managers and implement repository-specific configurations rather than general ones. Using http..extraHeader with as specific a scope as possible, rather than the more general http.extraHeader, can help mitigate potential risks (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22863CRITICAL9.2
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-23519HIGH8.9
  • RustRust
  • yazi
NoYesJan 15, 2026
RUSTSEC-2026-0003HIGH8.9
  • RustRust
  • cmov
NoYesJan 14, 2026
CVE-2026-22864HIGH8.1
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-22782LOW2.9
  • RustRust
  • rustfs
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management