Stackurity Start free trial

CVEs / CVE-2025-48384

CVE-2025-48384: Git Link Following Vulnerability

Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.

Check your servers with Stackurity Already using Stackurity? Search for CVE-2025-48384

Summary

Git contains a link following vulnerability that stems from Git’s inconsistent handling of carriage return characters in configuration files.

CISA, Known Exploited Vulnerabilities catalog

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.

The CVE record, via NVD · published 8 Jul 2025 · NVD status: Analyzed

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
git git< 2.43.7—
git git>= 2.44.0-rc0, < 2.44.4—
git git>= 2.45.0-rc0, < 2.45.4—
git git>= 2.46.0-rc0, < 2.46.4—
git git>= 2.47.0-rc0, < 2.47.3—
git git>= 2.48.0-rc0, < 2.48.2—
git git>= 2.49.0-rc0, < 2.49.1—
git git>= 2.50.0-rc0, < 2.50.1—

Exploitation

In CISA KEV since25 Aug 2025
Due date for US federal agencies15 Sep 2025
Used in ransomware campaignsUnknown
Required actionApply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Severity

CVSS 3.18 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
Scored by the CNA ([email protected])
WeaknessCWE-59, CWE-436

References

Sources

Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.

This product uses data from the NVD API but is not endorsed or certified by the NVD.