Actively exploited · Published Jul 8, 2025 · Assigned by GitHub_M
CVE-2025-48384Git allows arbitrary code execution through broken config quoting
High 8.1 Exploited
In plain English
A high-severity security flaw in git from git. Attackers are actively exploiting it in the wild (listed by CISA on August 25, 2025). The chance it is exploited in the next 30 days is estimated at 4.4% (higher than 91% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
CISA guidance
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Federal agencies must remediate by Sep 15, 2025.
Official 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 reading a config value, Git strips any trailing carriage return and line feed (CRLF). When writing a config entry, values with a trailing CR are not quoted, causing the CR to be lost when the config is later read. When initializing a submodule, if the submodule path contains a trailing CR, the altered path is read resulting in the submodule being checked out to an incorrect location. If a symlink exists that points the altered path to the submodule hooks directory, and the submodule contains an executable post-checkout hook, the script may be unintentionally executed after checkout. 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | git | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-all | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-all | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-all | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:8 | git-core | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-core | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-core-doc | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-core-doc | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-core-doc | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:8 | git-credential-libsecret | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-credential-libsecret | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:8 | git-daemon | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-daemon | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-email | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-email | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-email | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-gui | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-gui | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-gui | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-instaweb | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-instaweb | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-instaweb | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-subtree | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-subtree | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-subtree | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | git-svn | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | git-svn | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | git-svn | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | gitk | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | gitk | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | gitk | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | gitweb | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | gitweb | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | gitweb | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | perl-Git | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | perl-Git | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | perl-Git | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| AlmaLinux:10 | perl-Git-SVN | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux:8 | perl-Git-SVN | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux:9 | perl-Git-SVN | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| Alpine:v3.20 | git | 2.45.4-r0 | ALPINE-CVE-2025-48384 |
| Alpine:v3.21 | git | 2.47.3-r0 | ALPINE-CVE-2025-48384 |
| Alpine:v3.22 | git | 2.49.1-r0 | ALPINE-CVE-2025-48384 |
| Alpine:v3.23 | git | 2.50.1-r0 | ALPINE-CVE-2025-48384 |
| Alpine:v3.24 | git | 2.50.1-r0 | ALPINE-CVE-2025-48384 |
| Debian:12 | git | 1:2.39.5-0+deb12u3 | DEBIAN-CVE-2025-48384 |
| Debian:13 | git | 1:2.47.3-0+deb13u1 | DEBIAN-CVE-2025-48384 |
| Debian:14 | git | 1:2.50.1-0.1 | DEBIAN-CVE-2025-48384 |
| Rocky Linux:8 | git | 0:2.43.7-1.el8_10 | RLSA-2025:11534 |
| Rocky Linux:9 | git | 0:2.47.3-1.el9_6 | RLSA-2025:11462 |
| Ubuntu:22.04:LTS | git | 1:2.34.1-1ubuntu1.13 | USN-7626-1 |
| Ubuntu:22.04:LTS | git | 1:2.34.1-1ubuntu1.13 | UBUNTU-CVE-2025-48384 |
| Ubuntu:24.04:LTS | git | 1:2.43.0-1ubuntu7.3 | UBUNTU-CVE-2025-48384 |
| Ubuntu:24.04:LTS | git | 1:2.43.0-1ubuntu7.3 | USN-7626-1 |
Affected products (as reported)
Weakness: CWE-436, CWE-59 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
References
- https://github.com/git/git/security/advisories/GHSA-vwqx-4fm8-6qc9 x_refsource_CONFIRM
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-48384 government-resource
- https://lists.debian.org/debian-lts-announce/2025/10/msg00003.html
- http://seclists.org/fulldisclosure/2025/Sep/60
- http://www.openwall.com/lists/oss-security/2025/07/08/4