cve.bz

CVE-2025-48385 git git: External Control of File Name or Path

8.6 highEPSS 1.1%

High (8.6) in git git. EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

8.6 high
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
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-07-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-73 External Control of File Name or Path
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
OWASP Top 10
A05:2025 Injection, A06:2025 Insecure Design
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-48385 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-48385?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-48385?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-48385 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
git< 2.43.7
git>= 2.44.0-rc0, < 2.44.4
git>= 2.45.0-rc0, < 2.45.4
git>= 2.46.0-rc0, < 2.46.4
git>= 2.47.0-rc0, < 2.47.3
git>= 2.48.0-rc0, < 2.48.2
git>= 2.49.0-rc0, < 2.49.1
git>= 2.50.0-rc0, < 2.50.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12git1:2.39.5-0+deb12u3DEBIAN-CVE-2025-48385
Debian13git1:2.47.3-0+deb13u1DEBIAN-CVE-2025-48385
Debian14git1:2.50.1-0.1DEBIAN-CVE-2025-48385
Ubuntu22.04:LTSgit1:2.34.1-1ubuntu1.13USN-7626-1
Ubuntu24.04:LTSgit1:2.43.0-1ubuntu7.3UBUNTU-CVE-2025-48385 USN-7626-1
UbuntuPro:16.04:LTSgit1:2.7.4-0ubuntu1.10+esm9USN-7626-1
UbuntuPro:18.04:LTSgit1:2.17.1-1ubuntu0.18+esm2USN-7626-1
UbuntuPro:20.04:LTSgit1:2.25.1-1ubuntu3.14+esm1USN-7626-1
Red Hatenterprise_linux:8::appstreamgit, gitk, gitweb and 17 more0:2.43.7-1.el8_10RHSA-2025:11534
Red Hatenterprise_linux:9::appstreamgit, gitk, gitweb and 17 more0:2.47.3-1.el9_6RHSA-2025:11462
Red Hatenterprise_linux:10.0git, gitk, gitweb and 17 more0:2.47.3-1.el10_0RHSA-2025:11533
Red Hatrhel_e4s:8.8::appstream, rhel_tus:8.8::appstreamgit, gitk, gitweb and 17 more0:2.39.5-1.el8_8.2RHSA-2025:11794
Red Hatrhel_e4s:9.2::appstreamgit, gitk, gitweb and 17 more0:2.39.5-1.el9_2.2RHSA-2025:11795
Red Hatrhel_eus:9.4::appstreamgit, gitk, gitweb and 17 more0:2.43.5-1.el9_4.2RHSA-2025:11686
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 12 moregit2.43.7-150300.10.51.1SUSE-SU-2025:03037-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Development Tools 15 SP6 and 1 moregit2.51.0-150600.3.12.1SUSE-SU-2025:03012-1
SUSELinux Enterprise Module for Development Tools 15 SP6, Linux Enterprise Module for Development Tools 15 SP7git-lfs3.7.0-150600.13.3.1SUSE-SU-2025:03012-1
SUSELinux Enterprise Module for Development Tools 15 SP6, Linux Enterprise Module for Development Tools 15 SP7obs-scm-bridge0.7.4-150600.14.4.1SUSE-SU-2025:03012-1
SUSELinux Enterprise Module for Python 3 15 SP6, Linux Enterprise Module for Python 3 15 SP7python-PyYAML6.0.2-150600.10.3.1SUSE-SU-2025:03012-1
SUSELinux Micro 6.0git2.51.0-1.1SUSE-SU-2025:20721-1
SUSELinux Micro 6.1git2.51.0-slfo.1.1_1.1SUSE-SU-2025:20855-1
openSUSELeap 15.6git2.51.0-150600.3.12.1SUSE-SU-2025:03012-1
openSUSELeap 15.6git-lfs3.7.0-150600.13.3.1SUSE-SU-2025:03012-1
openSUSELeap 15.6obs-scm-bridge0.7.4-150600.14.4.1SUSE-SU-2025:03012-1
openSUSELeap 15.6python-PyYAML6.0.2-150600.10.3.1SUSE-SU-2025:03012-1
openSUSETumbleweedgit2.50.1-1.1openSUSE-SU-2025:15337-1
AlmaLinux8git, gitk, gitweb and 12 more2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux9git, gitk, gitweb and 12 more2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux10gitk, gitweb, git-all and 8 more2.47.3-1.el10_0ALSA-2025:11533
Rocky Linux8git0:2.43.7-1.el8_10RLSA-2025:11534
Rocky Linux9git0:2.47.3-1.el9_6RLSA-2025:11462
Alpinev3.19git2.43.7-r0ALPINE-CVE-2025-48385
Alpinev3.20git2.45.4-r0ALPINE-CVE-2025-48385
Alpinev3.21git2.47.3-r0ALPINE-CVE-2025-48385
Alpinev3.22git2.49.1-r0ALPINE-CVE-2025-48385
Alpinev3.23, v3.24git2.50.1-r0ALPINE-CVE-2025-48385
Azure Linux2git2.40.4-2AZL-65051
Azure Linux3git2.45.4-1AZL-65040
Alpaquita23git2.43.7-r0BELL-CVE-2025-48385
Alpaquita25git2.49.1-r0BELL-CVE-2025-48385
Alpaquitastreamgit2.50.1-r0BELL-CVE-2025-48385

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability marked as Important rather than a Moderate flaw because it enables protocol injection at the transport layer of Git's bundle-uri mechanism, allowing a remote server to manipulate how and where data is written on the client system during a clone operation. The lack of input sanitization on user-controlled values like the URI and target path means that malformed inputs containing spaces or newlines can break protocol framing, leading to arbitrary file writes. In scenarios such as CI pipelines, developer environments, or recursive clones with submodules, an attacker can exploit this to overwrite critical files or inject malicious content, potentially achieving remote code execution (RCE).

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10git-0:2.47.3-1.el10_0Fixed 2025-07-22RHSA-2025:11533
Red Hat Enterprise Linux 8git-0:2.43.7-1.el8_10Fixed 2025-07-23RHSA-2025:11534
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicegit-0:2.39.5-1.el8_8.2Fixed 2025-07-28RHSA-2025:11794
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsgit-0:2.39.5-1.el8_8.2Fixed 2025-07-28RHSA-2025:11794
Red Hat Enterprise Linux 9git-0:2.47.3-1.el9_6Fixed 2025-07-21RHSA-2025:11462
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsgit-0:2.39.5-1.el9_2.2Fixed 2025-07-28RHSA-2025:11795
Red Hat Enterprise Linux 9.4 Extended Update Supportgit-0:2.43.5-1.el9_4.2Fixed 2025-07-24RHSA-2025:11686
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202509030117-0Fixed 2025-09-18RHSA-2025:15672
Red Hat OpenShift Container Platform 4.14openshift/ose-rhel-coreos-9:414.92.202508270040-0Fixed 2025-09-04RHSA-2025:14853
Red Hat OpenShift Container Platform 4.15openshift/ose-rhel-coreos-9:415.92.202508192014-0Fixed 2025-08-27RHSA-2025:14396
Red Hat OpenShift Container Platform 4.16openshift/ose-rhel-coreos-9:416.94.202508261955-0Fixed 2025-09-04RHSA-2025:14858
Red Hat OpenShift Container Platform 4.17openshift/ose-rhel-coreos-9:417.94.202508141510-0Fixed 2025-08-27RHSA-2025:14059
Red Hat OpenShift Container Platform 4.18openshift/ose-rhel-coreos-9:418.94.202508060022-0Fixed 2025-08-13RHSA-2025:13325
Red Hat OpenShift Container Platform 4.19openshift/ose-rhel-coreos-9:4.19.9.6.202508112354-0Fixed 2025-08-20RHSA-2025:13933
Red Hat Web Terminal 1.11 on RHEL 9web-terminal/web-terminal-rhel9-operator:1.11-19Fixed 2025-09-15RHSA-2025:15828
Red Hat Web Terminal 1.11 on RHEL 9web-terminal/web-terminal-tooling-rhel9:1.11-8Fixed 2025-09-15RHSA-2025:15828
Red Hat Web Terminal 1.12 on RHEL 9web-terminal/web-terminal-tooling-rhel9:1.12-4Fixed 2025-09-15RHSA-2025:15827
Red Hat Enterprise Linux 6gitWill not fix
Red Hat Enterprise Linux 7gitNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
10 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-48385.

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium
  • CAPEC-13 Subverting Environment Variable Values Likelihood: High · Severity: Very High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-72 URL Encoding Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-73.

References

Check your stackJSON