tomcat: Remote Code Execution via JSP Upload
Published Sep 19, 2017 ·Due Apr 15, 2022
8.1
HIGHCVSS 3.1
EPSS 99.64%
Description
When running Apache Tomcat 7.0.0 to 7.0.79 on Windows with HTTP PUTs enabled (e.g. via setting the readonly initialisation parameter of the Default to false) it was possible to upload a JSP file to the server via a specially crafted request. This JSP could then be requested and any code it contained would be executed by the server.
Affected products
-
- Version 7.0.0 to 7.0.79StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Apache Software Foundation | Apache Tomcat | n/a |
|
Configuration 1
Configuration 2
- n/a
- n/a
- n/a
Configuration 3
- 7.4
- 7.6
- 7.7
- 2.0.0
- 3.0.0
- n/a
- 6.0
- 7.0
- 7.4
- 7.5
- 7.6
- 7.7
- 7.4
- 7.5
- 7.6
- 7.7
- 7.0_s390x
- 7.4_s390x
- 7.5_s390x
- 7.6_s390x
- 7.7_s390x
- 7.0_ppc64
- 7.4_ppc64
- 7.5_ppc64
- 7.6_ppc64
- 7.7_ppc64
- 7.0_ppc64le
- 7.4_ppc64le
- 7.5_ppc64le
- 7.6_ppc64le
- 7.7_ppc64le
- 7.0
- 6.0
- 7.0
- 7.4
- 7.6
- 7.7
- 7.4_ppc64le
- 7.6_ppc64le
- 7.7_ppc64le
- 9.2_ppc64le
- 7.4
- 7.6
- 7.7
- 6.0
- 7.0
No data.
Red Hat Enterprise Linux 6
tomcat6-0:6.0.24-111.el6_9
Fixed · RHSA-2017:3080
Red Hat Enterprise Linux 7
tomcat-0:7.0.76-3.el7_4
Fixed · RHSA-2017:3081
Red Hat JBoss Enterprise Web Server 2 for RHEL 6
httpd-0:2.2.26-57.ep6.el6
Fixed · RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 6
jbcs-httpd24-openssl-1:1.0.2h-14.jbcs.el6
Fixed · RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 6
mod_cluster-native-0:1.2.13-9.Final_redhat_2.ep6.el6
Fixed · RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 6
tomcat6-0:6.0.41-19_patch_04.ep6.el6
Fixed · RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 6
tomcat7-0:7.0.54-28_patch_05.ep6.el6
Fixed · RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 7
httpd22-0:2.2.26-58.ep6.el7
Fixed · RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 7
jbcs-httpd24-openssl-1:1.0.2h-14.jbcs.el7
Fixed · RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 7
mod_cluster-native-0:1.2.13-9.Final_redhat_2.ep6.el7
Fixed · RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 7
tomcat6-0:6.0.41-19_patch_04.ep6.el7
Fixed · RHSA-2017:3113
Red Hat JBoss Enterprise Web Server 2 for RHEL 7
tomcat7-0:7.0.54-28_patch_05.ep6.el7
Fixed · RHSA-2017:3113
Red Hat JBoss Web Server 2.1
tomcat6
Fixed · RHSA-2017:3114
Red Hat JBoss Web Server 2.1
tomcat7
Fixed · RHSA-2017:3114
Red Hat JBoss Web Server 3 for RHEL 6
mod_cluster-0:1.3.8-2.Final_redhat_2.1.ep7.el6
Fixed · RHSA-2018:0466
Red Hat JBoss Web Server 3 for RHEL 6
tomcat-native-0:1.2.8-11.redhat_11.ep7.el6
Fixed · RHSA-2018:0466
Red Hat JBoss Web Server 3 for RHEL 6
tomcat-vault-0:1.1.6-1.Final_redhat_1.1.ep7.el6
Fixed · RHSA-2018:0466
Red Hat JBoss Web Server 3 for RHEL 6
tomcat7-0:7.0.70-25.ep7.el6
Fixed · RHSA-2018:0466
Red Hat JBoss Web Server 3 for RHEL 6
tomcat8-0:8.0.36-29.ep7.el6
Fixed · RHSA-2018:0466
Red Hat JBoss Web Server 3 for RHEL 7
mod_cluster-0:1.3.8-2.Final_redhat_2.1.ep7.el7
Fixed · RHSA-2018:0466
Red Hat JBoss Web Server 3 for RHEL 7
tomcat-native-0:1.2.8-11.redhat_11.ep7.el7
Fixed · RHSA-2018:0466
Red Hat JBoss Web Server 3 for RHEL 7
tomcat-vault-0:1.1.6-1.Final_redhat_1.1.ep7.el7
Fixed · RHSA-2018:0466
Red Hat JBoss Web Server 3 for RHEL 7
tomcat7-0:7.0.70-25.ep7.el7
Fixed · RHSA-2018:0466
Red Hat JBoss Web Server 3 for RHEL 7
tomcat8-0:8.0.36-29.ep7.el7
Fixed · RHSA-2018:0466
Red Hat JBoss Web Server 3.1
n/a
Fixed · RHSA-2018:0465
Red Hat JBoss Data Grid 6
jbossweb
Not affected
Red Hat JBoss Data Virtualization 6
jbossweb
Not affected
Red Hat JBoss Enterprise Application Platform 6
jbossweb
Not affected
Red Hat JBoss Fuse 6
jbossweb
Not affected
Red Hat JBoss Operations Network 3
jbossweb
Not affected
Red Hat JBoss Portal 6
jbossweb
Not affected
Red Hat Software Collections
rh-java-common-tomcat
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | tomcat6-0:6.0.24-111.el6_9 | Fixed | RHSA-2017:3080 |
| Red Hat Enterprise Linux 7 | tomcat-0:7.0.76-3.el7_4 | Fixed | RHSA-2017:3081 |
| Red Hat JBoss Enterprise Web Server 2 for RHEL 6 | httpd-0:2.2.26-57.ep6.el6 | Fixed | RHSA-2017:3113 |
| Red Hat JBoss Enterprise Web Server 2 for RHEL 6 | jbcs-httpd24-openssl-1:1.0.2h-14.jbcs.el6 | Fixed | RHSA-2017:3113 |
| Red Hat JBoss Enterprise Web Server 2 for RHEL 6 | mod_cluster-native-0:1.2.13-9.Final_redhat_2.ep6.el6 | Fixed | RHSA-2017:3113 |
| Red Hat JBoss Enterprise Web Server 2 for RHEL 6 | tomcat6-0:6.0.41-19_patch_04.ep6.el6 | Fixed | RHSA-2017:3113 |
| Red Hat JBoss Enterprise Web Server 2 for RHEL 6 | tomcat7-0:7.0.54-28_patch_05.ep6.el6 | Fixed | RHSA-2017:3113 |
| Red Hat JBoss Enterprise Web Server 2 for RHEL 7 | httpd22-0:2.2.26-58.ep6.el7 | Fixed | RHSA-2017:3113 |
| Red Hat JBoss Enterprise Web Server 2 for RHEL 7 | jbcs-httpd24-openssl-1:1.0.2h-14.jbcs.el7 | Fixed | RHSA-2017:3113 |
| Red Hat JBoss Enterprise Web Server 2 for RHEL 7 | mod_cluster-native-0:1.2.13-9.Final_redhat_2.ep6.el7 | Fixed | RHSA-2017:3113 |
| Red Hat JBoss Enterprise Web Server 2 for RHEL 7 | tomcat6-0:6.0.41-19_patch_04.ep6.el7 | Fixed | RHSA-2017:3113 |
| Red Hat JBoss Enterprise Web Server 2 for RHEL 7 | tomcat7-0:7.0.54-28_patch_05.ep6.el7 | Fixed | RHSA-2017:3113 |
| Red Hat JBoss Web Server 2.1 | tomcat6 | Fixed | RHSA-2017:3114 |
| Red Hat JBoss Web Server 2.1 | tomcat7 | Fixed | RHSA-2017:3114 |
| Red Hat JBoss Web Server 3 for RHEL 6 | mod_cluster-0:1.3.8-2.Final_redhat_2.1.ep7.el6 | Fixed | RHSA-2018:0466 |
| Red Hat JBoss Web Server 3 for RHEL 6 | tomcat-native-0:1.2.8-11.redhat_11.ep7.el6 | Fixed | RHSA-2018:0466 |
| Red Hat JBoss Web Server 3 for RHEL 6 | tomcat-vault-0:1.1.6-1.Final_redhat_1.1.ep7.el6 | Fixed | RHSA-2018:0466 |
| Red Hat JBoss Web Server 3 for RHEL 6 | tomcat7-0:7.0.70-25.ep7.el6 | Fixed | RHSA-2018:0466 |
| Red Hat JBoss Web Server 3 for RHEL 6 | tomcat8-0:8.0.36-29.ep7.el6 | Fixed | RHSA-2018:0466 |
| Red Hat JBoss Web Server 3 for RHEL 7 | mod_cluster-0:1.3.8-2.Final_redhat_2.1.ep7.el7 | Fixed | RHSA-2018:0466 |
| Red Hat JBoss Web Server 3 for RHEL 7 | tomcat-native-0:1.2.8-11.redhat_11.ep7.el7 | Fixed | RHSA-2018:0466 |
| Red Hat JBoss Web Server 3 for RHEL 7 | tomcat-vault-0:1.1.6-1.Final_redhat_1.1.ep7.el7 | Fixed | RHSA-2018:0466 |
| Red Hat JBoss Web Server 3 for RHEL 7 | tomcat7-0:7.0.70-25.ep7.el7 | Fixed | RHSA-2018:0466 |
| Red Hat JBoss Web Server 3 for RHEL 7 | tomcat8-0:8.0.36-29.ep7.el7 | Fixed | RHSA-2018:0466 |
| Red Hat JBoss Web Server 3.1 | n/a | Fixed | RHSA-2018:0465 |
| Red Hat JBoss Data Grid 6 | jbossweb | Not affected | n/a |
| Red Hat JBoss Data Virtualization 6 | jbossweb | Not affected | n/a |
| Red Hat JBoss Enterprise Application Platform 6 | jbossweb | Not affected | n/a |
| Red Hat JBoss Fuse 6 | jbossweb | Not affected | n/a |
| Red Hat JBoss Operations Network 3 | jbossweb | Not affected | n/a |
| Red Hat JBoss Portal 6 | jbossweb | Not affected | n/a |
| Red Hat Software Collections | rh-java-common-tomcat | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This flaw affects Tomcat on Red Hat Enterprise Linux only when a specific context is configured with readonly=false. The default configuration has a readonly context, so it is not affected.
Red Hat mitigation
Ensure that readonly is set to true (the default) for the DefaultServlet, WebDAV servlet or application context. Block HTTP methods that permit resource modification for untrusted users.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:P/I:P/A:P
Date Added
Mar 25, 2022
Patch Due
Apr 15, 2022
Required Action
Apply updates per vendor instructions.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
ActiveAutomatable
NoTechnical Impact
TotalDecision
n/aAssessed Feb 6, 2025 · SSVC 2.0.3
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 (18 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 99.64% (0.99641) | 99.95th | v5 (v2026.06.15) |
| Jun 15, 2026 | 99.61% (0.99607) | 99.94th | v5 (v2026.06.15) |
| Mar 17, 2025 | 94.36% (0.94360) | 99.95th | v4 (v2025.03.14) |
| Dec 12, 2024 | 97.21% (0.97208) | 99.87th | v3 (v2023.03.01) |
| Jul 17, 2024 | 97.21% (0.97208) | 99.84th | v3 (v2023.03.01) |
| Apr 22, 2024 | 96.73% (0.96728) | 99.65th | v3 (v2023.03.01) |
| Feb 4, 2024 | 96.88% (0.96878) | 99.65th | v3 (v2023.03.01) |
| Dec 24, 2023 | 96.86% (0.96859) | 99.63th | v3 (v2023.03.01) |
| Nov 15, 2023 | 96.92% (0.96923) | 99.64th | v3 (v2023.03.01) |
| Nov 8, 2023 | 96.84% (0.96837) | 99.60th | v3 (v2023.03.01) |
| May 8, 2023 | 97.50% (0.97499) | 99.95th | v3 (v2023.03.01) |
| Mar 22, 2023 | 97.45% (0.97453) | 99.91th | v3 (v2023.03.01) |
| Mar 7, 2023 | 97.45% (0.97446) | 99.89th | v3 (v2023.03.01) |
| Mar 6, 2023 | 92.48% (0.92481) | 99.91th | v2 (v2022.01.01) |
| Feb 4, 2022 | 92.48% (0.92481) | 99.89th | v2 (v2022.01.01) |
| Feb 3, 2022 | 86.76% (0.86759) | 99.91th | v1 |
| Sep 1, 2021 | 86.76% (0.86759) | 99.96th | v1 |
| Apr 14, 2021 | 86.76% (0.86759) | 0.00th | v1 |
References (33)
- http://breaktoprotect.blogspot.com/2017/09/the-case-of-cve-2017-12615-tomcat-7-put.html x_refsource_MISCExploit
- http://www.securityfocus.com/bid/100901 vdb-entryx_refsource_BIDBroken LinkThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1039392 vdb-entryx_refsource_SECTRACKBroken LinkThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2017:3080 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:3081 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:3113 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:3114 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0465 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0466 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2017-12615 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1493220 Issue Tracking
- https://github.com/advisories/GHSA-pjfr-qf3p-3q25 Advisory
- https://github.com/breaktoprotect/CVE-2017-12615 x_refsource_MISCExploitThird Party Advisory
- https://lists.apache.org/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708%40%3Cdev.tomcat.apache.org%3E mailing-listx_refsource_MLISTMailing ListPatch
- https://lists.apache.org/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708@%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/3d19773b4cf0377db62d1e9328bf9160bf1819f04f988315086931d7%40%3Cdev.tomcat.apache.org%3E mailing-listx_refsource_MLISTMailing ListPatch
- https://lists.apache.org/thread.html/3d19773b4cf0377db62d1e9328bf9160bf1819f04f988315086931d7@%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/845312a10aabbe2c499fca94003881d2c79fc993d85f34c1f5c77424%40%3Cdev.tomcat.apache.org%3E mailing-listx_refsource_MLISTMailing ListPatch
- https://lists.apache.org/thread.html/845312a10aabbe2c499fca94003881d2c79fc993d85f34c1f5c77424@%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/8fcb1e2d5895413abcf266f011b9918ae03e0b7daceb118ffbf23f8c%40%3Cannounce.tomcat.apache.org%3E mailing-listx_refsource_MLISTIssue TrackingMailing List
- https://lists.apache.org/thread.html/8fcb1e2d5895413abcf266f011b9918ae03e0b7daceb118ffbf23f8c@%3Cannounce.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r6d03e45b81eab03580cf7f8bb51cb3e9a1b10a2cc0c6a2d3cc92ed0c%40%3Cannounce.apache.org%3E mailing-listx_refsource_MLISTMailing List
- https://lists.apache.org/thread.html/r6d03e45b81eab03580cf7f8bb51cb3e9a1b10a2cc0c6a2d3cc92ed0c@%3Cannounce.apache.org%3E
- https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c%40%3Cdev.tomcat.apache.org%3E mailing-listx_refsource_MLISTMailing ListPatch
- https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c@%3Cdev.tomcat.apache.org%3E
- https://nvd.nist.gov/vuln/detail/CVE-2017-12615
- https://security.netapp.com/advisory/ntap-20171018-0001 x_refsource_CONFIRMThird Party Advisory
- https://tomcat.apache.org/security-7.html#Fixed_in_Apache_Tomcat_7.0.81
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-12615 government-resourceUS Government Resource
- https://www.cve.org/CVERecord?id=CVE-2017-12615
- https://www.exploit-db.com/exploits/42953 exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry
- https://www.synology.com/support/security/Synology_SA_17_54_Tomcat x_refsource_CONFIRMThird Party Advisory
Change history (0)
No recorded changes yet.