VDB

CVE-2025-48384

CVE-2025-48384 PUBLISHED CVSS 8.1 HIGH

Git allows arbitrary code execution through broken config quoting

Reported by github_m · Published July 8, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
git-instawebAmazon Linux2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1
git-core-docAmazon Linux2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1
git-daemonAmazon Linux2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1
perl-GitAmazon Linux2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1
gitAmazon Linux2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1
gitkAmazon Linux2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1
perl-Git-SVNAmazon Linux2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1
git-emailAmazon Linux2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1
git-cvsAmazon Linux2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1
git-subtreeAmazon Linux2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1
git-guiAmazon Linux2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1
git-credential-libsecretAmazon Linux2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1

10 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
8.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H

Affected products

VendorProductVersions
gitgit< 2.43.7, >= 2.44.0-rc0, < 2.44.4, >= 2.45.0-rc0, < 2.45.4
amazon:2023git-instaweb0
amazon:2git-core-doc0
amazon:2023git-daemon0
amazon:2perl-Git0
amazon:2023git0
amazon:2gitk0
amazon:2perl-Git-SVN0
amazon:2023git-email0
amazon:2git-cvs0
amazon:2023perl-Git0
amazon:2023git-core-doc0
amazon:2git-instaweb0
amazon:2023perl-Git-SVN0
amazon:2git-subtree0
amazon:2023gitk0
amazon:2git0
amazon:2023git-gui0
amazon:2023git-credential-libsecret0
amazon:2023git-all0

…and 17 more

Timeline

  • Jul 8, 2025 CVE Published
  • Jul 9, 2025 EPSS Score (30 in total, the first dated here)
  • Jul 9, 2025 VulnCheck XDB Entry (28 in total, the first dated here)
  • Aug 25, 2025 CISA KEV Added
  • Aug 25, 2025 VulnCheck KEV Exploitation (9 in total, the first dated here)
  • Feb 26, 2026 CVE Updated
  • Mar 17, 2026 Security Advisory (54 in total, the first dated here)
  • Apr 18, 2026 PoC Published
  • Jun 6, 2026 Coalition ESS Score
  • Oct 23, 2026 Distribution Patch (27 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-48384
vulnetix vdb fixes CVE-2025-48384

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-48384/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›