Vulnerabilityin Apache Tomcat.
Proof of concept public (GitHub).
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.
- Upgrade org.apache.tomcat.embed:tomcat-embed-core (Maven) to 7.0.86, 8.0.51, 8.5.28, 9.0.5 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 7 Dec 2017CVE ID reserved by apache.
- 24 Feb 2018First public proof of concept on GitHub.
- 28 Feb 2018Published in the CVE List.
- 15 Oct 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other Tomcat vulnerabilities
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- security.netapp.com x_refsource_CONFIRM
- www.securityfocus.com vdb-entry, x_refsource_BID
- www.oracle.com x_refsource_CONFIRM
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- lists.apache.org x_refsource_MISC
- www.debian.org vendor-advisory, x_refsource_DEBIAN
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- usn.ubuntu.com vendor-advisory, x_refsource_UBUNTU
- www.securitytracker.com vdb-entry, x_refsource_SECTRACK
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- lists.debian.org mailing-list, x_refsource_MLIST
- www.oracle.com x_refsource_CONFIRM
- lists.debian.org mailing-list, x_refsource_MLIST
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- lists.debian.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
Patchminder. CVE-2018-1304: Vulnerability in Apache Tomcat. https://patchminder.com/cve/cve-2018-1304/ (accessed 5 December 2026).