CVE-2012-5886: Medium severity Apache Tomcat vulnerability
Multiple weaknesses were found in Tomcat's DIGEST authentication implementation. This flaw affects all versions up to Tomcat 5.5.35 [1], tomcat 6.0.35 [2] and 7.0.29 [3].
Summary from Tomcat's security pages: 1) Tomcat tracked client rather than server nonces and nonce count. 2) When a session ID was present, authentication was bypassed. 3) The user name and password were not checked before when indicating that a nonce was stale.
Relevant upstream pathes are: Tomcat 5: http://svn.apache.org/viewvc?view=rev&rev=1392248 Tomcat 6: http://svn.apache.org/viewvc?view=rev&rev=1380829 Tomcat 7: http://svn.apache.org/viewvc?view=rev&rev=1377807
[1] http://tomcat.apache.org/security-5.html#FixedinApacheTomcat5.5.36 [2] http://tomcat.apache.org/security-6.html#FixedinApacheTomcat6.0.36 [3] http://tomcat.apache.org/security-7.html#FixedinApacheTomcat7.0.30
Other sources
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.tomcat:tomcat-catalinato a version that resolves this vulnerability.Fixed in 7.0.30 - Upgrade
Upgrade
maven/org.apache.tomcat:tomcat-catalinato a version that resolves this vulnerability.Fixed in 6.0.36 - Upgrade
Upgrade
maven/org.apache.tomcat:tomcat-catalinato a version that resolves this vulnerability.Fixed in 5.5.36 - Upgrade
Upgrade
redhat/Apache Tomcatto a version that resolves this vulnerability.Fixed in 5.5.36 - Upgrade
Upgrade
redhat/Apache Tomcatto a version that resolves this vulnerability.Fixed in 6.0.36 - Upgrade
Upgrade
redhat/Apache Tomcatto a version that resolves this vulnerability.Fixed in 7.0.30 - Upgrade
Upgrade
Apache Tomcat 5.5.xto a version that resolves this vulnerability.Fixed in 5.5.36 - Upgrade
Upgrade
Apache Tomcat 6.xto a version that resolves this vulnerability.Fixed in 6.0.36 - Upgrade
Upgrade
Apache Tomcat 7.xto a version that resolves this vulnerability.Fixed in 7.0.30
Event History
Frequently Asked Questions
What is the severity of CVE-2012-5886?
CVE-2012-5886 is classified as a medium-severity vulnerability.
How do I fix CVE-2012-5886?
To fix CVE-2012-5886, upgrade Apache Tomcat to versions 5.5.36, 6.0.36, or 7.0.30 or later.
What types of Apache Tomcat versions are affected by CVE-2012-5886?
CVE-2012-5886 affects Apache Tomcat versions before 5.5.36, 6.0.36, and 7.0.30.
Can exploitation of CVE-2012-5886 lead to unauthorized access?
Yes, exploitation of CVE-2012-5886 can allow unauthorized users to bypass authentication.
What browsers or clients are impacted by CVE-2012-5886?
CVE-2012-5886 impacts any client that uses HTTP Digest Access Authentication with vulnerable versions of Tomcat.