CWE-73Weakness · CWE-73

CVE-2025-48385

HIGH · 8.6 CVSS v4.0 Published 2025-07-08
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
93/100
Remediation priority · Urgent
Remotely reachable No privileges

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 cloning a repository Git knows to optionally fetch a bundle advertised by the remote server, which allows the server-side to offload parts of the clone to a CDN. The Git client does not perform sufficient validation of the advertised bundles, which allows the remote side to perform protocol injection. This protocol injection can cause the client to write the fetched bundle to a location controlled by the adversary. The fetched content is fully controlled by the server, which can in the worst case lead to arbitrary code execution. The use of bundle URIs is not enabled by default and can be controlled by the bundle.heuristic config option. Some cases of the vulnerability require that the adversary is in control of where a repository will be cloned to. This either requires social engineering or a recursive clone with submodules. These cases can thus be avoided by disabling recursive clones. 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 client fails to validate advertised bundles during repository clones, allowing remote protocol injection that can write bundle content to attacker-controlled locations. Since the server fully controls the bundle content, this can lead to arbitrary code execution. The attack requires bundle URI support (bundle.heuristic config) or social engineering/recursive submodules to control the clone destination.

MitigationUpgrade Git to patched versions (v2.43.7+, v2.44.4+, v2.45.4+, v2.46.4+, v2.47.3+, v2.48.2+, v2.49.1+, v2.50.1+). As a defense-in-depth measure, disable recursive clones and avoid enabling bundle.heuristic unless strictly required.

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

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
Low
Privileges
None
Authentication
X
User interaction
A
Scope
X

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

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. Determine installed Git version
    Run `git --version` to get the version number, then compare against the patched ranges: v2.43.7+, v2.44.4+, v2.45.4+, v2.46.4+, v2.47.3+, v2.48.2+, v2.49.1+, v2.50.1+. Versions before these are potentially vulnerable.
    Affected if Installed Git version is lower than the patched version for your release line (e.g., any v2.43.x below 2.43.7, any v2.44.x below 2.44.4, etc.)
  2. Check bundle.heuristic configuration
    Run `git config --get-all bundle.heuristic` or `git config --list | grep bundle.heuristic` to see if any bundle URI heuristics are enabled.
    Affected if bundle.heuristic is set to any value (such as 'basic' or 'clone')
  3. Check submodule recursion setting
    Run `git config --get-all submodule.recurse` or inspect repository .gitmodules files for `submodule .* branch` entries combined with global or repo-specific submodule.recurse settings.
    Affected if submodule.recurse is enabled (set to true or yes) or clones routinely use the --recurse-submodules flag

You are affected if your Git version is older than the patched versions AND (bundle.heuristic is enabled OR your workflows use recursive submodule cloning).

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
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade Git to patched versions (v2.43.7+, v2.44.4+, v2.45.4+, v2.46.4+, v2.47.3+, v2.48.2+, v2.49.1+, v2.50.1+). As a defense-in-depth measure, disable recursive clones and avoid enabling bundle.heuristic unless strictly required.

Recommended fix High confidence

v2.50.1 (or any version >= v2.43.7: v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1)

  1. Check current Git version with: git --version
  2. Upgrade Git to a patched version via your system's package manager or from https://git-scm.com/
  3. For Debian/Ubuntu: sudo apt-get update && sudo apt-get install git
  4. For RHEL/CentOS/Fedora: sudo yum update git or sudo dnf update git
  5. For macOS: brew upgrade git or download installer from git-scm.com
  6. For Windows: download installer from https://git-scm.com/download/win
  7. Verify upgrade succeeded: git --version
  8. Confirm the installed version is one of the fixed releases: 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 (prefer v2.50.1)

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

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation4.0 h
  • Testing2.0 h
  • Review / QA1.0 h
9.0 hours of engineering $1,600
Get help mitigating

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

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-48385 — 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-48385 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