
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."