CVE
CVE-2025-48384
Git allows arbitrary code execution through broken config quoting
Severity
High
Base CVSS
8.0
Fixed in
6cba5081d357807b9d132c68423ad561b7f153e2,d82adb61ba2fd11d8f2587fca1b6bd7925ce4044,0:2.43.7-1.el8_10,0:2.47.3-1.el9_6,1:2.39.5-0+deb12u3,1:2.30.2-1+deb11u5,1:2.47.3-0+deb13u1,1:2.17.1-1ubuntu0.18+esm2,1:2.25.1-1ubuntu3.14+esm1,1:2.43.0-1ubuntu7.3,1:2.34.1-1ubuntu1.13,2.45.4-r0,2.43.7,2.44.4,2.45.4,2.46.4,2.47.3,2.48.2,2.49.1,2.50.1,2.50.1-r0,2.49.1-r0,2.47.3-r0,2.43.7-r0,0:1.8.3.1-25.0.1.el7_9,0:2.47.3-1.amzn2.0.1,0:2.50.1-1.amzn2023.0.1
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.
Severity scores
Source
Severity
Base score
CVSS version
Score vector
NVD
High
8
3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
OSV
0
3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
Endor Labs
Required action
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Known ransomware campaign use
Unknown
References
http://seclists.org/fulldisclosure/2025/Sep/60, http://www.openwall.com/lists/oss-security/2025/07/08/4, https://lists.debian.org/debian-lts-announce/2025/10/msg00003.html, https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-48384, https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48384.json, https://github.com/git/git/security/advisories/GHSA-vwqx-4fm8-6qc9, https://nvd.nist.gov/vuln/detail/CVE-2025-48384
Basic information
Base CVSS
8.0
EPSS probability
0.0
EPSS percentile
0.89901
Introduced version
cca1f38702730b35f52c29efd62864b85e85ddcc,16bd9f20a403117f2e0d9bcda6c6e621d3763e77,0,2.44.0,2.45.0,2.46.0,2.47.0,2.48.0,2.49.0,2.50.0
Fix available
6cba5081d357807b9d132c68423ad561b7f153e2,d82adb61ba2fd11d8f2587fca1b6bd7925ce4044,0:2.43.7-1.el8_10,0:2.47.3-1.el9_6,1:2.39.5-0+deb12u3,1:2.30.2-1+deb11u5,1:2.47.3-0+deb13u1,1:2.17.1-1ubuntu0.18+esm2,1:2.25.1-1ubuntu3.14+esm1,1:2.43.0-1ubuntu7.3,1:2.34.1-1ubuntu1.13,2.45.4-r0,2.43.7,2.44.4,2.45.4,2.46.4,2.47.3,2.48.2,2.49.1,2.50.1,2.50.1-r0,2.49.1-r0,2.47.3-r0,2.43.7-r0,0:1.8.3.1-25.0.1.el7_9,0:2.47.3-1.amzn2.0.1,0:2.50.1-1.amzn2023.0.1
Endor Patches
Fix critical vulnerabilities instantly
Secure your app without upgrading: detect a compatible fix, apply safe remediation, and ship it in a single pull request.
Fix without upgradingGet a demo of Endor Labs today.