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

Badges

👾 Exploit Exists🟡 Public PoC

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

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

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

  • 🟡

    Public PoC available

  • 👾

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

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