cve.bz

CVE-2024-52006 (Clone2Leak) Improper Encoding or Escaping of Output

2.1 lowEPSS 1.0%Fix available

Known as Clone2Leak

Low (2.1). EPSS 1.0% 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. Git defines a line-based protocol that is used to exchange information between Git and Git credential helpers. Some ecosystems (most notably, .NET and node.js) interpret single Carriage Return characters as newlines, which renders the protections against CVE-2020-5260 incomplete for credential helpers that treat Carriage Returns in this way. This issue has been addressed in commit `b01b9b8` which is included in release versions v2.48.1, v2.47.2, v2.46.3, v2.45.3, v2.44.3, v2.43.6, v2.42.4, v2.41.3, and v2.40.4. Users are advised to upgrade. Users unable to upgrade should avoid cloning from untrusted URLs, especially recursive clones.

Severity

CVSS 4.0

2.1 low
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 64th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-01-14. 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-116 Improper Encoding or Escaping of Output
CWE-147 Improper Neutralization of Input Terminators
CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-52006 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-52006?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-52006?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-2024-52006 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:gitbefore 2.40.4
git:gitfrom 2.41.0 before 2.41.3
git:gitfrom 2.42.0 before 2.42.4
git:gitfrom 2.43.0 before 2.43.6
git:gitfrom 2.44.3 before 2.44.3
git:gitfrom 2.45.3 before 2.45.3
git:gitfrom 2.46.3 before 2.46.3
git:gitfrom 2.47.0 before 2.47.2
git:git2.48.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11git1:2.30.2-1+deb11u4DLA-4031-1
Debian12git1:2.39.5-0+deb12u2DEBIAN-CVE-2024-52006 DSA-5850-1
Debian13, 14git1:2.47.2-0.1DEBIAN-CVE-2024-52006
Ubuntu20.04:LTSgit1:2.25.1-1ubuntu3.14UBUNTU-CVE-2024-52006 USN-7207-2
Ubuntu22.04:LTSgit1:2.34.1-1ubuntu1.12UBUNTU-CVE-2024-52006 USN-7207-1
Ubuntu24.04:LTSgit1:2.43.0-1ubuntu7.2UBUNTU-CVE-2024-52006 USN-7207-1
UbuntuPro:16.04:LTSgit1:2.7.4-0ubuntu1.10+esm13UBUNTU-CVE-2024-52006
UbuntuPro:18.04:LTSgit1:2.17.1-1ubuntu0.18+esm6UBUNTU-CVE-2024-52006
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
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 12 moregit2.35.3-150300.10.48.1SUSE-SU-2025:0144-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Development Tools 15 SP6git2.43.0-150600.3.9.1SUSE-SU-2025:0116-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5git2.26.2-27.78.1SUSE-SU-2025:0197-1
SUSELinux Micro 6.0git2.45.1-2.1SUSE-SU-2025:20197-1
SUSELinux Micro 6.0git2.51.0-1.1SUSE-SU-2025:20721-1
SUSELinux Micro 6.1git2.46.0-slfo.1.1_2.1SUSE-RU-2025:20362-1
openSUSELeap 15.6git2.43.0-150600.3.9.1SUSE-SU-2025:0116-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.18git2.40.4-r0ALPINE-CVE-2024-52006
Alpinev3.19git2.43.6-r0ALPINE-CVE-2024-52006
Alpinev3.20git2.45.3-r0ALPINE-CVE-2024-52006
Alpinev3.21git2.47.2-r0ALPINE-CVE-2024-52006
Alpinev3.22, v3.23, v3.24git2.48.1-r0ALPINE-CVE-2024-52006
Azure Linux2git2.40.4-1AZL-55652
Azure Linux3git2.45.3-1AZL-55667
Alpaquita23git2.40.4-r0BELL-CVE-2024-52006
Alpaquitastreamgit2.48.1-r0BELL-CVE-2024-52006

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 Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10git-0:2.47.3-1.el10_0Fixed 2025-07-22RHSA-2025:11533
Red Hat Enterprise Linux 8git-0:2.43.7-1.el8_10Fixed 2025-07-23RHSA-2025:11534
Red Hat Enterprise Linux 9git-0:2.47.3-1.el9_6Fixed 2025-07-21RHSA-2025:11462
Red Hat Enterprise Linux 6gitFix deferred
Red Hat Enterprise Linux 7gitFix deferred
Red Hat Fuse 7io.syndesis-syndesis-parentOut of support scope
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred

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-2024-52006.

Attack patterns (CAPEC)

  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium
  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High
  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-93 Log Injection-Tampering-Forging Likelihood: High · Severity: High
  • CAPEC-134 Email Injection Severity: Medium

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

References

Check your stackJSON