{"answers":{"affected":"1 open source package ship an affected version, including git. It affects 6 products.","exploited":"There is no known exploitation of CVE-2020-5260 in the wild and no public exploit code.","fix":"Upgrade git to a fixed version for your release line: 2.17.4 or 2.22.3.","what":"CVE-2020-5260 is a critical vulnerability in Canonical Ubuntu Linux, published on 14 Apr 2020. 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-2020-5260 and fix it if it is affected.\n\nWhat it is: CVE-2020-5260 is a critical vulnerability in Canonical Ubuntu Linux, published on 14 Apr 2020. 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-2020-5260 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- git (Bitnami): affected all versions; fixed in 2.17.4, 2.22.3\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-2020-5260/ (Markdown: https://insights.sbomify.com/CVE-2020-5260/index.md)","id":"CVE-2020-5260","markdown":"https://insights.sbomify.com/CVE-2020-5260/index.md","name":"CVE-2020-5260","record":{"aliases":["ALPINE-CVE-2020-5260","BIT-git-2020-5260","CLEANSTART-2025-KZ78895","DEBIAN-CVE-2020-5260","DLA-2177-1","DSA-4657-1","GHSA-qm7j-c969-7j4q","MGASA-2020-0175","RHSA-2020:1503","RHSA-2020:1511","RHSA-2020:1513","RHSA-2020:1518","SUSE-SU-2020:0991-1","SUSE-SU-2020:0992-1","UBUNTU-CVE-2020-5260","USN-4329-1","openSUSE-SU-2020:0524-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Git version control","requires_auth":"none","summary":"Attackers can trick Git into sending stored credentials to a malicious server via crafted URLs, exposing sensitive authentication data.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ubuntu_linux","vendor":"canonical"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"git","vendor":"git-scm"},{"product":"git","vendor":"git"},{"product":"leap","vendor":"opensuse"}],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Affected versions of Git have a vulnerability whereby Git can be tricked into sending private credentials to a host controlled by an attacker. Git uses external \"credential helper\" programs to store and retrieve passwords or other credentials from secure storage provided by the operating system. Specially-crafted URLs that contain an encoded newline can inject unintended values into the credential helper protocol stream, causing the credential helper to retrieve the password for one server (e.g., good.example.com) for an HTTP request being made to another server (e.g., evil.example.com), resulting in credentials for the former being sent to the latter. There are no restrictions on the relationship between the two, meaning that an attacker can craft a URL that will present stored credentials for any host to a host of their choosing. The vulnerability can be triggered by feeding a malicious URL to git clone. However, the affected URLs look rather suspicious; the likely vector would be through systems which automatically clone URLs not visible to the user, such as Git submodules, or package systems built around Git. The problem has been patched in the versions published on April 14th, 2020, going back to v2.17.x. Anyone wishing to backport the change further can do so by applying commit 9a6bbee (the full release includes extra checks for git fsck, but that commit is sufficient to protect clients against the vulnerability). The patched versions are: 2.17.4, 2.18.3, 2.19.4, 2.20.3, 2.21.2, 2.22.3, 2.23.2, 2.24.2, 2.25.3, 2.26.1.","ecosystems":["Bitnami","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::appstream","Red Hat:rhel_e4s:8.0::appstream","Red Hat:rhel_software_collections:3::el7","SUSE:Enterprise Storage 5","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP1","SUSE:Linux Enterprise Module for Development Tools 15 SP1","SUSE:Linux Enterprise Server 12 SP1-LTSS","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP2-LTSS","SUSE:Linux Enterprise Server 12 SP3-BCL","SUSE:Linux Enterprise Server 12 SP3-LTSS","SUSE:Linux Enterprise Server 12 SP4","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP1","SUSE:Linux Enterprise Server for SAP Applications 12 SP2","SUSE:Linux Enterprise Server for SAP Applications 12 SP3","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15","SUSE:Linux Enterprise Software Development Kit 12 SP4","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:OpenStack Cloud 7","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud Crowbar 8","openSUSE:Leap 15.1"],"exploits":{"exploitdb":0,"first_seen":"2020-04-15","github_poc":3,"max_poc_stars":37,"metasploit":0,"nuclei":0,"refs":[{"date":"2020-04-15T10:16:56Z","kind":"github_poc","ref":"https://github.com/brompwnie/cve-2020-5260","stars":37,"title":"A HTTP PoC Endpoint for cve-2020-5260 which can be deployed to Heroku"},{"date":"2020-04-16T16:19:23Z","kind":"github_poc","ref":"https://github.com/sv3nbeast/CVE-2020-5260","stars":11,"title":"CVE-2020-5260演示记录"},{"date":"2020-04-15T11:32:16Z","kind":"github_poc","ref":"https://github.com/Asgavar/CVE-2020-5260","stars":0,"title":"https://bugs.chromium.org/p/project-zero/issues/detail?id=2021"}],"tier":"poc_unverified"},"has_fix":true,"headline":"malicious URLs may cause Git to present stored credentials to the wrong server","id":"CVE-2020-5260","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","debian:debian_linux","fedoraproject:fedora","opensuse:leap"],"type":"information_disclosure","year":"2020"},"n_packages":194,"n_references":19,"next":{"headline":"Missing Token Replay Detection","id":"CVE-2020-5261"},"packages":[{"ecosystem":"Bitnami","fixed":["2.17.4","2.22.3"],"introduced":["0","2.22.0"],"last_affected":[],"package":"git","purl":"pkg:bitnami/git","source":"BIT-git-2020-5260"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"emacs-git","purl":"pkg:rpm/redhat/emacs-git","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"emacs-git-el","purl":"pkg:rpm/redhat/emacs-git-el","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/redhat/git","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-all","purl":"pkg:rpm/redhat/git-all","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-bzr","purl":"pkg:rpm/redhat/git-bzr","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-cvs","purl":"pkg:rpm/redhat/git-cvs","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-daemon","purl":"pkg:rpm/redhat/git-daemon","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-debuginfo","purl":"pkg:rpm/redhat/git-debuginfo","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-email","purl":"pkg:rpm/redhat/git-email","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-gnome-keyring","purl":"pkg:rpm/redhat/git-gnome-keyring","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-gui","purl":"pkg:rpm/redhat/git-gui","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-hg","purl":"pkg:rpm/redhat/git-hg","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-instaweb","purl":"pkg:rpm/redhat/git-instaweb","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-p4","purl":"pkg:rpm/redhat/git-p4","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-svn","purl":"pkg:rpm/redhat/git-svn","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"gitk","purl":"pkg:rpm/redhat/gitk","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"gitweb","purl":"pkg:rpm/redhat/gitweb","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"perl-Git","purl":"pkg:rpm/redhat/perl-Git","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"perl-Git-SVN","purl":"pkg:rpm/redhat/perl-Git-SVN","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"emacs-git","purl":"pkg:rpm/redhat/emacs-git","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"emacs-git-el","purl":"pkg:rpm/redhat/emacs-git-el","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/redhat/git","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-all","purl":"pkg:rpm/redhat/git-all","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-bzr","purl":"pkg:rpm/redhat/git-bzr","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-cvs","purl":"pkg:rpm/redhat/git-cvs","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-daemon","purl":"pkg:rpm/redhat/git-daemon","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-debuginfo","purl":"pkg:rpm/redhat/git-debuginfo","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-email","purl":"pkg:rpm/redhat/git-email","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-gnome-keyring","purl":"pkg:rpm/redhat/git-gnome-keyring","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-gui","purl":"pkg:rpm/redhat/git-gui","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-hg","purl":"pkg:rpm/redhat/git-hg","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-instaweb","purl":"pkg:rpm/redhat/git-instaweb","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-p4","purl":"pkg:rpm/redhat/git-p4","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"git-svn","purl":"pkg:rpm/redhat/git-svn","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"gitk","purl":"pkg:rpm/redhat/gitk","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"gitweb","purl":"pkg:rpm/redhat/gitweb","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"perl-Git","purl":"pkg:rpm/redhat/perl-Git","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"perl-Git-SVN","purl":"pkg:rpm/redhat/perl-Git-SVN","source":"RHSA-2020:1511"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.8.3.1-22.el7_8"],"introduced":["0"],"last_affected":[],"package":"emacs-git","purl":"pkg:rpm/redhat/emacs-git","source":"RHSA-2020:1511"}],"prev":{"headline":"Prototype Pollution in Dojox","id":"CVE-2020-5259"},"products":["git"],"published":"2020-04-14","related":[{"cvss_score":9.8,"headline":"SaltStack Salt Authentication Bypass","id":"CVE-2020-11651","kev_date_added":"2021-11-03","published":"2020-04-30"},{"cvss_score":9.8,"headline":"OpenSMTPD Remote Code Execution","id":"CVE-2020-7247","kev_date_added":"2022-03-25","published":"2020-01-29"},{"cvss_score":9.8,"headline":"Exim Out-of-bounds Write","id":"CVE-2019-16928","kev_date_added":"2022-03-03","published":"2019-09-27"},{"cvss_score":9.8,"headline":"Exim Buffer Overflow","id":"CVE-2018-6789","kev_date_added":"2021-11-03","published":"2018-02-08"},{"cvss_score":9.8,"headline":"Oracle Java SE and Java SE Embedded Remote Code Execution","id":"CVE-2015-2590","kev_date_added":"2022-03-03","published":"2015-07-16"},{"cvss_score":9.8,"headline":"Oracle JRE Remote Code Execution","id":"CVE-2013-0422","kev_date_added":"2022-05-25","published":"2013-01-10"},{"cvss_score":9.8,"headline":"Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution","id":"CVE-2011-3544","kev_date_added":"2022-03-03","published":"2011-10-19"}],"sources":[{"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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["git"]},"summary":"Attackers can trick Git into sending stored credentials to a malicious server via crafted URLs, exposing sensitive authentication data.","url":"https://insights.sbomify.com/CVE-2020-5260/"}