CVE-2025-48384 Details
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.
A vulnerability in Git allows arbitrary code execution due to improper handling of configuration values. When Git reads configuration, it removes any trailing carriage returns and line feeds. However, when writing configuration, values with trailing carriage returns are not properly quoted, leading to the loss of the carriage return when the configuration is read again. This issue becomes problematic when initializing a submodule with a path that includes a trailing carriage return, as it causes the submodule to be checked out in the wrong location. If a symlink directs this altered path to the submodule hooks directory, and the submodule has an executable post-checkout hook, the hook may be inadvertently executed after the checkout process.
Users are advised to upgrade to Git versions 2.43.7, 2.44.4, 2.45.4, 2.46.4, 2.47.3, 2.48.2, 2.49.1, or 2.50.1. Alternatively, avoid recursively cloning submodules from untrusted repositories.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 26, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-48384 | CISA-ADP | US Government Resource |
| http://seclists.org/fulldisclosure/2025/Sep/60 | CVE | Mailing ListThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00003.html | CVE | Mailing ListThird Party Advisory |
| http://www.openwall.com/lists/oss-security/2025/07/08/4 | CVE | Mailing List |
| https://github.com/git/git/security/advisories/GHSA-vwqx-4fm8-6qc9 | [email protected] | Vendor Advisory |
This CVE is in CISA's Known Exploited Vulnerabilities Catalog
Reference CISA's BOD 22-01 and Known Exploited Vulnerabilities Catalog for further guidance and requirements.
| Vulnerability Name | Date Added | Due Date | Required Action |
|---|---|---|---|
| Git Link Following Vulnerability | Aug 25, 2025 | Sep 15, 2025 | Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-436 | Interpretation Conflict | [email protected] |
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| git-scm git | < 2.43.7 >= 2.44.0, < 2.44.4 >= 2.45.0, < 2.45.4 >= 2.46.0, < 2.46.4 >= 2.47.0, < 2.47.3 >= 2.48.0, < 2.48.2 >= 2.49.0, < 2.49.1 >= 2.50.0, < 2.50.1 |
CPE
Remediation
| |
| debian debian linux | 11.0 |
CPE
Remediation
| |
| apple xcode | < 26.0 |
CPE
Remediation
| |
Change History
15 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 6, 2025 | Modified Analysis | [email protected] |
| Nov 4, 2025 | CVE Modified | CVE |
| Nov 4, 2025 | Modified Analysis | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 24, 2025 | Modified Analysis | [email protected] |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Aug 26, 2025 | Initial Analysis | [email protected] |
| Aug 26, 2025 | CVE CISA KEV Update | Cybersecurity and Infrastructure Security Agency (CISA) U.S. Civilian Government |
| Jul 8, 2025 | New CVE Received | [email protected] |