CVE-2025-48384

Source
https://cve.org/CVERecord?id=CVE-2025-48384
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-48384.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-48384
Aliases
Downstream
Related
Published
2025-07-08T18:23:48.710Z
Modified
2026-02-03T07:40:02.985594Z
Severity
  • 8.0 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Git allows arbitrary code execution through broken config quoting
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-436",
        "CWE-59"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48384.json"
}
References

Affected packages

Git / github.com/git-for-windows/git

Affected versions

v2.*
v2.49.0.windows.1
v2.50.0-rc0.windows.1
v2.50.0-rc1.windows.1
v2.50.0-rc2.windows.1
v2.50.0.windows.1
v2.50.0.windows.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-48384.json"

Git / github.com/git/git

Affected versions

v2.*
v2.39.4
v2.39.5
v2.40.2
v2.40.3
v2.40.4
v2.41.1
v2.41.2
v2.41.3
v2.42.2
v2.42.3
v2.42.4
v2.43.4
v2.43.5
v2.43.6
v2.43.7
v2.44.0
v2.44.1
v2.44.2
v2.44.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-48384.json"