Actively exploited in the wild. This CVE is on the CISA Known Exploited Vulnerabilities list — treat remediation as urgent. Federal remediation due by 15 Sep 2025.
GitApplication · Git Scm

CVE-2025-48384

HIGH · 8.0 CVSS v3.1 Published 2025-07-08
Fix available
A fix is available. Upgrade to 2.43.7 / 2.44.4 or later.
See remediation →
98/100
Remediation priority · Urgent
In the wild Remotely reachable

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Git has a CRLF handling vulnerability where trailing carriage return characters in submodule paths cause incorrect path resolution during checkout. When a submodule path contains a trailing CR, Git reads an altered path causing checkout to an incorrect location. If a symlink points this altered path to the submodule hooks directory and an executable post-checkout hook exists, it can be unintentionally executed, leading to arbitrary code execution.

MitigationUpgrade Git to version 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. Additionally, audit repositories for submodule configurations involving paths with special characters and symlinks pointing to hooks directories.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
GitApplication
Affected:< 2.43.7>= 2.44.0, < 2.44.4>= 2.45.0, < 2.45.4>= 2.46.0, < 2.46.4>= 2.47.0, < 2.47.3>= 2.48.0, < 2.48.2>= 2.49.0, < 2.49.1>= 2.50.0, < 2.50.1
Debian LinuxOperating system
Affected:= 11.0
XcodeApplication
Affected:< 26.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
Low
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check installed Git version
    Run `git --version` and compare the output to the affected version ranges: < 2.43.7; >= 2.44.0, < 2.44.4; >= 2.45.0, < 2.45.4; >= 2.46.0, < 2.46.4; >= 2.47.0, < 2.47.3; >= 2.48.0, < 2.48.2; >= 2.49.0, < 2.49.1; >= 2.50.0, < 2.50.1
    Affected if The installed version falls within any of the affected ranges
  2. Inspect submodule paths for trailing CR characters
    Examine the .gitmodules file and run `git submodule status` to identify submodules. Use a hex viewer or grep with non-printable character detection (e.g., `grep -P '\r' .gitmodules` or `git config --get-regexp submodule\..*\.path` with output inspected for CR bytes at line ends) to detect trailing carriage return characters in submodule paths
    Affected if Any submodule path contains a trailing CR (\r) character before the line break
  3. Look for symlinks pointing to hooks directories
    Search the repository for symlinks that resolve to paths containing 'hooks' (e.g., `find . -type l -ls` and inspect target paths, or search for symlinks with 'hooks' in the target using `find . -type l -exec ls -la {} \; 2>/dev/null | grep -i hooks`)
    Affected if A symlink target contains 'hooks' and points to an unexpected location or a location within a submodule directory
  4. Identify executable post-checkout hooks in submodules
    Search for post-checkout hook files within submodule directories and check their permissions: `find . -path '*/.git/hooks/post-checkout' -type f -executable` or within submodule paths, and examine any hook that exists in directories reachable via symlinks from step 3
    Affected if An executable post-checkout hook exists in a location that could be triggered through the symlink misdirection caused by trailing CR in submodule paths

You are affected if your Git version is within the vulnerable ranges AND you have submodules with trailing CR characters in their paths, combined with suspicious symlinks that could redirect execution to executable hooks.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 2.43.7 / 2.44.4 / 2.45.4 or later
Fixed in 2.43.72.44.42.45.4
Interim mitigation

Upgrade Git to version 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. Additionally, audit repositories for submodule configurations involving paths with special characters and symlinks pointing to hooks directories.

Recommended fix High confidence

Git 2.46.4 (or 2.47.3/2.48.2/2.49.1/2.50.1 for latest stable)

  1. Check current Git version by running: git --version
  2. Identify your current version branch: if < 2.43.7 upgrade to 2.43.7 or later; if >= 2.44.0 and < 2.44.4 upgrade to 2.44.4 or later; if >= 2.45.0 and < 2.45.4 upgrade to 2.45.4 or later; if >= 2.46.0 and < 2.46.4 upgrade to 2.46.4 or later
  3. On Linux/Debian: run 'apt-get update && apt-get install git' to get the latest packaged version
  4. On macOS with Homebrew: run 'brew upgrade git'
  5. On Windows: download installer from git-scm.com or update via Git for Windows
  6. Verify upgrade succeeded: run 'git --version' and confirm it shows a fixed version (2.43.7+, 2.44.4+, 2.45.4+, 2.46.4+, or later)
Caveat Minimal risk - point upgrade with bug fixes; may require updating dependent tools if they have version constraints

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Git Exploited in the wild — priority engagement
  • Consultation2.0 h
  • Implementation4.0 h
  • Testing6.0 h
  • Review / QA3.0 h
15.0 hours of engineering $2,560
Get it fixed fast

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,096.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-48384 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-48384 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data