patchminder
Proof of concept · GitHub CVE-2018-1304

Vulnerabilityin Apache Tomcat.

Published 28 Feb 2018 · Updated 15 Oct 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Medium 5.9
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 17.1% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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.

What to do now
  • 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.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Apache Tomcat
Not confirmed
Not confirmed
CVE record
org.apache.tomcat.embed:tomcat-embed-core (Maven)
9.0.0 to before 9.0.5
9.0.5
GitHub advisory
org.apache.tomcat.embed:tomcat-embed-core (Maven)
8.5.0 to before 8.5.28
8.5.28
GitHub advisory
org.apache.tomcat.embed:tomcat-embed-core (Maven)
8.0.0 to before 8.0.51
8.0.51
GitHub advisory
org.apache.tomcat.embed:tomcat-embed-core (Maven)
7.0.0 to before 7.0.86
7.0.86
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 7 Dec 2017
    CVE ID reserved by apache.
  2. 24 Feb 2018
    First public proof of concept on GitHub.
  3. 28 Feb 2018
    Published in the CVE List.
  4. 15 Oct 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
2 repositories
GitHubno warning signs foundknqyf263/CVE-2018-13043 stars · created 24 Feb 2018
GitHubno warning signs foundthariyarox/tomcat_CVE-2018-1304_testing0 stars · created 8 Mar 2018

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.

Related

Other Tomcat vulnerabilities

References
Cite this page

Patchminder. CVE-2018-1304: Vulnerability in Apache Tomcat. https://patchminder.com/cve/cve-2018-1304/ (accessed 5 December 2026).