git: arbitrary code execution when recursively cloning a malicious repository
Published May 30, 2018
8.8
HIGHCVSS 3.0
EPSS 48.75%
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.
Affected products
No data.
Configuration 1
- 8.0
- 9.0
Configuration 2
- 14.04
- 16.04
- 17.10
- 18.04
Configuration 3
- 7.0
- 7.0
- 7.0
- 7.5
- 7.0
Configuration 4
Configuration 5
- ≤ 2.17.1
No data.
Red Hat Enterprise Linux 7
git-0:1.8.3.1-14.el7_5
Fixed · RHSA-2018:1957
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-git29-git-0:2.9.3-4.el6
Fixed · RHSA-2018:2147
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-git29-git-0:2.9.3-4.el6
Fixed · RHSA-2018:2147
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-git29-git-0:2.9.3-4.el7
Fixed · RHSA-2018:2147
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-git29-git-0:2.9.3-4.el7
Fixed · RHSA-2018:2147
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-git29-git-0:2.9.3-4.el7
Fixed · RHSA-2018:2147
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-git29-git-0:2.9.3-4.el7
Fixed · RHSA-2018:2147
JBoss Developer Studio 11
jgit
Will not fix
Red Hat Enterprise Linux 6
git
Not affected
Red Hat Enterprise Linux 8
git
Not affected
Red Hat Enterprise Linux Atomic Host 7
git
Not affected
Red Hat Fuse 7
camel
Not affected
Red Hat JBoss A-MQ 6
jgit
Not affected
Red Hat JBoss BRMS 6
jgit
Not affected
Red Hat JBoss Data Virtualization 6
jgit
Not affected
Red Hat JBoss Fuse 6
camel
Not affected
Red Hat JBoss Fuse Integration Service 2
camel
Not affected
Red Hat JBoss Fuse Service Works 6
jgit
Not affected
Red Hat Mobile Application Platform 4
fh-scm
Not affected
Red Hat OpenShift Container Platform 3.10
source-to-image
Not affected
Red Hat OpenShift Container Platform 3.2
source-to-image
Will not fix
Red Hat OpenShift Container Platform 3.3
source-to-image
Will not fix
Red Hat OpenShift Container Platform 3.4
source-to-image
Will not fix
Red Hat OpenShift Container Platform 3.5
source-to-image
Will not fix
Red Hat OpenShift Container Platform 3.6
source-to-image
Not affected
Red Hat OpenShift Container Platform 3.7
source-to-image
Not affected
Red Hat OpenShift Container Platform 3.9
source-to-image
Not affected
Red Hat OpenShift Enterprise 3
atomic-openshift
Not affected
Red Hat OpenShift Enterprise 3.0
source-to-image
Will not fix
Red Hat OpenShift Enterprise 3.1
source-to-image
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | git-0:1.8.3.1-14.el7_5 | Fixed | RHSA-2018:1957 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-git29-git-0:2.9.3-4.el6 | Fixed | RHSA-2018:2147 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-git29-git-0:2.9.3-4.el6 | Fixed | RHSA-2018:2147 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-git29-git-0:2.9.3-4.el7 | Fixed | RHSA-2018:2147 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-git29-git-0:2.9.3-4.el7 | Fixed | RHSA-2018:2147 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-git29-git-0:2.9.3-4.el7 | Fixed | RHSA-2018:2147 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-git29-git-0:2.9.3-4.el7 | Fixed | RHSA-2018:2147 |
| JBoss Developer Studio 11 | jgit | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | git | Not affected | n/a |
| Red Hat Enterprise Linux 8 | git | Not affected | n/a |
| Red Hat Enterprise Linux Atomic Host 7 | git | Not affected | n/a |
| Red Hat Fuse 7 | camel | Not affected | n/a |
| Red Hat JBoss A-MQ 6 | jgit | Not affected | n/a |
| Red Hat JBoss BRMS 6 | jgit | Not affected | n/a |
| Red Hat JBoss Data Virtualization 6 | jgit | Not affected | n/a |
| Red Hat JBoss Fuse 6 | camel | Not affected | n/a |
| Red Hat JBoss Fuse Integration Service 2 | camel | Not affected | n/a |
| Red Hat JBoss Fuse Service Works 6 | jgit | Not affected | n/a |
| Red Hat Mobile Application Platform 4 | fh-scm | Not affected | n/a |
| Red Hat OpenShift Container Platform 3.10 | source-to-image | Not affected | n/a |
| Red Hat OpenShift Container Platform 3.2 | source-to-image | Will not fix | n/a |
| Red Hat OpenShift Container Platform 3.3 | source-to-image | Will not fix | n/a |
| Red Hat OpenShift Container Platform 3.4 | source-to-image | Will not fix | n/a |
| Red Hat OpenShift Container Platform 3.5 | source-to-image | Will not fix | n/a |
| Red Hat OpenShift Container Platform 3.6 | source-to-image | Not affected | n/a |
| Red Hat OpenShift Container Platform 3.7 | source-to-image | Not affected | n/a |
| Red Hat OpenShift Container Platform 3.9 | source-to-image | Not affected | n/a |
| Red Hat OpenShift Enterprise 3 | atomic-openshift | Not affected | n/a |
| Red Hat OpenShift Enterprise 3.0 | source-to-image | Will not fix | n/a |
| Red Hat OpenShift Enterprise 3.1 | source-to-image | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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 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.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (67 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 48.75% (0.48752) | 98.84th | v5 (v2026.06.15) |
| Sep 22, 2026 | 48.75% (0.48752) | 98.82th | v5 (v2026.06.15) |
| Sep 21, 2026 | 74.02% (0.74023) | 99.47th | v5 (v2026.06.15) |
| Sep 6, 2026 | 48.75% (0.48752) | 98.79th | v5 (v2026.06.15) |
| Sep 5, 2026 | 74.02% (0.74023) | 99.46th | v5 (v2026.06.15) |
| Aug 30, 2026 | 48.75% (0.48752) | 98.79th | v5 (v2026.06.15) |
| Aug 28, 2026 | 74.02% (0.74023) | 99.46th | v5 (v2026.06.15) |
| Aug 24, 2026 | 48.75% (0.48752) | 98.78th | v5 (v2026.06.15) |
| Aug 23, 2026 | 74.02% (0.74023) | 99.46th | v5 (v2026.06.15) |
| Jun 15, 2026 | 49.19% (0.49188) | 98.73th | v5 (v2026.06.15) |
| Mar 4, 2026 | 41.72% (0.41720) | 97.34th | v4 (v2025.03.14) |
| Mar 1, 2026 | 51.53% (0.51530) | 97.85th | v4 (v2025.03.14) |
| Feb 4, 2026 | 41.72% (0.41720) | 97.31th | v4 (v2025.03.14) |
| Feb 1, 2026 | 51.53% (0.51530) | 97.82th | v4 (v2025.03.14) |
| Jan 22, 2026 | 41.72% (0.41720) | 97.30th | v4 (v2025.03.14) |
| Jan 4, 2026 | 39.68% (0.39682) | 97.17th | v4 (v2025.03.14) |
| Jan 1, 2026 | 49.51% (0.49506) | 97.71th | v4 (v2025.03.14) |
| Dec 28, 2025 | 39.68% (0.39682) | 97.16th | v4 (v2025.03.14) |
| Dec 27, 2025 | 51.44% (0.51440) | 97.79th | v4 (v2025.03.14) |
| Dec 4, 2025 | 39.68% (0.39682) | 97.14th | v4 (v2025.03.14) |
| Dec 1, 2025 | 49.51% (0.49506) | 97.68th | v4 (v2025.03.14) |
| Nov 21, 2025 | 39.68% (0.39682) | 97.14th | v4 (v2025.03.14) |
| Nov 18, 2025 | 1.39% (0.01394) | 78.73th | v4 (v2025.03.14) |
| Nov 4, 2025 | 39.68% (0.39682) | 97.13th | v4 (v2025.03.14) |
| Nov 1, 2025 | 49.51% (0.49506) | 97.68th | v4 (v2025.03.14) |
| Oct 28, 2025 | 39.68% (0.39682) | 97.13th | v4 (v2025.03.14) |
| Oct 27, 2025 | 51.44% (0.51440) | 97.75th | v4 (v2025.03.14) |
| Oct 15, 2025 | 39.68% (0.39682) | 97.12th | v4 (v2025.03.14) |
| Oct 4, 2025 | 41.72% (0.41720) | 97.32th | v4 (v2025.03.14) |
| Oct 1, 2025 | 51.53% (0.51530) | 97.82th | v4 (v2025.03.14) |
| Sep 22, 2025 | 53.44% (0.53439) | 97.91th | v4 (v2025.03.14) |
| Sep 21, 2025 | 65.85% (0.65846) | 98.46th | v4 (v2025.03.14) |
| Aug 27, 2025 | 64.14% (0.64144) | 98.36th | v4 (v2025.03.14) |
| Aug 4, 2025 | 67.18% (0.67177) | 98.48th | v4 (v2025.03.14) |
| Jul 30, 2025 | 65.36% (0.65359) | 98.40th | v4 (v2025.03.14) |
| Mar 30, 2025 | 55.58% (0.55579) | 97.87th | v4 (v2025.03.14) |
| Mar 29, 2025 | 64.36% (0.64363) | 97.82th | v4 (v2025.03.14) |
| Mar 28, 2025 | 55.58% (0.55579) | 97.87th | v4 (v2025.03.14) |
| Mar 27, 2025 | 64.36% (0.64363) | 98.23th | v4 (v2025.03.14) |
| Mar 20, 2025 | 55.58% (0.55579) | 97.90th | v4 (v2025.03.14) |
| Mar 19, 2025 | 64.36% (0.64363) | 98.25th | v4 (v2025.03.14) |
| Mar 17, 2025 | 55.58% (0.55579) | 97.84th | v4 (v2025.03.14) |
| Dec 17, 2024 | 12.50% (0.12496) | 95.42th | v3 (v2023.03.01) |
| Dec 12, 2024 | 2.29% (0.02289) | 90.06th | v3 (v2023.03.01) |
| Jun 14, 2024 | 1.76% (0.01761) | 88.04th | v3 (v2023.03.01) |
| May 9, 2024 | 1.47% (0.01474) | 86.69th | v3 (v2023.03.01) |
| Apr 8, 2024 | 0.85% (0.00854) | 81.93th | v3 (v2023.03.01) |
| Mar 14, 2024 | 0.47% (0.00473) | 75.12th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.33% (0.00333) | 70.38th | v3 (v2023.03.01) |
| Dec 24, 2023 | 0.33% (0.00333) | 68.11th | v3 (v2023.03.01) |
| Oct 21, 2023 | 0.45% (0.00447) | 72.14th | v3 (v2023.03.01) |
| Sep 29, 2023 | 0.34% (0.00344) | 68.21th | v3 (v2023.03.01) |
| Aug 4, 2023 | 0.39% (0.00387) | 69.68th | v3 (v2023.03.01) |
| Jul 17, 2023 | 0.30% (0.00305) | 65.66th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.21% (0.00214) | 58.40th | v3 (v2023.03.01) |
| Jun 28, 2023 | 0.30% (0.00305) | 65.48th | v3 (v2023.03.01) |
| May 24, 2023 | 0.34% (0.00345) | 67.40th | v3 (v2023.03.01) |
| May 8, 2023 | 0.17% (0.00171) | 52.67th | v3 (v2023.03.01) |
| Apr 21, 2023 | 0.12% (0.00120) | 44.80th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.10% (0.00104) | 40.69th | v3 (v2023.03.01) |
| Mar 6, 2023 | 31.56% (0.31559) | 97.57th | v2 (v2022.01.01) |
| Feb 24, 2023 | 31.56% (0.31559) | 97.57th | v2 (v2022.01.01) |
| Feb 4, 2022 | 33.96% (0.33956) | 96.65th | v2 (v2022.01.01) |
| Feb 3, 2022 | 20.17% (0.20168) | 94.15th | v1 |
| Jan 6, 2022 | 20.17% (0.20168) | 94.08th | v1 |
| Sep 1, 2021 | 20.17% (0.20168) | 97.87th | v1 |
| Apr 14, 2021 | 20.17% (0.20168) | 0.00th | v1 |
References (16)
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html vendor-advisoryx_refsource_SUSE
- http://www.securityfocus.com/bid/104345 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1040991 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:1957 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:2147 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-11235 Vendor Advisory
- https://blogs.msdn.microsoft.com/devops/2018/05/29/announcing-the-may-2018-git-security-vulnerability/ x_refsource_MISCPatchTechnical DescriptionVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1583862 Issue Tracking
- https://marc.info/?l=git&m=152761328506724&w=2 x_refsource_MISCRelease NotesThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-11235
- https://security.gentoo.org/glsa/201805-13 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://usn.ubuntu.com/3671-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-11235
- https://www.debian.org/security/2018/dsa-4212 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.edwardthomson.com/blog/upgrading_git_for_cve2018_11235.html
- https://www.exploit-db.com/exploits/44822/ exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry
Change history (0)
No recorded changes yet.