Patchfirst
CVE-2025-48384 KEVPublic exploit High · 8.0 EPSS 4.4%

Git Link Following Vulnerability

Git · Git

Summary

Git contains a flaw in its handling of carriage returns in config values and submodule paths, which can cause a submodule to be checked out to an incorrect location. An attacker who controls a repository can exploit this to get an executable post-checkout hook in a submodule run, provided a symlink points the altered path at the submodule hooks directory and the victim performs a submodule initialisation that requires user interaction.

Official description · NVD

Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When reading a config value, Git strips any trailing carriage return and line feed (CRLF). When writing a config entry, values with a trailing CR are not quoted, causing the CR to be lost when the config is later read. When initializing a submodule, if the submodule path contains a trailing CR, the altered path is read resulting in the submodule being checked out to an incorrect location. If a symlink exists that points the altered path to the submodule hooks directory, and the submodule contains an executable post-checkout hook, the script may be unintentionally executed after checkout. This vulnerability is fixed in v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1, and v2.50.1.

Breakdown
66.9 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
1/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 48 days after disclosure. Public exploit code (PoC-in-GitHub) was available the same day.

  1. DisclosedPublic exploit codePoC-in-GitHubday 0
  2. First seen exploitedVulnCheck KEV evidenceAdded to CISA KEVEU database agrees+48 days

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

2 , grouped by in kill-chain order, 2 cited passages 2

ExecutionTA0002

Command and Scripting Interpreter T1059 Medium
AI mapping from the description · primary impact

post-checkout hook script executes on victim

the script may be unintentionally executed after checkout
From the official description (NVD) Original (opens in a new tab) ↗
Malicious File T1204.002 Medium
AI mapping from the description · how it is exploited

victim checks out a malicious repository submodule

the submodule contains an executable post-checkout hook
From the official description (NVD) Original (opens in a new tab) ↗

Detection

0 rules for this CVE · 134 general rules for its techniques

Rules for this CVE

0 that reference CVE-2025-48384 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

5 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close