CVE-2025-48385Git alllows arbitrary file writes via bundle-uri parameter injection
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | git | Fixed | 1:2.43.0-1ubuntu7.3 | UBUNTU-CVE-2025-48385 |
| Ubuntu 22.04 | git | Not affected vulnerable_code_not_present | ||
| Debian 14 | git | Fixed | 1:2.50.1-0.1 | DEBIAN-CVE-2025-48385 |
| Debian 13 | git | Fixed | 1:2.47.3-0+deb13u1 | DEBIAN-CVE-2025-48385 |
| Debian 12 | git | Fixed | 1:2.39.5-0+deb12u3 | DEBIAN-CVE-2025-48385 |
| Red Hat Enterprise Linux 10 | git | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-all | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-core | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-core-doc | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-credential-libsecret | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-daemon | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-email | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-gui | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-instaweb | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-subtree | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | git-svn | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | gitk | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | gitweb | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | perl-Git | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 10 | perl-Git-SVN | Fixed | 0:2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux 9 | git | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-all | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-core | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-core-doc | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-credential-libsecret | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-daemon | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-email | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-gui | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-instaweb | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-subtree | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | git-svn | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | gitk | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | gitweb | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | perl-Git | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 9 | perl-Git-SVN | Fixed | 0:2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux 8 | git | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-all | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-core | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-core-doc | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-credential-libsecret | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-daemon | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-email | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-gui | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-instaweb | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-subtree | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | git-svn | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | gitk | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | gitweb | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | perl-Git | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 8 | perl-Git-SVN | Fixed | 0:2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux 7 | emacs-git | Not affected | ||
| Red Hat Enterprise Linux 7 | emacs-git-el | Not affected | ||
| Red Hat Enterprise Linux 7 | git | Not affected | ||
| Red Hat Enterprise Linux 7 | git-all | Not affected | ||
| Red Hat Enterprise Linux 7 | git-bzr | Not affected | ||
| Red Hat Enterprise Linux 7 | git-cvs | Not affected | ||
| Red Hat Enterprise Linux 7 | git-daemon | Not affected | ||
| Red Hat Enterprise Linux 7 | git-email | Not affected | ||
| Red Hat Enterprise Linux 7 | git-gnome-keyring | Not affected | ||
| Red Hat Enterprise Linux 7 | git-gui | Not affected | ||
| Red Hat Enterprise Linux 7 | git-hg | Not affected | ||
| Red Hat Enterprise Linux 7 | git-instaweb | Not affected | ||
| Red Hat Enterprise Linux 7 | git-p4 | Not affected | ||
| Red Hat Enterprise Linux 7 | git-svn | Not affected | ||
| Red Hat Enterprise Linux 7 | gitk | Not affected | ||
| Red Hat Enterprise Linux 7 | gitweb | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-Git | Not affected | ||
| Red Hat Enterprise Linux 7 | perl-Git-SVN | Not affected | ||
| Red Hat Enterprise Linux 6 | emacs-git | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | emacs-git-el | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | git | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | git-all | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | git-cvs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | git-daemon | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | git-email | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | git-gui | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | git-svn | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | gitk | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | gitweb | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | perl-Git | Will not fix Will not fix | ||
| AlmaLinux 10 | git-all | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | git-core-doc | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | git-email | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | git-gui | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | git-instaweb | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | git-subtree | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | git-svn | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | gitk | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | gitweb | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | perl-Git | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 10 | perl-Git-SVN | Fixed | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux 9 | git | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-all | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-core | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-core-doc | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-credential-libsecret | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-daemon | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-email | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-gui | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-instaweb | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-subtree | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | git-svn | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | gitk | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | gitweb | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | perl-Git | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 9 | perl-Git-SVN | Fixed | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux 8 | git | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-all | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-core | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-core-doc | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-credential-libsecret | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-daemon | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-email | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-gui | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-instaweb | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-subtree | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | git-svn | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | gitk | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | gitweb | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | perl-Git | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux 8 | perl-Git-SVN | Fixed | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| Rocky Linux 9 | git | Fixed | 0:2.47.3-1.el9_6 | RLSA-2025:11462 |
| Rocky Linux 8 | git | Fixed | 0:2.43.7-1.el8_10 | RLSA-2025:11534 |
| Alpine Linux 3.24 | git | Fixed | 2.50.1-r0 | ALPINE-CVE-2025-48385 |
| Alpine Linux 3.23 | git | Fixed | 2.50.1-r0 | ALPINE-CVE-2025-48385 |
| Alpine Linux 3.22 | git | Fixed | 2.49.1-r0 | ALPINE-CVE-2025-48385 |
| Alpine Linux 3.21 | git | Fixed | 2.47.3-r0 | ALPINE-CVE-2025-48385 |
| Alpine Linux 3.20 | git | Fixed | 2.45.4-r0 | ALPINE-CVE-2025-48385 |
| Alpine Linux 3.19 | git | Fixed | 2.43.7-r0 | ALPINE-CVE-2025-48385 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- git: affected: < 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
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.