{"answers":{"affected":"3 open source packages ship an affected version, including github.com/git-lfs/git-lfs and git-lfs. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-27955 exists.","fix":"Upgrade github.com/git-lfs/git-lfs to 2.12.1 or later.","what":"CVE-2020-27955 is a critical code injection vulnerability in n/a, published on 5 Nov 2020. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-27955 and fix it if it is affected.\n\nWhat it is: CVE-2020-27955 is a critical code injection vulnerability in n/a, published on 5 Nov 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-27955 exists.\n\nAffected packages and fixed versions:\n- github.com/git-lfs/git-lfs (Go): affected all versions; fixed in 2.12.1\n- github.com/git-lfs/git-lfs (Go): affected all versions; fixed in 2.12.1\n- git-lfs (Bitnami): affected from 2.12.0; fixed in 2.12.1\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-27955/ (Markdown: https://insights.sbomify.com/CVE-2020-27955/index.md)","id":"CVE-2020-27955","markdown":"https://insights.sbomify.com/CVE-2020-27955/index.md","name":"CVE-2020-27955","record":{"aliases":["BIT-git-lfs-2020-27955","GHSA-4g4p-42wc-9f3m"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Git LFS","requires_auth":"none","summary":"Git LFS allows remote code execution via untrusted repositories, requiring developers to upgrade to a patched version.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"git_large_file_storage","vendor":"git_large_file_storage_project"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-427","name":"Uncontrolled Search Path Element"}],"description":"Git LFS 2.12.0 allows Remote Code Execution.","ecosystems":["Bitnami","Go"],"exploits":{"exploitdb":0,"first_seen":"2020-11-03","github_poc":18,"max_poc_stars":30,"metasploit":1,"nuclei":0,"refs":[{"date":"2020-11-03T17:14:22Z","kind":"github_poc","ref":"https://github.com/ExploitBox/git-lfs-RCE-exploit-CVE-2020-27955","stars":30,"title":"Git-lfs RCE exploit CVE-2020-27955 - tested on Windows on: git, gh cli, GitHub Desktop, Visual Studio, SourceTree etc."},{"date":"2020-11-24T02:40:04Z","kind":"github_poc","ref":"https://github.com/r00t4dm/CVE-2020-27955","stars":17,"title":null},{"date":"2020-11-04T16:43:04Z","kind":"github_poc","ref":"https://github.com/ExploitBox/git-lfs-RCE-exploit-CVE-2020-27955-Go","stars":15,"title":null},{"date":"2020-12-28T13:27:27Z","kind":"github_poc","ref":"https://github.com/TheTh1nk3r/cve-2020-27955","stars":1,"title":"cve-2020-27955"},{"date":"2021-04-30T09:38:48Z","kind":"github_poc","ref":"https://github.com/DeeLMind/CVE-2020-27955-LFS","stars":1,"title":null},{"date":"2020-11-04","kind":"metasploit","ref":"exploit/windows/http/git_lfs_rce","stars":null,"title":"Git Remote Code Execution via git-lfs (CVE-2020-27955)"},{"date":"2020-11-22T02:59:46Z","kind":"github_poc","ref":"https://github.com/yhsung/cve-2020-27955-poc","stars":0,"title":null},{"date":"2021-03-30T07:12:11Z","kind":"github_poc","ref":"https://github.com/NeoDarwin/CVE-2020-27955","stars":0,"title":"CVE-2020-27955 Poc"}],"tier":"weaponised"},"has_fix":true,"headline":"Git LFS can execute a Git binary from the current directory","id":"CVE-2020-27955","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"code_injection","year":"2020"},"n_packages":3,"n_references":7,"next":{"headline":"File upload in n/a","id":"CVE-2020-27956"},"packages":[{"ecosystem":"Bitnami","fixed":["2.12.1"],"introduced":["2.12.0"],"last_affected":[],"package":"git-lfs","purl":"pkg:bitnami/git-lfs","source":"BIT-git-lfs-2020-27955"},{"ecosystem":"Go","fixed":["2.12.1"],"introduced":["0"],"last_affected":[],"package":"github.com/git-lfs/git-lfs","purl":null,"source":"GHSA-4g4p-42wc-9f3m"},{"ecosystem":"Go","fixed":["2.12.1"],"introduced":["0"],"last_affected":[],"package":"github.com/git-lfs/git-lfs","purl":"pkg:golang/github.com/git-lfs/git-lfs","source":"GHSA-4g4p-42wc-9f3m"}],"prev":{"headline":"Memory corruption in macOS","id":"CVE-2020-27952"},"products":["n/a"],"published":"2020-11-05","related":[{"cvss_score":9.8,"headline":"Git LFS can execute a binary from the current directory on Windows","id":"CVE-2022-24826","kev_date_added":null,"published":"2022-04-19"},{"cvss_score":8.8,"headline":"GitHub Git LFS Arbitrary command execution vulnerability","id":"CVE-2017-17831","kev_date_added":null,"published":"2017-12-21"},{"cvss_score":7.2,"headline":"Git LFS can execute a Git binary from the current directory on Windows","id":"CVE-2021-21237","kev_date_added":null,"published":"2021-01-15"}],"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":"GitHub Advisory Database","prefix":"GHSA"},{"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":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Git LFS allows remote code execution via untrusted repositories, requiring developers to upgrade to a patched version.","url":"https://insights.sbomify.com/CVE-2020-27955/"}