cve.bz

CVE-2018-1304

5.9 mediumEPSS 17%Fix available

Medium (5.9). EPSS 17% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tomcat.embed:tomcat-embed-core 7.0.86, 8.0.51, 8.5.28.

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

Severity

CVSS 3.0

5.9 medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
17% (unchanged from 17% a week ago; 17% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
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-1304 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-1304?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-1304?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-1304 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.

Badge for a README or a site

CVE-2018-1304

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2018-1304](https://cve.bz/cve/badge/CVE-2018-1304.svg)](https://cve.bz/cve/CVE-2018-1304)

HTML:

<a href="https://cve.bz/cve/CVE-2018-1304"><img src="https://cve.bz/cve/badge/CVE-2018-1304.svg" alt="CVE-2018-1304"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:tomcatfrom 7.0.0 through 7.0.84
apache:tomcatfrom 8.0.0 through 8.0.49
apache:tomcatfrom 8.5.0 through 8.5.27
apache:tomcatfrom 9.0.0 through 9.0.4
apache:tomcat8.0.0:rc1
apache:tomcat9.0.0:milestone1
apache:tomcat9.0.0:milestone10
apache:tomcat9.0.0:milestone11
apache:tomcat9.0.0:milestone12
apache:tomcat9.0.0:milestone13
apache:tomcat9.0.0:milestone14
apache:tomcat9.0.0:milestone15
apache:tomcat9.0.0:milestone16
apache:tomcat9.0.0:milestone17
apache:tomcat9.0.0:milestone18
apache:tomcat9.0.0:milestone19
apache:tomcat9.0.0:milestone2
apache:tomcat9.0.0:milestone20
apache:tomcat9.0.0:milestone21
apache:tomcat9.0.0:milestone22
apache:tomcat9.0.0:milestone23
apache:tomcat9.0.0:milestone24
apache:tomcat9.0.0:milestone25
apache:tomcat9.0.0:milestone26
apache:tomcat9.0.0:milestone27
apache:tomcat9.0.0:milestone3
apache:tomcat9.0.0:milestone4
apache:tomcat9.0.0:milestone5
apache:tomcat9.0.0:milestone6
apache:tomcat9.0.0:milestone7
apache:tomcat9.0.0:milestone8
apache:tomcat9.0.0:milestone9
redhat:jboss_enterprise_application_platform6
redhat:jboss_enterprise_application_platform6.4
redhat:jboss_enterprise_web_server3.0.0
debian:debian_linux7.0
debian:debian_linux8.0
debian:debian_linux9.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
canonical:ubuntu_linux18.04
oracle:fusion_middleware12.2.1.3.0
oracle:hospitality_guest_access4.2.0
oracle:hospitality_guest_access4.2.1
oracle:micros_relate_crm_software11.4
oracle:secure_global_desktop5.3
oracle:secure_global_desktop5.4
redhat:jboss_middleware1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6rxj-58jh-436rMavenorg.apache.tomcat.embed:tomcat-embed-core>=9.0.0 <9.0.59.0.5
GHSA-6rxj-58jh-436rMavenorg.apache.tomcat.embed:tomcat-embed-core>=8.5.0 <8.5.288.5.28
GHSA-6rxj-58jh-436rMavenorg.apache.tomcat.embed:tomcat-embed-core>=8.0.0 <8.0.518.0.51
GHSA-6rxj-58jh-436rMavenorg.apache.tomcat.embed:tomcat-embed-core>=7.0.0 <7.0.867.0.86

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7tomcat77.0.28-4+deb7u18DLA-1301-1
Debian8tomcat77.0.56-3+really7.0.88-1DLA-1400-1
Debian8tomcat88.0.14-1+deb8u12DLA-1450-1
Debian9tomcat88.5.14-1+deb9u3DSA-4281-1
Ubuntu14.04:LTStomcat77.0.52-1ubuntu0.14UBUNTU-CVE-2018-1304 USN-3665-1
Ubuntu16.04:LTStomcat88.0.32-1ubuntu1.6UBUNTU-CVE-2018-1304 USN-3665-1
Ubuntu18.04:LTStomcat88.5.30-1ubuntu1.2USN-3665-1
UbuntuPro:16.04:LTStomcat7no fix listedUBUNTU-CVE-2018-1304
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moretomcat, tomcat-lib, tomcat-jsvc and 7 more0:7.0.76-9.el7RHSA-2019:2205
Red Hatjboss_enterprise_application_platform:6::el5codehaus-jackson, codehaus-jackson-xc, codehaus-jackson-jaxrs and 2 more0:1.9.9-12.redhat_6.1.ep6.el5RHSA-2018:1450
Red Hatjboss_enterprise_application_platform:6::el5hornetq0:2.3.25-26.SP24_redhat_1.1.ep6.el5RHSA-2018:1450
Red Hatjboss_enterprise_application_platform:6::el5jboss-as-ee, jboss-as-cli, jboss-as-cmp and 60 more0:7.5.20-1.Final_redhat_1.1.ep6.el5RHSA-2018:1450
Red Hatjboss_enterprise_application_platform:6::el5jbossts1:4.17.43-1.Final_redhat_1.1.ep6.el5RHSA-2018:1450
Red Hatjboss_enterprise_application_platform:6::el5jbossweb0:7.5.28-1.Final_redhat_1.1.ep6.el5RHSA-2018:1450
Red Hatjboss_enterprise_application_platform:6::el5jgroups1:3.2.18-1.Final_redhat_1.1.ep6.el5RHSA-2018:1450
Red Hatjboss_enterprise_application_platform:6::el5lucene-solr0:3.6.2-8.redhat_9.1.ep6.el5RHSA-2018:1450
Red Hatjboss_enterprise_application_platform:6::el5picketbox0:4.1.7-1.Final_redhat_1.1.ep6.el5RHSA-2018:1450
Red Hatjboss_enterprise_application_platform:6::el6codehaus-jackson, codehaus-jackson-xc, codehaus-jackson-jaxrs and 2 more0:1.9.9-12.redhat_6.1.ep6.el6RHSA-2018:1449
Red Hatjboss_enterprise_application_platform:6::el6hornetq0:2.3.25-26.SP24_redhat_1.1.ep6.el6RHSA-2018:1449
Red Hatjboss_enterprise_application_platform:6::el6jboss-as-ee, jboss-as-cli, jboss-as-cmp and 60 more0:7.5.20-1.Final_redhat_1.1.ep6.el6RHSA-2018:1449
24 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4tomcat66.0.53-0.57.7.1SUSE-SU-2018:1847-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server for SAP Applications 12 SP1tomcat8.0.53-10.35.1SUSE-SU-2018:3388-1
SUSELinux Enterprise Server 12 SP2, Linux Enterprise Server 12 SP3, Linux Enterprise Server for Raspberry Pi 12 SP2 and 2 moretomcat8.0.50-29.8.2SUSE-SU-2018:0817-1
SUSELinux Enterprise Server 12-LTSStomcat7.0.90-7.23.1SUSE-SU-2018:3261-1

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7tomcat-0:7.0.76-9.el7Fixed 2019-08-06RHSA-2019:2205
Red Hat Fuse Intergration Services 2.0 based on Fuse 6.3 R8Fixed 2018-10-17RHSA-2018:2939
Red Hat JBoss Enterprise Application Platform 6.4jbosswebFixed 2018-05-14RHSA-2018:1447
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5codehaus-jackson-0:1.9.9-12.redhat_6.1.ep6.el5Fixed 2018-05-14RHSA-2018:1450
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5hornetq-0:2.3.25-26.SP24_redhat_1.1.ep6.el5Fixed 2018-05-14RHSA-2018:1450
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jboss-as-appclient-0:7.5.20-1.Final_redhat_1.1.ep6.el5Fixed 2018-05-14RHSA-2018:1450
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jbossas-appclient-0:7.5.20-1.Final_redhat_1.1.ep6.el5Fixed 2018-05-14RHSA-2018:1450
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jbossas-bundles-0:7.5.20-1.Final_redhat_1.1.ep6.el5Fixed 2018-05-14RHSA-2018:1450
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jboss-as-cli-0:7.5.20-1.Final_redhat_1.1.ep6.el5Fixed 2018-05-14RHSA-2018:1450
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jboss-as-client-all-0:7.5.20-1.Final_redhat_1.1.ep6.el5Fixed 2018-05-14RHSA-2018:1450
Red Hat Enterprise Linux 5tomcat5Not affected
Red Hat Enterprise Linux 6tomcat6Not affected
Red Hat Enterprise Linux 8pki-deps:10.6/pki-servlet-containerNot affected
Red Hat JBoss Data Grid 6jbosswebWill not fix
Red Hat JBoss Data Virtualization 6jbosswebNot affected
Red Hat JBoss Enterprise Web Server 2tomcat6Not affected
Red Hat JBoss Enterprise Web Server 2tomcat7Will not fix
Red Hat JBoss Fuse 6jbosswebNot affected
Red Hat JBoss Fuse 6karafNot affected
Red Hat JBoss Fuse Integration Service 2tomcat8Affected
220 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-1304.

References

Check your stackJSON