Loading...
Skip to main content

CVE-2018-8014

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

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.

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, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

PackageEcosystemAffectedFixed In
org.apache.tomcat.embed:tomcat-embed-core
maven
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
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
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
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. 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

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-r4x2-3cq5-hqvp

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies