CVE-2012-5886 Improper Authentication in Apache Tomcat
Remote attackers can bypass authentication in Apache Tomcat by exploiting session state caching in HTTP Digest Access Authentication.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2012-5886?
CVE-2012-5886 is a medium-severity authentication bypass vulnerability in Apache Tomcat, published on 17 Nov 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The HTTP Digest Access Authentication implementation in Apache Tomcat 5.5.x before 5.5.36, 6.x before 6.0.36, and 7.x before 7.0.30 caches information about the authenticated user within the session state, which makes it easier for remote attackers to bypass authentication via vectors related to the session ID.
Weakness: CWE-287
Which versions are affected by CVE-2012-5886?
6 open source packages ship an affected version, including org.apache.tomcat:tomcat-catalina. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.tomcat:tomcat-catalina Maven | From 5.5.0 | 5.5.36 |
org.apache.tomcat:tomcat-catalina Maven | From 5.5.0 | 5.5.36 |
org.apache.tomcat:tomcat-catalina Maven | From 6.0.0 | 6.0.36 |
org.apache.tomcat:tomcat-catalina Maven | From 6.0.0 | 6.0.36 |
org.apache.tomcat:tomcat-catalina Maven | From 7.0.0 | 7.0.30 |
org.apache.tomcat:tomcat-catalina Maven | From 7.0.0 | 7.0.30 |
Products include Apache Tomcat.
How do I fix CVE-2012-5886?
Upgrade org.apache.tomcat:tomcat-catalina to a fixed version for your release line: 5.5.36, 6.0.36 or 7.0.30.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2012-5886 being exploited?
There is no known exploitation of CVE-2012-5886 in the wild and no public exploit code.
Other vulnerabilities in Apache Tomcat
Sources
Also known as GHSA-9xrj-439h-62hg.