{"answers":{"affected":"It affects 9 products.","exploited":"There is no known exploitation of CVE-2018-11235 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2018-11235 is a high-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 30 May 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2018-11235 and fix it if it is affected.\n\nWhat it is: CVE-2018-11235 is a high-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 30 May 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2018-11235 in the wild and no public exploit code.\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-11235/ (Markdown: https://insights.sbomify.com/CVE-2018-11235/index.md)","id":"CVE-2018-11235","markdown":"https://insights.sbomify.com/CVE-2018-11235/index.md","name":"CVE-2018-11235","record":{"aliases":["ALPINE-CVE-2018-11235","CLEANSTART-2025-DA54613","DEBIAN-CVE-2018-11235","DSA-4212-1","GHSA-v6w3-vcjx-mwhx","RHSA-2018:1957","UBUNTU-CVE-2018-11235"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Git version control","requires_auth":"none","summary":"Attackers can execute arbitrary code via crafted .gitmodules files during recursive cloning, affecting developers using Git.","user_interaction":"required","vuln_class":"path_traversal"},"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":"git","vendor":"gitforwindows"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"enterprise_linux_desktop","vendor":"redhat"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_server_eus","vendor":"redhat"},{"product":"enterprise_linux_workstation","vendor":"redhat"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"In Git before 2.13.7, 2.14.x before 2.14.4, 2.15.x before 2.15.2, 2.16.x before 2.16.4, and 2.17.x before 2.17.1, remote code execution can occur. With a crafted .gitmodules file, a malicious project can execute an arbitrary script on a machine that runs \"git clone --recurse-submodules\" because submodule \"names\" are obtained from this file, and then appended to $GIT_DIR/modules, leading to directory traversal with \"../\" in a name. Finally, post-checkout hooks from a submodule are executed, bypassing the intended design in which hooks are not obtained from a remote server.","ecosystems":["Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation"],"exploits":{"exploitdb":0,"first_seen":"2018-05-30","github_poc":15,"max_poc_stars":48,"metasploit":0,"nuclei":0,"refs":[{"date":"2018-05-30T22:56:29Z","kind":"github_poc","ref":"https://github.com/Rogdham/CVE-2018-11235","stars":48,"title":"PoC exploit for CVE-2018-11235 allowing RCE on git clone --recurse-submodules"},{"date":"2018-06-01T01:26:19Z","kind":"github_poc","ref":"https://github.com/CHYbeta/CVE-2018-11235-DEMO","stars":14,"title":null},{"date":"2019-04-09T05:48:22Z","kind":"github_poc","ref":"https://github.com/qweraqq/CVE-2018-11235-Git-Submodule-CE","stars":3,"title":"CVE-2018-11235-Git PoC"},{"date":"2021-09-22T21:15:50Z","kind":"github_poc","ref":"https://github.com/j4k0m/CVE-2018-11235","stars":2,"title":"Auto malicious git repository creation to exploit CVE-2018-11235 a Remote Code Execution using Git Sub module."},{"date":"2018-12-03T18:50:27Z","kind":"github_poc","ref":"https://github.com/ygouzerh/CVE-2018-11235","stars":1,"title":"Proof of Concept - RCE Exploitation : Git submodules' names vulnerability  - Ensimag November 2018"},{"date":"2019-06-22T14:39:08Z","kind":"github_poc","ref":"https://github.com/AnonymKing/CVE-2018-11235","stars":1,"title":"CVE-2018-11235（PoC \u0026\u0026 Exp）"},{"date":"2018-05-31T08:38:17Z","kind":"github_poc","ref":"https://github.com/vmotos/CVE-2018-11235","stars":0,"title":"RCE vulnerability to exec \"git clone --recurse-submodule\" (CVE-2018-11235)"},{"date":"2018-06-06T08:48:57Z","kind":"github_poc","ref":"https://github.com/Kiss-sh0t/CVE-2018-11235-poc","stars":0,"title":"for git v2.7.4"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Path traversal in n/a","id":"CVE-2018-11235","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","debian:debian_linux","redhat:enterprise_linux","redhat:enterprise_linux_desktop","redhat:enterprise_linux_server","redhat:enterprise_linux_server_eus","redhat:enterprise_linux_workstation"],"type":"path_traversal","year":"2018"},"n_packages":68,"n_references":11,"next":{"headline":"Integer overflow in n/a","id":"CVE-2018-11236"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"emacs-git","purl":"pkg:rpm/redhat/emacs-git","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"emacs-git-el","purl":"pkg:rpm/redhat/emacs-git-el","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/redhat/git","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-all","purl":"pkg:rpm/redhat/git-all","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-bzr","purl":"pkg:rpm/redhat/git-bzr","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-cvs","purl":"pkg:rpm/redhat/git-cvs","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-daemon","purl":"pkg:rpm/redhat/git-daemon","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-debuginfo","purl":"pkg:rpm/redhat/git-debuginfo","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-email","purl":"pkg:rpm/redhat/git-email","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-gui","purl":"pkg:rpm/redhat/git-gui","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-hg","purl":"pkg:rpm/redhat/git-hg","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-p4","purl":"pkg:rpm/redhat/git-p4","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-svn","purl":"pkg:rpm/redhat/git-svn","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"gitk","purl":"pkg:rpm/redhat/gitk","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"gitweb","purl":"pkg:rpm/redhat/gitweb","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"perl-Git","purl":"pkg:rpm/redhat/perl-Git","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"perl-Git-SVN","purl":"pkg:rpm/redhat/perl-Git-SVN","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"emacs-git","purl":"pkg:rpm/redhat/emacs-git","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"emacs-git-el","purl":"pkg:rpm/redhat/emacs-git-el","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/redhat/git","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-all","purl":"pkg:rpm/redhat/git-all","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-bzr","purl":"pkg:rpm/redhat/git-bzr","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-cvs","purl":"pkg:rpm/redhat/git-cvs","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-daemon","purl":"pkg:rpm/redhat/git-daemon","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-debuginfo","purl":"pkg:rpm/redhat/git-debuginfo","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-email","purl":"pkg:rpm/redhat/git-email","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-gui","purl":"pkg:rpm/redhat/git-gui","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-hg","purl":"pkg:rpm/redhat/git-hg","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-p4","purl":"pkg:rpm/redhat/git-p4","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-svn","purl":"pkg:rpm/redhat/git-svn","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"gitk","purl":"pkg:rpm/redhat/gitk","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"gitweb","purl":"pkg:rpm/redhat/gitweb","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"perl-Git","purl":"pkg:rpm/redhat/perl-Git","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"perl-Git-SVN","purl":"pkg:rpm/redhat/perl-Git-SVN","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"emacs-git","purl":"pkg:rpm/redhat/emacs-git","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"emacs-git-el","purl":"pkg:rpm/redhat/emacs-git-el","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/redhat/git","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-all","purl":"pkg:rpm/redhat/git-all","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-bzr","purl":"pkg:rpm/redhat/git-bzr","source":"RHSA-2018:1957"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.8.3.1-14.el7_5"],"introduced":["0"],"last_affected":[],"package":"git-cvs","purl":"pkg:rpm/redhat/git-cvs","source":"RHSA-2018:1957"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2018-11233"},"products":["n/a"],"published":"2018-05-30","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":"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 via crafted .gitmodules files during recursive cloning, affecting developers using Git.","url":"https://insights.sbomify.com/CVE-2018-11235/"}