CVE-2025-48384 is a high-severity vulnerability found in Git, a widely-used distributed version control system. This vulnerability arises from the way Git handles configuration values, specifically concerning trailing carriage returns. When Git reads a configuration value, it strips any trailing carriage return and line feed (CRLF). However, when writing a configuration entry, values with a trailing carriage return are not quoted, leading to potential loss of important data when the configuration is read again.
This flaw can be particularly detrimental during the initialization of submodules. If a submodule path contains a trailing carriage return, Git may incorrectly interpret the path, resulting in the submodule being checked out to an unintended location. The implications of this vulnerability are significant, especially if there's a symbolic link pointing to the incorrectly altered path that leads to the submodule hooks directory. If this submodule has an executable post-checkout hook, it may execute unintentionally after the checkout process.
The vulnerability was published on July 8, 2025, and has been assigned a CVSS score of 8, categorizing it as high severity. Organizations utilizing affected versions of Git, Apple’s Xcode, or Debian Linux are at risk, and should take immediate action to mitigate this vulnerability.
Risk to organizations includes potential arbitrary code execution, which can lead to unauthorized access and system compromise. Attackers may leverage this flaw to execute malicious scripts within the affected environments. Organizations should prioritize patching immediately.
The vulnerability is actively exploited, and public proof of concept (PoC) code has been found, indicating that this issue is being taken seriously by the security community.
To mitigate this vulnerability, organizations must upgrade to fixed versions of Git, specifically v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1, or v2.50.1. It is critical to ensure that all affected products are updated to prevent exploitation.
For ongoing risk management, organizations should conduct regular vulnerability assessments and maintain an updated inventory of their software components.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

.webp)