CVE-2018-1304 json
Apache Tomcat unauthorized access vulnerability
published 2018-02-28 8 y ago modified 2026-10-15 25 d ago also GHSA-6rxj-58jh-436r , EUVD-2018-0522
- cvss
- 5.9
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 17.1%
- EPSS 17.1% chance of exploitation in 30 days, percentile 97%
- public exploits
- 0
- none known
Summary
The URL pattern of "" (the empty string) which exactly maps to the context root was not correctly handled in Apache Tomcat 9.0.0.M1 to 9.0.4, 8.5.0 to 8.5.27, 8.0.0.RC1 to 8.0.49 and 7.0.0 to 7.0.84 when used as part of a security constraint definition. This caused the constraint to be ignored. It was, therefore, possible for unauthorised users to gain access to web application resources that should have been protected. Only security constraints with a URL pattern of the empty string were affected.
Patch / fix
- maven org.apache.tomcat.embed:tomcat-embed-core 7.0.86, 8.0.51, 8.5.28, 9.0.5
- tomcat7 Ubuntu 14.04 LTS 7.0.52-1ubuntu0.14
- tomcat8 Ubuntu 16.04 LTS 8.0.32-1ubuntu1.6
ubuntu advisories UBUNTU-CVE-2018-1304
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- hornetq jboss enterprise application platform 6 2.3.25-26.SP24_redhat_1.1.ep6.el7
- jbossts jboss enterprise application platform 6 1:4.17.43-1.Final_redhat_1.1.ep6.el7
- jgroups jboss enterprise application platform 6 1:3.2.18-1.Final_redhat_1.1.ep6.el7
- jbossweb jboss enterprise application platform 6 7.5.28-1.Final_redhat_1.1.ep6.el7
- picketbox jboss enterprise application platform 6 4.1.7-1.Final_redhat_1.1.ep6.el7
- jboss-as-ee jboss enterprise application platform 6 7.5.20-1.Final_redhat_1.1.ep6.el7
- lucene-solr jboss enterprise application platform 6 3.6.2-8.redhat_9.1.ep6.el7
- jboss-as-cli jboss enterprise application platform 6 7.5.20-1.Final_redhat_1.1.ep6.el7
red hat advisories RHSA-2018:1448RHSA-2018:1449RHSA-2018:1450RHSA-2018:1451RHSA-2018:0466RHSA-2019:2205
- tomcat6 SLES for SAP 11 SP4, SLES 11 SP4 6.0.53-0.57.7.1
- tomcat SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +2 more 8.0.50-29.8.2
- tomcat SLES for SAP 12 SP1, SLES 12 SP1-LTSS 8.0.53-10.35.1
- tomcat SLES 12-LTSS 7.0.90-7.23.1
suse advisories SUSE-SU-2018:3388-1SUSE-SU-2018:3261-1SUSE-SU-2018:1847-1SUSE-SU-2018:0817-1
- github.com/apache/tomcat80@9e700b9 commit
- github.com/apache/tomcat@723ea6a commit
- github.com/apache/tomcat@5af7c13 commit
- github.com/apache/tomcat@2d69fde commit
- security.netapp.com/advisory/ntap-20180706-0001/ advisory
- oracle.com/technetwork/security-advisory/cpujul2018-4258247.html advisory
- oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html advisory
- oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-1304 updated cvss 6.5
tomcat: Incorrect handling of empty string URL in security constraints can lead to unintended exposure of resources
-
Red Hat JBoss Data Grid 6 jbossweb jbossweb Red Hat JBoss Enterprise Web Server 2 tomcat7 tomcat7affected: no fix planned “Will not fix”
-
Red Hat JBoss Fuse Integration Service 2 tomcat8 tomcat8affected: no fix available
-
Red Hat JBoss Portal 6 jbossweb jbosswebaffected: no fix planned “Will not fix”
-
Red Hat OpenShift Application Runtimes tomcataffected: no fix available
-
Red Hat Enterprise Linux Client (v. 7) tomcat 7.0.76-9.el7, tomcat-servlet-3.0-api 7.0.76-9.el7 Red Hat Enterprise Linux Client Optional (v. 7) tomcat 7.0.76-9.el7, tomcat-lib 7.0.76-9.el7, tomcat-jsvc 7.0.76-9.el7, tomcat-javadoc 7.0.76-9.el7, tomcat-webapps 7.0.76-9.el7, tomcat-el-2.2-api 7.0.76-9.el7, +3 more Red Hat Enterprise Linux ComputeNode (v. 7) tomcat 7.0.76-9.el7, tomcat-servlet-3.0-api 7.0.76-9.el7 Red Hat Enterprise Linux ComputeNode Optional (v. 7) tomcat 7.0.76-9.el7, tomcat-lib 7.0.76-9.el7, tomcat-jsvc 7.0.76-9.el7, tomcat-javadoc 7.0.76-9.el7, tomcat-webapps 7.0.76-9.el7, tomcat-el-2.2-api 7.0.76-9.el7, +3 more Red Hat Enterprise Linux Server (v. 7) tomcat 7.0.76-9.el7, tomcat-lib 7.0.76-9.el7, tomcat-webapps 7.0.76-9.el7, tomcat-el-2.2-api 7.0.76-9.el7, tomcat-jsp-2.2-api 7.0.76-9.el7, tomcat-admin-webapps 7.0.76-9.el7, +1 more Red Hat Enterprise Linux Server Optional (v. 7) tomcat 7.0.76-9.el7, tomcat-lib 7.0.76-9.el7, tomcat-jsvc 7.0.76-9.el7, tomcat-javadoc 7.0.76-9.el7, tomcat-webapps 7.0.76-9.el7, tomcat-el-2.2-api 7.0.76-9.el7, +3 morefixed: vendor fix RHSA-2019:2205
+2 more productsfewer
Red Hat Enterprise Linux Workstation (v. 7) tomcat 7.0.76-9.el7, tomcat-lib 7.0.76-9.el7, tomcat-webapps 7.0.76-9.el7, tomcat-el-2.2-api 7.0.76-9.el7, tomcat-jsp-2.2-api 7.0.76-9.el7, tomcat-admin-webapps 7.0.76-9.el7, +1 more Red Hat Enterprise Linux Workstation Optional (v. 7) tomcat-jsvc 7.0.76-9.el7, tomcat-javadoc 7.0.76-9.el7, tomcat-docs-webapp 7.0.76-9.el7 -
Red Hat Fuse Intergration Services 2.0 based on Fuse 6.3 R8fixed: vendor fix RHSA-2018:2939
-
Red Hat JBoss Enterprise Application Platform 6.4fixed: vendor fix RHSA-2018:1447
-
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5 Server lucene-solr 3.6.2-8.redhat_9.1.ep6.el5, hornetq 2.3.25-26.SP24_redhat_1.1.ep6.el5, jgroups 3.2.18-1.Final_redhat_1.1.ep6.el5, jbossts 4.17.43-1.Final_redhat_1.1.ep6.el5, jbossweb 7.5.28-1.Final_redhat_1.1.ep6.el5, picketbox 4.1.7-1.Final_redhat_1.1.ep6.el5, +68 morefixed: vendor fix RHSA-2018:1450
show 6 moreshow fewer
-
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 6 Server lucene-solr 3.6.2-8.redhat_9.1.ep6.el6, hornetq 2.3.25-26.SP24_redhat_1.1.ep6.el6, jgroups 3.2.18-1.Final_redhat_1.1.ep6.el6, jbossts 4.17.43-1.Final_redhat_1.1.ep6.el6, jbossweb 7.5.28-1.Final_redhat_1.1.ep6.el6, picketbox 4.1.7-1.Final_redhat_1.1.ep6.el6, +70 morefixed: vendor fix RHSA-2018:1449
-
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 7 Server lucene-solr 3.6.2-8.redhat_9.1.ep6.el7, hornetq 2.3.25-26.SP24_redhat_1.1.ep6.el7, jgroups 3.2.18-1.Final_redhat_1.1.ep6.el7, jbossts 4.17.43-1.Final_redhat_1.1.ep6.el7, jbossweb 7.5.28-1.Final_redhat_1.1.ep6.el7, picketbox 4.1.7-1.Final_redhat_1.1.ep6.el7, +68 morefixed: vendor fix RHSA-2018:1448
-
Red Hat JBoss Web Server 3.1fixed: vendor fix RHSA-2018:0465
-
Red Hat JBoss Web Server 3.1 for RHEL 6 tomcat7 7.0.70-25.ep7.el6, tomcat8 8.0.36-29.ep7.el6, tomcat7-lib 7.0.70-25.ep7.el6, tomcat8-lib 8.0.36-29.ep7.el6, tomcat7-jsvc 7.0.70-25.ep7.el6, tomcat8-jsvc 8.0.36-29.ep7.el6, +25 more Red Hat JBoss Web Server 3.1 for RHEL 7 tomcat7 7.0.70-25.ep7.el7, tomcat8 8.0.36-29.ep7.el7, tomcat7-lib 7.0.70-25.ep7.el7, tomcat8-lib 8.0.36-29.ep7.el7, tomcat7-jsvc 7.0.70-25.ep7.el7, tomcat8-jsvc 8.0.36-29.ep7.el7, +25 morefixed: vendor fix RHSA-2018:0466
-
Red Hat Openshift Application Runtimesfixed: vendor fix RHSA-2018:1320
-
Red Hat Enterprise Linux 5 tomcat5 Red Hat Enterprise Linux 6 tomcat6, tomcat6-lib, tomcat6-log4j, tomcat6-javadoc, tomcat6-webapps, tomcat6-el-2.1-api, +4 more Red Hat Enterprise Linux 8 pki-deps:10.6/pki-servlet-container Red Hat JBoss Data Virtualization 6 jbossweb jbossweb Red Hat JBoss Enterprise Web Server 2 tomcat6, tomcat6-lib, tomcat6-log4j, tomcat6-javadoc, tomcat6-webapps, tomcat6-el-1.0-api, +5 more Red Hat JBoss Fuse 6 karaf karaf, jbossweb jbosswebnot affected: vulnerable code not present
+2 more productsfewer
Red Hat JBoss Operations Network 3 jbossweb jbossweb Red Hat Software Collections rh-java-common-tomcat-lib, rh-java-common-tomcat-javadoc, rh-java-common-tomcat-el-2.2-api, rh-java-common-tomcat-jsp-2.2-api, rh-java-common-tomcat-servlet-3.0-api
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 25 d ago
Exploit prediction
17.07% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
| GitHub | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.tomcat.embed:tomcat-embed-core | >=9.0.0, <9.0.5 >=8.5.0, <8.5.28 >=8.0.0, <8.0.51 >=7.0.0, <7.0.86 |
9.0.5 8.5.28 8.0.51 7.0.86 |
Affected products
- Apache Software Foundation Apache Tomcat
References
-
security.netapp.com
/advisory/ntap-20180706-0001/
patch, third-party-advisory
-
oracle.com
/technetwork/security-advisory/cpujul2018-4258247.html
patch, third-party-advisory
-
oracle.com
/technetwork/security-advisory/cpuoct2018-4428296.html
patch, third-party-advisory
-
oracle.com
/technetwork/security-advisory/cpuapr2019-5072813.html
web, patch, third-party-advisory
-
github.com
/apache/tomcat80/commit/9e700b93e3bf5c605267d20568a964169f9e0b79
web
-
github.com
/apache/tomcat/commit/723ea6a5bc5e7bc49e5ef84273c3b3c164a6a4fd
web
-
github.com
/apache/tomcat/commit/5af7c13cff7cc8366c5997418e820989fabb8f48
web
-
github.com
/apache/tomcat/commit/2d69fde135302e8cff984bb2131ec69f2e396964
web
-
access.redhat.com
/errata/RHSA-2018:1448
vendor-advisory, web, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1449
vendor-advisory, web, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1450
vendor-advisory, web, third-party-advisory
-
debian.org
/security/2018/dsa-4281
vendor-advisory, web, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:2939
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:0465
vendor-advisory, web, third-party-advisory
-
usn.ubuntu.com
/3665-1/
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1320
vendor-advisory, web, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1451
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:0466
vendor-advisory, web, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1447
vendor-advisory, web, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:2205
vendor-advisory
-
securityfocus.com
/bid/103170
vdb-entry, third-party-advisory
- lists.apache.org /thread.html/b1d7e2425d6fd2cebed40d318f9365b44546077e10949b01b1f8a0fb%40%3Cannounce.tomcat.apache.org%3E
-
securitytracker.com
/id/1040427
vdb-entry, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2018/03/msg00004.html
mailing-list, web, issue-tracking, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2018/07/msg00044.html
mailing-list, web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2018/06/msg00008.html
mailing-list, web, third-party-advisory
-
lists.apache.org
/thread.html/eb6efa8d59c45a7a9eff94c4b925467d3b3fec8ba7697f3daa314b04%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/343558d982879bf88ec20dbf707f8c11255f8e219e81d45c4f8d0551%40%3Cdev.tomcat.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708%40%3Cdev.tomcat.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/5c0e00fd31efc11e147bf99d0f03c00a734447d3b131ab0818644cdb%40%3Cdev.tomcat.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/b5e3f51d28cd5d9b1809f56594f2cf63dcd6a90429e16ea9f83bbedc%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/88855876c33f2f9c532ffb75bfee570ccf0b17ffa77493745af9a17a%40%3Cdev.tomcat.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/e85e83e9954f169bbb77b44baae5a33d8de878df557bb32b7f793661%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/845312a10aabbe2c499fca94003881d2c79fc993d85f34c1f5c77424%40%3Cdev.tomcat.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/1dd0a59c1295cc08ce4c9e7edae5ad2268acc9ba55adcefa0532e5ba%40%3Cdev.tomcat.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/3d19773b4cf0377db62d1e9328bf9160bf1819f04f988315086931d7%40%3Cdev.tomcat.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/6af47120905aa7d8fe12f42e8ff2284fb338ba141d3b77b8c7cb61b3%40%3Cdev.tomcat.apache.org%3E
mailing-list
-
oracle.com
/technetwork/security-advisory/cpujul2019-5072835.html
web
-
lists.apache.org
/thread.html/r6ccee4e849bc77df0840c7f853f6bd09d426f6741247da2b7429d5d9%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r3bbb800a816d0a51eccc5a228c58736960a9fffafa581a225834d97d%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/raba0fabaf4d56d4325ab2aca8814f0b30a237ab83d8106b115ee279a%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r48c1444845fe15a823e1374674bfc297d5008a5453788099ea14caf0%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
oracle.com
/security-alerts/cpuapr2020.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2018-1304
advisory
-
lists.apache.org
/thread.html/r6ccee4e849bc77df0840c7f853f6bd09d426f6741247da2b7429d5d9@%3Cdev.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/r48c1444845fe15a823e1374674bfc297d5008a5453788099ea14caf0@%3Cdev.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/r3bbb800a816d0a51eccc5a228c58736960a9fffafa581a225834d97d@%3Cdev.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/eb6efa8d59c45a7a9eff94c4b925467d3b3fec8ba7697f3daa314b04@%3Cdev.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/e85e83e9954f169bbb77b44baae5a33d8de878df557bb32b7f793661@%3Cdev.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/b5e3f51d28cd5d9b1809f56594f2cf63dcd6a90429e16ea9f83bbedc@%3Cdev.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/b1d7e2425d6fd2cebed40d318f9365b44546077e10949b01b1f8a0fb@%3Cannounce.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c@%3Cdev.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/raba0fabaf4d56d4325ab2aca8814f0b30a237ab83d8106b115ee279a@%3Cdev.tomcat.apache.org%3E
web
-
security.netapp.com
/advisory/ntap-20180706-0001
web
-
usn.ubuntu.com
/3665-1
web
-
web.archive.org
/web/20200227102806/http://www.securityfocus.com/bid/103170
web
-
web.archive.org
/web/20200516074457/http://www.securitytracker.com/id/1040427
web
Sources
- CVE List CVE-2018-1304
- GitHub Advisory GHSA-6rxj-58jh-436r
- NVD CVE-2018-1304
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.