CVE-2017-5648 Exposure of Resource to Wrong Sphere in Apache Tomcat

Critical 9.1 Published Updated

Untrusted applications can access or modify other web applications' data when running under a SecurityManager due to missing facade objects.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-5648?

CVE-2017-5648 is a critical vulnerability in Apache Tomcat, published on 17 Apr 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

While investigating bug 60718, it was noticed that some calls to application listeners in Apache Tomcat 9.0.0.M1 to 9.0.0.M17, 8.5.0 to 8.5.11, 8.0.0.RC1 to 8.0.41, and 7.0.0 to 7.0.75 did not use the appropriate facade object. When running an untrusted application under a SecurityManager, it was therefore possible for that untrusted application to retain a reference to the request or response object and thereby access and/or modify information associated with another web application.

Weakness: CWE-668

Which versions are affected by CVE-2017-5648?

16 open source packages ship an affected version, including org.apache.tomcat.embed:tomcat-embed-core and org.apache.tomcat:tomcat-catalina. It affects 1 product.

PackageAffectedFixed in
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 7.0.07.0.76
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 7.0.07.0.76
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 8.0.08.0.42
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 8.0.08.0.42
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 8.5.08.5.13
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 8.5.08.5.13
10 more packages
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 9.0.0.M19.0.0.M18
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 9.0.0.M19.0.0.M18
org.apache.tomcat:tomcat-catalina MavenFrom 7.0.07.0.76
org.apache.tomcat:tomcat-catalina MavenFrom 7.0.07.0.76
org.apache.tomcat:tomcat-catalina MavenFrom 8.0.08.0.42
org.apache.tomcat:tomcat-catalina MavenFrom 8.0.08.0.42
org.apache.tomcat:tomcat-catalina MavenFrom 8.5.08.5.13
org.apache.tomcat:tomcat-catalina MavenFrom 8.5.08.5.13
org.apache.tomcat:tomcat-catalina MavenFrom 9.0.0.M19.0.0.M18
org.apache.tomcat:tomcat-catalina MavenFrom 9.0.0.M19.0.0.M18

Products include Apache Tomcat.

How do I fix CVE-2017-5648?

Upgrade org.apache.tomcat.embed:tomcat-embed-core to a fixed version for your release line: 7.0.76, 8.0.42, 8.5.13 or 9.0.0.M18.

Is CVE-2017-5648 being exploited?

There is no known exploitation of CVE-2017-5648 in the wild and no public exploit code.

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-3vx3-xf6q-r5xp, UBUNTU-CVE-2017-5648.

Is CVE-2017-5648 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free