{"answers":{"affected":"It affects 11 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-17456 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2018-17456 is a critical command injection vulnerability in Canonical Ubuntu Linux, published on 6 Oct 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-17456 and fix it if it is affected.\n\nWhat it is: CVE-2018-17456 is a critical command injection vulnerability in Canonical Ubuntu Linux, published on 6 Oct 2018. 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-2018-17456 exists.\n\nAffected product: Canonical Ubuntu Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2018-17456/ (Markdown: https://insights.sbomify.com/CVE-2018-17456/index.md)","id":"CVE-2018-17456","markdown":"https://insights.sbomify.com/CVE-2018-17456/index.md","name":"CVE-2018-17456","record":{"aliases":["ALPINE-CVE-2018-17456","CLEANSTART-2026-QG10579","DEBIAN-CVE-2018-17456","DLA-1533-1","DSA-4311-1","GHSA-g986-jp62-5xq6","MGASA-2018-0395","RHSA-2018:3408","RHSA-2018:3541","RHSA-2020:0316","SUSE-SU-2018:3150-1","SUSE-SU-2018:4009-1","SUSE-SU-2018:4088-1","SUSE-SU-2018:4088-2","SUSE-SU-2018:4088-3","UBUNTU-CVE-2018-17456","USN-3791-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Git version control","requires_auth":"none","summary":"Attackers can execute arbitrary code by crafting a malicious .gitmodules file with a URL starting with a dash during recursive cloning.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"ubuntu_linux","vendor":"canonical"},{"product":"debian_linux","vendor":"debian"},{"product":"git","vendor":"git-scm"},{"product":"ansible_tower","vendor":"redhat"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"enterprise_linux_desktop","vendor":"redhat"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_server_aus","vendor":"redhat"},{"product":"enterprise_linux_server_eus","vendor":"redhat"},{"product":"enterprise_linux_server_tus","vendor":"redhat"},{"product":"enterprise_linux_workstation","vendor":"redhat"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"description":"Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x before 2.19.1 allows remote code execution during processing of a recursive \"git clone\" of a superproject if a .gitmodules file has a URL field beginning with a '-' character.","ecosystems":["Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::computenode","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation","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:rhel_software_collections:3::el6","Red Hat:rhel_software_collections:3::el7","SUSE:Enterprise Storage 4","SUSE:HPE Helion OpenStack 8","SUSE:Linux Enterprise Module for Basesystem 15","SUSE:Linux Enterprise Module for Development Tools 15","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","SUSE:Linux Enterprise Server 12 SP4","SUSE:Linux Enterprise Server 12-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 Software Development Kit 12 SP3","SUSE:Linux Enterprise Software Development Kit 12 SP4","SUSE:OpenStack Cloud 7","SUSE:OpenStack Cloud 8"],"exploits":{"exploitdb":2,"first_seen":"2018-10-05","github_poc":5,"max_poc_stars":5,"metasploit":1,"nuclei":0,"refs":[{"date":"2019-06-21T03:17:26Z","kind":"github_poc","ref":"https://github.com/AnonymKing/CVE-2018-17456","stars":5,"title":"CVE-2018-17456漏洞复现（PoC+Exp）"},{"date":"2018-10-05","kind":"exploitdb","ref":"45548","stars":null,"title":"Git Submodule - Arbitrary Code Execution (PoC)"},{"date":"2018-10-05","kind":"metasploit","ref":"exploit/multi/http/git_submodule_url_exec","stars":null,"title":"Malicious Git HTTP Server For CVE-2018-17456"},{"date":"2018-10-16","kind":"exploitdb","ref":"45631","stars":null,"title":"Git Submodule - Arbitrary Code Execution"},{"date":"2018-10-21T17:46:10Z","kind":"github_poc","ref":"https://github.com/shpik-kr/CVE-2018-17456","stars":0,"title":"1-day"},{"date":"2018-11-08T14:03:52Z","kind":"github_poc","ref":"https://github.com/matlink/CVE-2018-17456","stars":0,"title":null},{"date":"2019-06-05T15:10:09Z","kind":"github_poc","ref":"https://github.com/799600966/CVE-2018-17456","stars":0,"title":null},{"date":"2024-07-22T10:15:44Z","kind":"github_poc","ref":"https://github.com/KKkai0315/CVE-2018-17456","stars":0,"title":"a test repository for CVE-2018-17456's PoC"}],"tier":"weaponised"},"has_fix":true,"headline":"Command injection in n/a","id":"CVE-2018-17456","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","debian:debian_linux","redhat:ansible_tower","redhat:enterprise_linux","redhat:enterprise_linux_desktop","redhat:enterprise_linux_server","redhat:enterprise_linux_server_aus","redhat:enterprise_linux_server_eus","redhat:enterprise_linux_server_tus","redhat:enterprise_linux_workstation"],"type":"command_injection","year":"2018"},"n_packages":179,"n_references":18,"next":{"headline":"Use after free in Chrome","id":"CVE-2018-17457"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"emacs-git","purl":"pkg:rpm/redhat/emacs-git","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"emacs-git-el","purl":"pkg:rpm/redhat/emacs-git-el","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/redhat/git","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-all","purl":"pkg:rpm/redhat/git-all","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-cvs","purl":"pkg:rpm/redhat/git-cvs","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-daemon","purl":"pkg:rpm/redhat/git-daemon","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-debuginfo","purl":"pkg:rpm/redhat/git-debuginfo","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-email","purl":"pkg:rpm/redhat/git-email","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-gui","purl":"pkg:rpm/redhat/git-gui","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-svn","purl":"pkg:rpm/redhat/git-svn","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"gitk","purl":"pkg:rpm/redhat/gitk","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"gitweb","purl":"pkg:rpm/redhat/gitweb","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"perl-Git","purl":"pkg:rpm/redhat/perl-Git","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"emacs-git","purl":"pkg:rpm/redhat/emacs-git","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"emacs-git-el","purl":"pkg:rpm/redhat/emacs-git-el","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/redhat/git","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-all","purl":"pkg:rpm/redhat/git-all","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-cvs","purl":"pkg:rpm/redhat/git-cvs","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-daemon","purl":"pkg:rpm/redhat/git-daemon","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-debuginfo","purl":"pkg:rpm/redhat/git-debuginfo","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-email","purl":"pkg:rpm/redhat/git-email","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-gui","purl":"pkg:rpm/redhat/git-gui","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-svn","purl":"pkg:rpm/redhat/git-svn","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"gitk","purl":"pkg:rpm/redhat/gitk","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"gitweb","purl":"pkg:rpm/redhat/gitweb","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"perl-Git","purl":"pkg:rpm/redhat/perl-Git","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"emacs-git","purl":"pkg:rpm/redhat/emacs-git","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"emacs-git-el","purl":"pkg:rpm/redhat/emacs-git-el","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/redhat/git","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-all","purl":"pkg:rpm/redhat/git-all","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-cvs","purl":"pkg:rpm/redhat/git-cvs","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-daemon","purl":"pkg:rpm/redhat/git-daemon","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-debuginfo","purl":"pkg:rpm/redhat/git-debuginfo","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-email","purl":"pkg:rpm/redhat/git-email","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-gui","purl":"pkg:rpm/redhat/git-gui","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"git-svn","purl":"pkg:rpm/redhat/git-svn","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"gitk","purl":"pkg:rpm/redhat/gitk","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"gitweb","purl":"pkg:rpm/redhat/gitweb","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"perl-Git","purl":"pkg:rpm/redhat/perl-Git","source":"RHSA-2020:0316"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:1.7.1-10.el6_10"],"introduced":["0"],"last_affected":[],"package":"emacs-git","purl":"pkg:rpm/redhat/emacs-git","source":"RHSA-2020:0316"}],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2018-17455"},"products":["n/a"],"published":"2018-10-06","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":"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":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code by crafting a malicious .gitmodules file with a URL starting with a dash during recursive cloning.","url":"https://insights.sbomify.com/CVE-2018-17456/"}