Skip to main content
Public proof of conceptFix available

CVE-2024-52005

A public proof of concept exists; no exploitation attested.

  • Published2025-01-15
  • WeaknessCWE-116 · CWE-150

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 source code management tool. When cloning from a server (or fetching, or pushing), informational or error messages are transported from the remote Git process to the client via the so-called "sideband channel". These messages will be prefixed with "remote:" and printed directly to the standard error output. Typically, this standard error output is connected to a terminal that understands ANSI escape sequences, which Git did not protect against. Most modern terminals support control sequences that can be used by a malicious actor to hide and misrepresent information, or to mislead the user into executing untrusted scripts. As requested on the git-security mailing list, the patches are under discussion on the public mailing list. Users are advised to update as soon as possible. Users unable to upgrade should avoid recursive clones unless they are from trusted sources.

Timeline

dates in UTC
  1. 2025-01-1518:15CVE publishedNVD
  2. 2026-10-2319:23First public proof of conceptPoC-in-GitHub

Versions per branch

NVD · OSV
Git
BranchAffectedFixed in
2.40≤ 2.40.4no fix published
2.41≥ 2.41.0, ≤ 2.41.3no fix published
2.42≥ 2.42.0, ≤ 2.42.4no fix published
2.43≥ 2.43.0, ≤ 2.43.6no fix published
2.44≥ 2.44.0, ≤ 2.44.3no fix published
2.45≥ 2.45.0, ≤ 2.45.3no fix published
2.46≥ 2.46.0, ≤ 2.46.3no fix published
2.47≥ 2.47.0, ≤ 2.47.1no fix published
2.48≥ 2.48.0, ≤ 2.48.1no fix published
git
BranchAffectedFixed in
2.48≥ 2.48.0, < 2.48.22.48.2
2.47≥ 2.47.0, < 2.47.22.47.2
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.0, < 2.43.72.43.7
2.42≥ 2.42.0, < 2.42.52.42.5
2.41≥ 2.41.0, < 2.41.42.41.4
2.40< 2.40.52.40.5

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.48.0, <= 2.48.1no fix stated
    • = >= 2.47.0, <= 2.47.1no fix stated
    • = >= 2.46.0, <= 2.46.3no fix stated
    • = >= 2.45.0, <= 2.45.3no fix stated
    • = >= 2.44.0, <= 2.44.3no fix stated
    • = >= 2.43.0, <= 2.43.6no fix stated
    • = >= 2.42.0, <= 2.42.4no fix stated
    • = >= 2.41.0, <= 2.41.3no fix stated

    1 more version line in the CVE record.

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

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 · no fixed version listed
  • gitUbuntu:Pro:18.04:LTSall versions · no fixed version listed
  • gitUbuntu:Pro:16.04:LTSall versions · no fixed version listed
  • gitUbuntu:26.10all versions · no fixed version listed
  • gitUbuntu:26.04:LTSall versions · no fixed version listed
  • gitUbuntu:25.10all versions · no fixed version listed
  • gitUbuntu:24.04:LTSall versions · no fixed version listed
  • gitUbuntu:22.04:LTSall versions · no fixed version listed

30 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-52005 Red Hat Product Security254 products fixed · 35 known affected

    git: The sideband payload is passed unfiltered to the terminal in git

    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 · +32 more

  • RHSA-2025:8414 Red Hat Product Security51 products fixed

    Red Hat Security Advisory: git security update

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

    Red Hat Security Advisory: A Subscription Management tool for finding and reporting Red Hat product usage

  • RHSA-2025:7640 Red Hat Product Security51 products fixed

    Red Hat Security Advisory: git security update

  • RHSA-2025:7641 Red Hat Product Security51 products fixed

    Red Hat Security Advisory: git security update

  • RHSA-2025:7482 Red Hat Product Security48 products fixed

    Red Hat Security Advisory: git security update

1 more advisory

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2025:8414 · 51 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  2. Vendor fix Red Hat Product Security RHSA-2025:8385 · 2 productsThe containers required to run Discovery can be installed through discovery-installer RPM. See the official documentation for more details.
  3. Workaround from the vendor Red Hat Product Security RHSA-2025:8414 · 51 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  4. No fix planned, says the vendor Red Hat Product Security CVE-2024-52005 · 14 productsOut of support scope
  5. No fix planned, says the vendor Red Hat Product Security CVE-2024-52005 · 21 productsWill not fix

Advisories and patches

Detection

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

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 4.0 vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
2025-01-15
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-7jjc-gg6m-3329

Frequently asked questions

What is CVE-2024-52005?

Git is a source code management tool. When cloning from a server (or fetching, or pushing), informational or error messages are transported from the remote Git process to the client via the so-called "sideband channel". These messages will be prefixed with "remote:" and printed directly to the standard error output. Typically, this standard error output is connected to a terminal that understands ANSI escape sequences, which Git did not protect against. Most modern terminals support control sequences that can be used by a malicious actor to hide and misrepresent information, or to mislead the user into executing untrusted scripts. As requested on the git-security mailing list, the patches are under discussion on the public mailing list. Users are advised to update as soon as possible. Users unable to upgrade should avoid recursive clones unless they are from trusted sources.

Is CVE-2024-52005 actively exploited?

Active exploitation of CVE-2024-52005 has not been confirmed. Its EPSS score was 0.5% on 2026-11-15, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-52005?

CVE-2024-52005 has a CVSS v3 base score of 8.8 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/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