cve.bz

CVE-2025-48384 Git Link Following Vulnerability

8.0 highKEVEPSS 4.5%

High (8.0) in Git Git. In CISA KEV since 2025-08-25. EPSS 4.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.0 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
EPSS
4.5% (unchanged from 4.5% a week ago; 4.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2025-08-25, due 2025-09-15
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2025-08-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-59 Improper Link Resolution Before File Access (Link Following)
CWE-436 Interpretation Conflict
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-48384 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-48384?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-48384?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-48384 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
git-scm:gitbefore 2.43.7
git-scm:gitfrom 2.44.0 before 2.44.4
git-scm:gitfrom 2.45.0 before 2.45.4
git-scm:gitfrom 2.46.0 before 2.46.4
git-scm:gitfrom 2.47.0 before 2.47.3
git-scm:gitfrom 2.48.0 before 2.48.2
git-scm:gitfrom 2.49.0 before 2.49.1
git-scm:gitfrom 2.50.0 before 2.50.1
debian:debian_linux11.0
apple:xcodebefore 26.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11git1:2.30.2-1+deb11u5DLA-4323-1
Debian12git1:2.39.5-0+deb12u3DEBIAN-CVE-2025-48384
Debian13git1:2.47.3-0+deb13u1DEBIAN-CVE-2025-48384
Debian14git1:2.50.1-0.1DEBIAN-CVE-2025-48384
Ubuntu22.04:LTSgit1:2.34.1-1ubuntu1.13UBUNTU-CVE-2025-48384 USN-7626-1
Ubuntu24.04:LTSgit1:2.43.0-1ubuntu7.3UBUNTU-CVE-2025-48384 USN-7626-1
UbuntuPro:16.04:LTSgit1:2.7.4-0ubuntu1.10+esm9UBUNTU-CVE-2025-48384 USN-7626-1
UbuntuPro:18.04:LTSgit1:2.17.1-1ubuntu0.18+esm2UBUNTU-CVE-2025-48384 USN-7626-1
UbuntuPro:20.04:LTSgit1:2.25.1-1ubuntu3.14+esm1UBUNTU-CVE-2025-48384 USN-7626-1
Red Hatenterprise_linux:8::appstreamgit, gitk, gitweb and 17 more0:2.43.7-1.el8_10RHSA-2025:11534
Red Hatenterprise_linux:9::appstreamgit, gitk, gitweb and 17 more0:2.47.3-1.el9_6RHSA-2025:11462
Red Hatenterprise_linux:10.0git, gitk, gitweb and 17 more0:2.47.3-1.el10_0RHSA-2025:11533
Red Hatrhel_aus:8.2::appstreamgit, gitk, gitweb and 16 more0:2.18.4-5.el8_2.1RHSA-2025:11793
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamgit, gitk, gitweb and 17 more0:2.27.0-5.el8_4.1RHSA-2025:11800
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamgit, gitk, gitweb and 17 more0:2.31.8-3.el8_6.1RHSA-2025:11801
Red Hatrhel_e4s:8.8::appstream, rhel_tus:8.8::appstreamgit, gitk, gitweb and 17 more0:2.39.5-1.el8_8.2RHSA-2025:11794
Red Hatrhel_e4s:9.0::appstreamgit, gitk, gitweb and 17 more0:2.31.1-6.el9_0.1RHSA-2025:11796
Red Hatrhel_e4s:9.2::appstreamgit, gitk, gitweb and 17 more0:2.39.5-1.el9_2.2RHSA-2025:11795
Red Hatrhel_els:7git, gitk, git-hg and 16 more0:1.8.3.1-25.el7_9.1RHSA-2025:11688
Red Hatrhel_eus:9.4::appstreamgit, gitk, gitweb and 17 more0:2.43.5-1.el9_4.2RHSA-2025:11686
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 12 moregit2.43.7-150300.10.51.1SUSE-SU-2025:03037-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Development Tools 15 SP6 and 1 moregit2.51.0-150600.3.12.1SUSE-SU-2025:03012-1
SUSELinux Enterprise Module for Development Tools 15 SP6, Linux Enterprise Module for Development Tools 15 SP7git-lfs3.7.0-150600.13.3.1SUSE-SU-2025:03012-1
SUSELinux Enterprise Module for Development Tools 15 SP6, Linux Enterprise Module for Development Tools 15 SP7obs-scm-bridge0.7.4-150600.14.4.1SUSE-SU-2025:03012-1
SUSELinux Enterprise Module for Python 3 15 SP6, Linux Enterprise Module for Python 3 15 SP7python-PyYAML6.0.2-150600.10.3.1SUSE-SU-2025:03012-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5git2.26.2-27.81.1SUSE-SU-2025:03022-1
SUSELinux Micro 6.0git2.51.0-1.1SUSE-SU-2025:20721-1
SUSELinux Micro 6.1git2.51.0-slfo.1.1_1.1SUSE-SU-2025:20855-1
openSUSELeap 15.6git2.51.0-150600.3.12.1SUSE-SU-2025:03012-1
openSUSELeap 15.6git-lfs3.7.0-150600.13.3.1SUSE-SU-2025:03012-1
openSUSELeap 15.6obs-scm-bridge0.7.4-150600.14.4.1SUSE-SU-2025:03012-1
openSUSELeap 15.6python-PyYAML6.0.2-150600.10.3.1SUSE-SU-2025:03012-1
openSUSETumbleweedgit2.50.1-1.1openSUSE-SU-2025:15337-1
AlmaLinux8git, gitk, gitweb and 12 more2.43.7-1.el8_10ALSA-2025:11534
AlmaLinux9git, gitk, gitweb and 12 more2.47.3-1.el9_6ALSA-2025:11462
AlmaLinux10gitk, gitweb, git-all and 8 more2.47.3-1.el10_0ALSA-2025:11533
Rocky Linux8git0:2.43.7-1.el8_10RLSA-2025:11534
Rocky Linux9git0:2.47.3-1.el9_6RLSA-2025:11462
Alpinev3.19git2.43.7-r0ALPINE-CVE-2025-48384
Alpinev3.20git2.45.4-r0ALPINE-CVE-2025-48384
Alpinev3.21git2.47.3-r0ALPINE-CVE-2025-48384
Alpinev3.22git2.49.1-r0ALPINE-CVE-2025-48384
Alpinev3.23, v3.24git2.50.1-r0ALPINE-CVE-2025-48384
Azure Linux2git2.40.4-2AZL-65057
Azure Linux3git2.45.4-1AZL-65043
Alpaquita23git2.43.7-r0BELL-CVE-2025-48384
Alpaquita25git2.49.1-r0BELL-CVE-2025-48384
Alpaquitastreamgit2.50.1-r0BELL-CVE-2025-48384

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability marked as Important and not Moderate flaw because it undermines Git’s path and config integrity by allowing carriage return (\r) injection to manipulate submodule checkout behavior. Git previously failed to quote config values containing trailing CR, causing the value to be misinterpreted when read back. In the context of submodules, this leads to incorrect path resolution, allowing an attacker to redirect the checkout path via a symlink to a sensitive directory like .git/modules/<submodule>/hooks. If an executable post-checkout hook exists there, it could be inadvertently executed, resulting in arbitrary code execution during submodule operations. This is particularly dangerous in automated CI/CD pipelines or multi-repo projects where submodules are initialized or updated without manual inspection.

Red Hat's mitigation

To mitigate this issue, avoid using --recurse-submodules when cloning repositories from untrusted sources; instead, clone normally and only initialize or update submodules manually after reviewing them.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10git-0:2.47.3-1.el10_0Fixed 2025-07-22RHSA-2025:11533
Red Hat Enterprise Linux 7 Extended Lifecycle Supportgit-0:1.8.3.1-25.el7_9.1Fixed 2025-07-24RHSA-2025:11688
Red Hat Enterprise Linux 8git-0:2.43.7-1.el8_10Fixed 2025-07-23RHSA-2025:11534
Red Hat Enterprise Linux 8.2 Advanced Update Supportgit-0:2.18.4-5.el8_2.1Fixed 2025-07-24RHSA-2025:11793
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportgit-0:2.27.0-5.el8_4.1Fixed 2025-07-28RHSA-2025:11800
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Ongit-0:2.27.0-5.el8_4.1Fixed 2025-07-28RHSA-2025:11800
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportgit-0:2.31.8-3.el8_6.1Fixed 2025-07-28RHSA-2025:11801
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicegit-0:2.31.8-3.el8_6.1Fixed 2025-07-28RHSA-2025:11801
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsgit-0:2.31.8-3.el8_6.1Fixed 2025-07-28RHSA-2025:11801
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicegit-0:2.39.5-1.el8_8.2Fixed 2025-07-28RHSA-2025:11794
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsgit-0:2.39.5-1.el8_8.2Fixed 2025-07-28RHSA-2025:11794
Red Hat Enterprise Linux 9git-0:2.47.3-1.el9_6Fixed 2025-07-21RHSA-2025:11462
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsgit-0:2.31.1-6.el9_0.1Fixed 2025-07-28RHSA-2025:11796
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsgit-0:2.39.5-1.el9_2.2Fixed 2025-07-28RHSA-2025:11795
Red Hat Enterprise Linux 9.4 Extended Update Supportgit-0:2.43.5-1.el9_4.2Fixed 2025-07-24RHSA-2025:11686
Red Hat OpenShift Container Platform 4.12openshift/ose-rhel-coreos-8:412.86.202509030110-0Fixed 2025-09-11RHSA-2025:15308
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202509030117-0Fixed 2025-09-18RHSA-2025:15672
Red Hat OpenShift Container Platform 4.14openshift/ose-rhel-coreos-9:414.92.202508270040-0Fixed 2025-09-04RHSA-2025:14853
Red Hat Enterprise Linux 6gitOut of support scope
Red Hat OpenShift Dev Spacesdevspaces/code-rhel9Not affected
17 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-48384.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

15 more

Attack patterns (CAPEC)

  • CAPEC-34 HTTP Response Splitting Likelihood: Medium · Severity: High
  • CAPEC-105 HTTP Request Splitting Likelihood: Medium · Severity: High
  • CAPEC-273 HTTP Response Smuggling Likelihood: Medium · Severity: High
  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON