cve.bz

CVE-2018-11235 Path traversal

7.8 highExploit referenceEPSS 47%Fix available

High (7.8). EPSS 47% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.8 high
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
47% (unchanged from 47% a week ago; 48% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-11235 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-11235?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-11235?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-11235 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
debian:debian_linux8.0
debian:debian_linux9.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
canonical:ubuntu_linux18.04
redhat:enterprise_linux7.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_eus7.5
redhat:enterprise_linux_workstation7.0
git-scm:gitthrough 2.13.6
git-scm:gitfrom 2.14.0 through 2.14.3
git-scm:gitfrom 2.15.0 through 2.15.1
git-scm:gitfrom 2.16.0 through 2.16.3
git-scm:git2.17.0
gitforwindows:gitthrough 2.17.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8git1:2.1.4-2.1+deb8u6DSA-4212-1
Debian9git1:2.11.0-3+deb9u3DSA-4212-1
Debian12, 13, 14git1:2.17.1-1DEBIAN-CVE-2018-11235
Ubuntu14.04:LTSgit1:1.9.1-1ubuntu0.8UBUNTU-CVE-2018-11235 USN-3671-1
Ubuntu16.04:LTSgit1:2.7.4-0ubuntu1.4UBUNTU-CVE-2018-11235 USN-3671-1
Ubuntu18.04:LTSgit1:2.17.1-1ubuntu0.1UBUNTU-CVE-2018-11235 USN-3671-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moregit, gitk, git-hg and 14 more0:1.8.3.1-14.el7_5RHSA-2018:1957
Red Hatrhel_software_collections:3::el6rh-git29-git, rh-git29-gitk, rh-git29-git-p4 and 14 more0:2.9.3-4.el6RHSA-2018:2147
Red Hatrhel_software_collections:3::el7rh-git29-git, rh-git29-gitk, rh-git29-git-p4 and 12 more0:2.9.3-4.el7RHSA-2018:2147
SUSEEnterprise Storage 4, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP1-LTSS and 9 moregit2.12.3-27.14.1SUSE-SU-2018:1566-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Development Tools 15git2.16.4-3.3.2SUSE-SU-2018:1872-1
SUSELinux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Development Tools 15 SP1git2.26.1-3.25.2SUSE-SU-2020:1121-1
SUSELinux Enterprise Module for Development Tools 15libgit20.26.6-3.5.2SUSE-SU-2018:2469-1
SUSELinux Enterprise Server 12 SP2-BCLgit2.12.3-27.14.1SUSE-SU-2018:1566-2
SUSELinux Enterprise Software Development Kit 12 SP3, Manager Server 3.1, Manager Server 3.2libgit20.24.1-7.6.1SUSE-SU-2018:3440-1
openSUSELeap 15.1git2.26.1-lp151.4.9.1openSUSE-SU-2020:0598-1
openSUSETumbleweedgit2.33.0-1.3openSUSE-SU-2024:10786-1
openSUSETumbleweedlibgit21.1.1-1.2openSUSE-SU-2024:10943-1
Alpinev3.5git2.11.3-r1ALPINE-CVE-2018-11235
Alpinev3.6git2.13.7ALPINE-CVE-2018-11235
Alpinev3.7git2.15.2-r0ALPINE-CVE-2018-11235
Alpinev3.8, v3.9, v3.10 and 14 moregit2.17.1-r0ALPINE-CVE-2018-11235

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue did not affect the versions of git as shipped with Red Hat Enterprise Linux 6 as they did not include the vulnerable code.

If using OCP 3.6 make sure atomic-openshift-3.6.173.0.128-1.git.0.8da0828.el7 or later is installed on the master.

Red Hat's mitigation

Don't create OCP source-to-image applications from source code repositories hosted by untrusted parties. Github is blocking users from pushing repositories with malicious submodules so it's less likely you can pull a malicious repository from there which triggers this vulnerability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7git-0:1.8.3.1-14.el7_5Fixed 2018-06-21RHSA-2018:1957
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-git29-git-0:2.9.3-4.el6Fixed 2018-07-10RHSA-2018:2147
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-git29-git-0:2.9.3-4.el6Fixed 2018-07-10RHSA-2018:2147
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-git29-git-0:2.9.3-4.el7Fixed 2018-07-10RHSA-2018:2147
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSrh-git29-git-0:2.9.3-4.el7Fixed 2018-07-10RHSA-2018:2147
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-git29-git-0:2.9.3-4.el7Fixed 2018-07-10RHSA-2018:2147
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-git29-git-0:2.9.3-4.el7Fixed 2018-07-10RHSA-2018:2147
JBoss Developer Studio 11jgitWill not fix
Red Hat Enterprise Linux 6gitNot affected
Red Hat Enterprise Linux 8gitNot affected
Red Hat Enterprise Linux Atomic Host 7gitNot affected
Red Hat Fuse 7camelNot affected
Red Hat JBoss A-MQ 6jgitNot affected
Red Hat JBoss BRMS 6jgitNot affected
Red Hat JBoss Data Virtualization 6jgitNot affected
Red Hat JBoss Fuse 6camelNot affected
Red Hat JBoss Fuse Integration Service 2camelNot affected
Red Hat JBoss Fuse Service Works 6jgitNot affected
Red Hat Mobile Application Platform 4fh-scmNot affected
Red Hat OpenShift Container Platform 3.10source-to-imageNot affected
10 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-11235.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON