{"answers":{"affected":"1 open source package ship an affected version, including git. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-52005 in the wild and no public exploit code.","fix":"Upgrade git to a fixed version for your release line: 2.40.5, 2.41.4, 2.42.5 or 2.43.7.","what":"CVE-2024-52005 is a high-severity vulnerability in git, published on 15 Jan 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-52005 and fix it if it is affected.\n\nWhat it is: CVE-2024-52005 is a high-severity vulnerability in git, published on 15 Jan 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-52005 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- git (Bitnami): affected all versions; fixed in 2.40.5, 2.41.4, 2.42.5, 2.43.7, 2.44.4, 2.45.4, 2.46.4, 2.47.2, 2.48.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-52005/ (Markdown: https://insights.sbomify.com/CVE-2024-52005/index.md)","id":"CVE-2024-52005","markdown":"https://insights.sbomify.com/CVE-2024-52005/index.md","name":"CVE-2024-52005","record":{"aliases":["ALSA-2025:7409","ALSA-2025:7482","ALSA-2025:8414","AZL-56370","AZL-56373","BELL-CVE-2024-52005","BIT-git-2024-52005","CLSA-2025-1751142973","CLSA-2026-1776687226","DEBIAN-CVE-2024-52005","ECHO-c63d-3f15-6e1f","GHSA-7jjc-gg6m-3329","MINI-8f3x-wm75-6446","OESA-2025-1115","RHSA-2025:7409","RHSA-2025:7482","RHSA-2025:7640","RHSA-2025:7641","RHSA-2025:8414","RLSA-2025:7409","RLSA-2025:7482","RLSA-2025:8414","ROOT-OS-UBUNTU-2404-CVE-2024-52005","UBUNTU-CVE-2024-52005"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Git version control","requires_auth":"none","summary":"Malicious remote messages can inject terminal escape sequences to mislead users into executing untrusted scripts during Git operations.","user_interaction":"required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"git","vendor":"git"}],"cvss":{"score":7.5,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"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.","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Bitnami","Red Hat:enterprise_linux:10.0","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_eus:9.2::appstream","Red Hat:rhel_eus:9.4::appstream","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9"],"exploits":{"exploitdb":0,"first_seen":"2025-12-29","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-12-29T04:48:30Z","kind":"github_poc","ref":"https://github.com/andrewd-cg/cve-2024-52005-poc","stars":0,"title":"Proof-of-Concept for CVE-2024-52005: ANSI escape sequence injection in Git. Demonstrates incorrect 'not_affected' VEX claims in hardened container images."}],"tier":"poc_unverified"},"has_fix":true,"headline":"The sideband payload is passed unfiltered to the terminal in git","id":"CVE-2024-52005","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"other","year":"2024"},"n_packages":149,"n_references":2,"next":{"headline":"Newline confusion in credential helpers can lead to credential exfiltration in git","id":"CVE-2024-52006"},"packages":[{"ecosystem":"Bitnami","fixed":["2.40.5","2.41.4","2.42.5","2.43.7","2.44.4","2.45.4","2.46.4","2.47.2","2.48.2"],"introduced":["0","2.41.0","2.42.0","2.43.0","2.44.0","2.45.0","2.46.0","2.47.0","2.48.0"],"last_affected":[],"package":"git","purl":"pkg:bitnami/git","source":"BIT-git-2024-52005"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/almalinux/git","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"git-all","purl":"pkg:rpm/almalinux/git-all","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"git-core","purl":"pkg:rpm/almalinux/git-core","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"git-core-doc","purl":"pkg:rpm/almalinux/git-core-doc","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"git-credential-libsecret","purl":"pkg:rpm/almalinux/git-credential-libsecret","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"git-daemon","purl":"pkg:rpm/almalinux/git-daemon","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"git-email","purl":"pkg:rpm/almalinux/git-email","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"git-gui","purl":"pkg:rpm/almalinux/git-gui","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"git-instaweb","purl":"pkg:rpm/almalinux/git-instaweb","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"git-subtree","purl":"pkg:rpm/almalinux/git-subtree","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"git-svn","purl":"pkg:rpm/almalinux/git-svn","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"gitk","purl":"pkg:rpm/almalinux/gitk","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"gitweb","purl":"pkg:rpm/almalinux/gitweb","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Git","purl":"pkg:rpm/almalinux/perl-Git","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:10","fixed":["2.47.1-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Git-SVN","purl":"pkg:rpm/almalinux/perl-Git-SVN","source":"ALSA-2025:7482"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/almalinux/git","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-all","purl":"pkg:rpm/almalinux/git-all","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-core","purl":"pkg:rpm/almalinux/git-core","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-core-doc","purl":"pkg:rpm/almalinux/git-core-doc","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-credential-libsecret","purl":"pkg:rpm/almalinux/git-credential-libsecret","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-daemon","purl":"pkg:rpm/almalinux/git-daemon","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-email","purl":"pkg:rpm/almalinux/git-email","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-gui","purl":"pkg:rpm/almalinux/git-gui","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-instaweb","purl":"pkg:rpm/almalinux/git-instaweb","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-subtree","purl":"pkg:rpm/almalinux/git-subtree","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"git-svn","purl":"pkg:rpm/almalinux/git-svn","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"gitk","purl":"pkg:rpm/almalinux/gitk","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"gitweb","purl":"pkg:rpm/almalinux/gitweb","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-Git","purl":"pkg:rpm/almalinux/perl-Git","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:8","fixed":["2.43.5-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-Git-SVN","purl":"pkg:rpm/almalinux/perl-Git-SVN","source":"ALSA-2025:8414"},{"ecosystem":"AlmaLinux:9","fixed":["2.47.1-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/almalinux/git","source":"ALSA-2025:7409"},{"ecosystem":"AlmaLinux:9","fixed":["2.47.1-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"git-all","purl":"pkg:rpm/almalinux/git-all","source":"ALSA-2025:7409"},{"ecosystem":"AlmaLinux:9","fixed":["2.47.1-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"git-core","purl":"pkg:rpm/almalinux/git-core","source":"ALSA-2025:7409"},{"ecosystem":"AlmaLinux:9","fixed":["2.47.1-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"git-core-doc","purl":"pkg:rpm/almalinux/git-core-doc","source":"ALSA-2025:7409"},{"ecosystem":"AlmaLinux:9","fixed":["2.47.1-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"git-credential-libsecret","purl":"pkg:rpm/almalinux/git-credential-libsecret","source":"ALSA-2025:7409"},{"ecosystem":"AlmaLinux:9","fixed":["2.47.1-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"git-daemon","purl":"pkg:rpm/almalinux/git-daemon","source":"ALSA-2025:7409"},{"ecosystem":"AlmaLinux:9","fixed":["2.47.1-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"git-email","purl":"pkg:rpm/almalinux/git-email","source":"ALSA-2025:7409"},{"ecosystem":"AlmaLinux:9","fixed":["2.47.1-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"git-gui","purl":"pkg:rpm/almalinux/git-gui","source":"ALSA-2025:7409"},{"ecosystem":"AlmaLinux:9","fixed":["2.47.1-2.el9_6"],"introduced":["0"],"last_affected":[],"package":"git-instaweb","purl":"pkg:rpm/almalinux/git-instaweb","source":"ALSA-2025:7409"}],"prev":{"headline":"Remote code execution vulnerabilities in MediaCMS","id":"CVE-2024-52004"},"products":["git"],"published":"2025-01-15","related":[{"cvss_score":9.1,"headline":"Git's recursive clones on case-insensitive filesystems that support symlinks are susceptible to Remote Code Execution","id":"CVE-2024-32002","kev_date_added":null,"published":"2024-05-14"},{"cvss_score":7.5,"headline":"Command injection in n/a","id":"CVE-2008-5517","kev_date_added":null,"published":"2009-01-13"},{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2008-3546","kev_date_added":null,"published":"2008-08-07"},{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2006-0477","kev_date_added":null,"published":"2006-01-31"},{"cvss_score":5,"headline":"Denial of service in n/a","id":"CVE-2009-2108","kev_date_added":null,"published":"2009-06-18"},{"cvss_score":4.6,"headline":"Command injection in n/a","id":"CVE-2008-5916","kev_date_added":null,"published":"2009-01-21"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-15","vendors":["git"]},"summary":"Malicious remote messages can inject terminal escape sequences to mislead users into executing untrusted scripts during Git operations.","url":"https://insights.sbomify.com/CVE-2024-52005/"}