CVE-2010-2227: Buffer Overflow
A flaw in the handling of the 'Transfer-Encoding' header was found. A remote attacker could trigger this flaw which would cause subsequent requests to fail or information to leak between requests. This flaw is mitigated if Tomcat is behind a proxy as the proxy should reject the invalid transfer encoding header.
This was fixed in r958977:
http://svn.apache.org/viewvc?view=revision&revision=958977
Upstream 6.0.28 corrects this flaw as noted:
http://tomcat.apache.org/security-6.html
There is no upstream indication that this has been fixed in Tomcat5, however the patches mostly apply (a few rejects) with fuzz.
Other sources
Apache Tomcat 5.5.0 through 5.5.29, 6.0.0 through 6.0.27, and 7.0.0 beta does not properly handle an invalid Transfer-Encoding header, which allows remote attackers to cause a denial of service (application outage) or obtain sensitive information via a crafted header that interferes with "recycling of a buffer."
— GitHub
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.tomcat:tomcatto a version that resolves this vulnerability.Fixed in 6.0.28 - Upgrade
Upgrade
maven/org.apache.tomcat:tomcatto a version that resolves this vulnerability.Fixed in 5.5.30 - Upgrade
Upgrade
maven/org.apache.tomcat:tomcatto a version that resolves this vulnerability.Fixed in 7.0.2 - Upgrade
Upgrade
redhat/tomcat5to a version that resolves this vulnerability.Fixed in 5.5.30 - Upgrade
Upgrade
redhat/tomcat6to a version that resolves this vulnerability.Fixed in 6.0.28 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.0.28 - Compensating control
Place Tomcat behind a proxy that rejects invalid Transfer-Encoding headers.
Event History
Frequently Asked Questions
What is the severity of CVE-2010-2227?
CVE-2010-2227 has been classified as a medium severity vulnerability due to its potential for denial of service and information disclosure.
How do I fix CVE-2010-2227?
To fix CVE-2010-2227, upgrade to Apache Tomcat versions 5.5.30, 6.0.28, or 7.0.2 or later.
Which versions of Apache Tomcat are affected by CVE-2010-2227?
The affected versions include Apache Tomcat 5.5.0 through 5.5.29, 6.0.0 through 6.0.27, and 7.0.0 beta.
What types of attacks can exploit CVE-2010-2227?
CVE-2010-2227 can be exploited to cause application outages or to obtain sensitive information through crafted Transfer-Encoding headers.
How can I determine if my Apache Tomcat server is vulnerable to CVE-2010-2227?
You can determine vulnerability by checking the version of your Apache Tomcat server against the affected versions list.