Skip to main content
ExploitedIn CISA KEVFix available

CVE-2025-48384

Git allows arbitrary code execution through broken config quoting

Exploitation confirmed. First attested on 2025-08-25 by CISA-ADP, CISA KEV, GCVE · kevintel.

  • Published2025-07-08
  • Fixed in2.50.1 · 2.49.1 · 2.48.2 · 2.47.3 · 2.46.4 · 2.45.4
  • WeaknessCWE-436 · CWE-59

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2025-07-0819:15CVE publishedNVD
  2. 2025-08-25Added to the CISA KEV catalogCISA KEV
  3. 2025-08-25Listed as exploited by GCVEGCVE
  4. 2025-08-25Exploitation first reportedCISA KEV
  5. 2025-08-2603:55SSVC exploitation set to activeCISA-ADP

Versions per branch

NVD · OSV
Git-scm git
BranchAffectedFixed in
2.50≥ 2.50.0, < 2.50.12.50.1
2.50< 2.50.12.50.1
2.49≥ 2.49.0, < 2.49.12.49.1
2.48≥ 2.48.0, < 2.48.22.48.2
2.47≥ 2.47.0, < 2.47.32.47.3
2.46≥ 2.46.0, < 2.46.42.46.4
2.45≥ 2.45.0, < 2.45.42.45.4
2.44≥ 2.44.0, < 2.44.42.44.4
2.43< 2.43.72.43.7
Apple xcode
BranchAffectedFixed in
26.0< 26.026.0
Debian debian linux
BranchAffectedFixed in
11.0= 11.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • git
    Affected
    • = < 2.43.7no fix stated
    • = >= 2.44.0-rc0, < 2.44.4no fix stated
    • = >= 2.45.0-rc0, < 2.45.4no fix stated
    • = >= 2.46.0-rc0, < 2.46.4no fix stated
    • = >= 2.47.0-rc0, < 2.47.3no fix stated
    • = >= 2.48.0-rc0, < 2.48.2no fix stated
    • = >= 2.49.0-rc0, < 2.49.1no fix stated
    • = >= 2.50.0-rc0, < 2.50.1no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-07-08

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • gitUbuntu:Pro:20.04:LTSall versions · fixed in 1:2.25.1-1ubuntu3.14+esm1
  • gitUbuntu:Pro:18.04:LTSall versions · fixed in 1:2.17.1-1ubuntu0.18+esm2
  • gitUbuntu:Pro:16.04:LTSall versions · fixed in 1:2.7.4-0ubuntu1.10+esm9
  • gitUbuntu:24.04:LTSall versions · fixed in 1:2.43.0-1ubuntu7.3
  • gitUbuntu:22.04:LTSall versions · fixed in 1:2.34.1-1ubuntu1.13
  • gitTuxCare:Ubuntu:20.04all versions · fixed in 1:2.25.1-1ubuntu3.14+tuxcare.els1and 13 other packages
  • gitTuxCare:Ubuntu:18.04all versions · fixed in 1:2.17.1-1ubuntu0.18+tuxcare.els6and 13 other packages
  • gitTuxCare:Ubuntu:16.04all versions · fixed in 1:2.7.4-0ubuntu1.10+tuxcare.els8and 15 other packages

94 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-48384 Red Hat Product Security587 products fixed · 13 known affected

    git: Git arbitrary code execution

    emacs-git as a component of Red Hat Enterprise Linux 6 · emacs-git-el as a component of Red Hat Enterprise Linux 6 · git as a component of Red Hat Enterprise Linux 6 · +10 more

  • RHSA-2025:15672 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.13.60 bug fix and security update

  • RHSA-2025:15828 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: updated web-terminal/tooling container image

  • RHSA-2025:15827 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: updated web-terminal/tooling container image

  • RHSA-2025:15308 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.12.80 bug fix and security update

  • RHSA-2025:14858 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.16.47 bug fix and security update

16 more advisories

Full record on NVD

Fix

  1. Update Git-scm git to 2.50.1 · 2.49.1 · 2.48.2 · 2.47.3 · 2.46.4 · 2.45.4 · 2.44.4 · 2.43.7
  2. CISA’s 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.due 2025-09-15
  3. Vendor fix Red Hat Product Security RHSA-2025:15672 · 1 productFor OpenShift Container Platform 4.13 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…
  4. Vendor fix Red Hat Product Security RHSA-2025:15828 · 2 productsThe Red Hat Web Terminal 1.11 on RHEL 9 container images provided by this update can be downloaded from the Red Hat Container Registry at registry.access.redhat.com. Installation instructions for your platform are available at Red Hat Container Catalog (see References). Dockerfiles and scripts sho…
  5. Vendor fix Red Hat Product Security RHSA-2025:15827 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  6. Vendor fix Red Hat Product Security RHSA-2025:15308 · 1 productFor OpenShift Container Platform 4.12 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous erratamupdate: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…
  7. Vendor fix Red Hat Product Security RHSA-2025:14858 · 4 productsFor OpenShift Container Platform 4.16 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…
  8. Vendor fix Red Hat Product Security RHSA-2025:14853 · 4 productsFor OpenShift Container Platform 4.14 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

CISA Known Exploited Vulnerability

Date Added
2025-08-25
Patch Due Date
2025-09-15
Ransomware Use
Unknown
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.

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
Published
2025-07-08
Last Modified
2026-09-24
NVD status
Analyzed
GitHub Advisory
GHSA-vwqx-4fm8-6qc9

Frequently asked questions

What is CVE-2025-48384?

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.

Is CVE-2025-48384 actively exploited?

Yes. CVE-2025-48384 is on the CISA Known Exploited Vulnerabilities (KEV) catalog, meaning it has been confirmed as actively exploited in the wild. CISA requires federal agencies to patch by 2025-09-15.

What is the CVSS score for CVE-2025-48384?

CVE-2025-48384 has a CVSS v3 base score of 8 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H.

Running git? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record