Skip to content
StratQuad

Threats

Git submodule path carriage return handling flaw

CVE-2025-48384Known exploitedHigh

Git does not consistently handle carriage return characters when reading and writing configuration files. When a submodule path contains a trailing carriage return, Git reads an altered path during initialisation, causing the submodule to be checked out to an incorrect location. If a symlink exists at the altered path pointing to the submodule hooks directory, and the submodule contains an executable post-checkout hook, an attacker can cause the hook script to execute unintentionally after checkout by crafting a repository with a malicious submodule configuration.

Plain English summary of the NVD and CISA text, checked by machine against both.

Scores and dates

CVSS 3.1
8.0
HIGH
EPSS score
0.04
Probability of exploitation in 30 days
EPSS percentile
91st
Share of scored CVEs at or below this one
Added to KEV
25 Aug 2025
CISA due date
15 Sept 2025
Applies to US federal agencies

CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H

Daily EPSS score, 3 Nov to 14 Nov, source FIRST

Detail

Git. CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Weakness: CWE-436 (opens in a new tab), CWE-59 (opens in a new tab)

Affected versions

  • git-scm git: before 2.43.7
  • git-scm git: from 2.44.0, before 2.44.4
  • git-scm git: from 2.45.0, before 2.45.4
  • git-scm git: from 2.46.0, before 2.46.4
  • git-scm git: from 2.47.0, before 2.47.3
  • git-scm git: from 2.48.0, before 2.48.2
  • git-scm git: from 2.49.0, before 2.49.1
  • git-scm git: from 2.50.0, before 2.50.1
  • debian debian linux: 11.0
  • apple xcode: before 26.0