Skip to content
OpenAdvisories
High · 8.6 CVE-2025-48385 EUVD-2025-20678

Git alllows arbitrary file writes via bundle-uri parameter injection

Published Jul 8, 2025 · Updated Nov 4, 2025 · Assigned by GitHub_M

Description

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.

Affected products

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 git 1:2.50.1-0.1 —
Debian 13 git 1:2.47.3-0+deb13u1 —
Debian 12 git 1:2.39.5-0+deb12u3 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS git 1:2.43.0-1ubuntu7.3 USN-7626-1
Ubuntu 22.04 LTS git 1:2.34.1-1ubuntu1.13 USN-7626-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS git 1:2.25.1-1ubuntu3.14+esm1 USN-7626-1
Ubuntu Pro 18.04 LTS git 1:2.17.1-1ubuntu0.18+esm2 USN-7626-1
Ubuntu Pro 16.04 LTS git 1:2.7.4-0ubuntu1.10+esm9 USN-7626-1
ReleasePackageFixed inAdvisory
RHEL 10 git +14 2.47.3-1.el10_0 RHSA-2025:11533
RHEL 9 git +14 2.47.3-1.el9_6 RHSA-2025:11462
RHEL 8 git +14 2.43.7-1.el8_10 RHSA-2025:11534
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.4 EUS git +14 2.43.5-1.el9_4.2 RHSA-2025:11686
RHEL 9.2 E4S git +14 2.39.5-1.el9_2.2 RHSA-2025:11795
RHEL 8.8 TUS git +14 2.39.5-1.el8_8.2 RHSA-2025:11794
RHEL 8.8 E4S git +14 2.39.5-1.el8_8.2 RHSA-2025:11794

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 gitk +10 2.47.3-1.el10_0 ALSA-2025:11533
AlmaLinux 9 git +14 2.47.3-1.el9_6 ALSA-2025:11462
AlmaLinux 8 git +14 2.43.7-1.el8_10 ALSA-2025:11534

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 git 2.47.3-1.el9_6 RLSA-2025:11462
Rocky Linux 8 git 2.43.7-1.el8_10 RLSA-2025:11534
ReleasePackageFixed inAdvisory
SLES 15 SP7 git 2.51.0-150600.3.12.1 SUSE-SU-2025:03012-1
SLES 15 SP7 git-lfs 3.7.0-150600.13.3.1 SUSE-SU-2025:03012-1
SLES 15 SP7 obs-scm-bridge 0.7.4-150600.14.4.1 SUSE-SU-2025:03012-1
SLES 15 SP6 git 2.51.0-150600.3.12.1 SUSE-SU-2025:03012-1
SLES 15 SP6 git-lfs 3.7.0-150600.13.3.1 SUSE-SU-2025:03012-1
SLES 15 SP6 obs-scm-bridge 0.7.4-150600.14.4.1 SUSE-SU-2025:03012-1
SLES 15 SP5 git 2.43.7-150300.10.51.1 SUSE-SU-2025:03037-1
SLES 15 SP4 git 2.43.7-150300.10.51.1 SUSE-SU-2025:03037-1
SLES 15 SP3 git 2.43.7-150300.10.51.1 SUSE-SU-2025:03037-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 3 python-PyYAML 6.0.2-150600.10.3.1 SUSE-SU-2025:03012-1
SLES for SAP 15 SP5 git 2.43.7-150300.10.51.1 SUSE-SU-2025:03037-1
SLES for SAP 15 SP4 git 2.43.7-150300.10.51.1 SUSE-SU-2025:03037-1
SLES for SAP 15 SP3 git 2.43.7-150300.10.51.1 SUSE-SU-2025:03037-1
SLE Micro 6.1 git 2.51.0-slfo.1.1_1.1 SUSE-SU-2025:20855-1
SLE Micro 6.0 git 2.51.0-1.1 SUSE-SU-2025:20721-1
SLE Micro 5.5 git 2.43.7-150300.10.51.1 SUSE-SU-2025:03037-1
SLE HPC 15 SP5 git 2.43.7-150300.10.51.1 SUSE-SU-2025:03037-1
SLE HPC 15 SP4 git 2.43.7-150300.10.51.1 SUSE-SU-2025:03037-1
SLE HPC 15 SP3 git 2.43.7-150300.10.51.1 SUSE-SU-2025:03037-1
SUSE Manager Server LTS 4.3 git 2.43.7-150300.10.51.1 SUSE-SU-2025:03037-1
SUSE Manager Proxy LTS 4.3 git 2.43.7-150300.10.51.1 SUSE-SU-2025:03037-1
SUSE Enterprise Storage 7.1 git 2.43.7-150300.10.51.1 SUSE-SU-2025:03037-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed git 2.50.1-1.1 openSUSE-SU-2025:15337-1
openSUSE Leap 15.6 git 2.51.0-150600.3.12.1 SUSE-SU-2025:03012-1
openSUSE Leap 15.6 git-lfs 3.7.0-150600.13.3.1 SUSE-SU-2025:03012-1
openSUSE Leap 15.6 obs-scm-bridge 0.7.4-150600.14.4.1 SUSE-SU-2025:03012-1
openSUSE Leap 15.6 python-PyYAML 6.0.2-150600.10.3.1 SUSE-SU-2025:03012-1
ReleasePackageFixed inAdvisory
Alpine v3.24 git 2.50.1-r0 —
Alpine v3.23 git 2.50.1-r0 —
Alpine v3.22 git 2.49.1-r0 —
Alpine v3.21 git 2.47.3-r0 —
Alpine v3.20 git 2.45.4-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 git 2.43.7-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 git +16 2.50.1-1.amzn2023.0.1 ALAS2023-2025-1108
Amazon Linux 2 git +16 2.47.3-1.amzn2.0.1 ALAS2-2025-2941

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 git 2.45.4-1 —
Azure Linux 2 (CBL-Mariner) git 2.40.4-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 git +14 2.47.3-1.el10_0 ELSA-2025-11533
Oracle Linux 9 git +14 2.47.3-1.el9_6 ELSA-2025-11462
Oracle Linux 8 git +14 2.43.7-1.el8_10 ELSA-2025-11534

Advisories 25

References