Git
cpe:2.3:a:git:git:*:*:*:*:*:*:*, +2 more
- v2.50.0
- v2.49.0
- >= v2.48.0, <= v2.48.1
- >= v2.47.0, <= v2.47.2
- >= v2.46.0, <= v2.46.3
- >= v2.45.0, <= v2.45.3
- >= v2.44.0, <= v2.44.3
- v2.43.6
This vulnerability is being actively exploited in the wild.
A vulnerability in Git allows arbitrary code execution due to improper handling of configuration values. When Git reads configuration, it removes any trailing carriage returns and line feeds. However, when writing configuration, values with trailing carriage returns are not properly quoted, leading to the loss of the carriage return when the configuration is read again. This issue becomes problematic when initializing a submodule with a path that includes a trailing carriage return, as it causes the submodule to be checked out in the wrong location. If a symlink directs this altered path to the submodule hooks directory, and the submodule has an executable post-checkout hook, the hook may be inadvertently executed after the checkout process.
Exploitation of this vulnerability could lead to arbitrary code execution, as a post-checkout hook in the affected submodule could be executed unintentionally, potentially running malicious scripts or commands.
Users are advised to upgrade to Git versions 2.43.7, 2.44.4, 2.45.4, 2.46.4, 2.47.3, 2.48.2, 2.49.1, or 2.50.1. Alternatively, avoid recursively cloning submodules from untrusted repositories.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.