Code Execution Risk in Git Due to Submodule Path Handling
CVE-2025-48384

8.1HIGH

Key Information:

Vendor

Git

Status
Vendor
CVE Published:
8 July 2025

What is CVE-2025-48384?

A vulnerability exists in Git that affects how configuration values are read and written, particularly regarding trailing carriage returns. When a submodule path includes a trailing carriage return, it is altered when read back, which can cause the submodule to be checked out to an incorrect location. This misconfiguration poses a security risk when a symlink points to the altered path, potentially leading to the execution of unintended scripts from the submodule's hooks directory. This issue has been addressed in the latest versions of Git.

Affected Version(s)

git < 2.43.7 < 2.43.7

git >= 2.44.0-rc0, < 2.44.4 < 2.44.0-rc0, 2.44.4

git >= 2.45.0-rc0, < 2.45.4 < 2.45.0-rc0, 2.45.4

References

CVSS V3.1

Score:
8.1
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
Low
User Interaction:
Required
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.
CVE-2025-48384 : Code Execution Risk in Git Due to Submodule Path Handling