Skip to main content

CVE-2018-8014 — Vulnerability in tomcat-embed-core — CVE Details

CRITICAL

The defaults settings for the CORS filter provided in Apache Tomcat are insecure and enable 'supportsCredentials' for all origins

Published October 17, 2018Updated March 12, 2024Source: OSV

What Should I Do?

Low-to-Moderate Risk

Exploitation probability is 20.94% in 30 days. Address in your next planned sprint.

Does your project use an affected org.apache.tomcat.embed:tomcat-embed-core version?

Paste your pom.xml to check it for CVE-2018-8014 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my pom.xml

Summary

The defaults settings for the CORS filter provided in Apache Tomcat 9.0.0.M1 to 9.0.8, 8.5.0 to 8.5.31, 8.0.0.RC1 to 8.0.52, 7.0.41 to 7.0.88 are insecure and enable 'supportsCredentials' for all origins. It is expected that users of the CORS filter will have configured it appropriately for their environment rather than using it in the default configuration. Therefore, it is expected that most users will not be impacted by this issue.

Advisory Timeline

  • First published October 17, 2018 (2962 days ago).
  • Last revised March 12, 2024 — 1973 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.tomcat.embed:tomcat-embed-core to 8.5.32 or later
<!-- Update pom.xml dependency version to 8.5.32 for org.apache.tomcat.embed:tomcat-embed-core -->
Maven
Update org.apache.tomcat.embed:tomcat-embed-core to 7.0.88 or later
<!-- Update pom.xml dependency version to 7.0.88 for org.apache.tomcat.embed:tomcat-embed-core -->
Maven
Update org.apache.tomcat.embed:tomcat-embed-core to 8.0.53 or later
<!-- Update pom.xml dependency version to 8.0.53 for org.apache.tomcat.embed:tomcat-embed-core -->
Maven
Update org.apache.tomcat.embed:tomcat-embed-core to 9.0.9 or later
<!-- Update pom.xml dependency version to 9.0.9 for org.apache.tomcat.embed:tomcat-embed-core -->

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: Maven (1).

PackageFixed In
org.apache.tomcat.embed:tomcat-embed-core Maven · Affected: 8.5.0, 8.5.11, 8.5.12, 8.5.13 (+20 more)8.5.32
org.apache.tomcat.embed:tomcat-embed-core Maven · Affected: 7.0.41, 7.0.42, 7.0.47, 7.0.50 (+28 more)7.0.88
org.apache.tomcat.embed:tomcat-embed-core Maven · Affected: 8.0.0-RC1, 8.0.0-RC10, 8.0.0-RC3, 8.0.0-RC5 (+40 more)8.0.53
org.apache.tomcat.embed:tomcat-embed-core Maven · Affected: 9.0.0.M1, 9.0.0.M10, 9.0.0.M11, 9.0.0.M13 (+22 more)9.0.9

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References

Frequently Asked Questions

What is CVE-2018-8014?
The defaults settings for the CORS filter provided in Apache Tomcat are insecure and enable 'supportsCredentials' for all origins. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2018-8014?
CVE-2018-8014 affects org.apache.tomcat.embed:tomcat-embed-core. It has a 20.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-8014 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
20.94%
EPSS percentile: 98.1

This places it in the top 5% of EPSS-scored vulnerabilities — 98.1% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.

Also Known As

GHSA-r4x2-3cq5-hqvp

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml