CVE-2025-48385
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 · uneditedGit 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 confidenceGit 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.
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 checksWork through these to decide whether this CVE applies to you.
-
Determine installed Git versionRun `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.)
-
Check bundle.heuristic configurationRun `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')
-
Check submodule recursion settingRun `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.
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 · scopedUpgrade 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.
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)
- Check current Git version with: git --version
- Upgrade Git to a patched version via your system's package manager or from https://git-scm.com/
- For Debian/Ubuntu: sudo apt-get update && sudo apt-get install git
- For RHEL/CentOS/Fedora: sudo yum update git or sudo dnf update git
- For macOS: brew upgrade git or download installer from git-scm.com
- For Windows: download installer from https://git-scm.com/download/win
- Verify upgrade succeeded: git --version
- 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.
- Consultation2.0 h
- Implementation4.0 h
- Testing2.0 h
- Review / QA1.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-48385 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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