CVE-2010-2227: Buffer Overflow

Published Jul 9, 2010
·
Updated

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

60 affected componentsFixes available
maven/org.apache.tomcat:tomcat>=6.0.0<6.0.28
6.0.28
maven/org.apache.tomcat:tomcat>=5.5.0<5.5.30
5.5.30
maven/org.apache.tomcat:tomcat>=7.0.0<7.0.2
7.0.2
Apache Tomcat=5.5.0
Apache Tomcat=5.5.1
Apache Tomcat=5.5.2
Apache Tomcat=5.5.3
Apache Tomcat=5.5.4
Apache Tomcat=5.5.5
Apache Tomcat=5.5.6
Apache Tomcat=5.5.7
Apache Tomcat=5.5.8
Apache Tomcat=5.5.9
Apache Tomcat=5.5.10
Apache Tomcat=5.5.11
Apache Tomcat=5.5.12
Apache Tomcat=5.5.13
Apache Tomcat=5.5.14
Apache Tomcat=5.5.15
Apache Tomcat=5.5.16
Apache Tomcat=5.5.17
Apache Tomcat=5.5.18
Apache Tomcat=5.5.19
Apache Tomcat=5.5.20
Apache Tomcat=5.5.21
Apache Tomcat=5.5.22
Apache Tomcat=5.5.23
Apache Tomcat=5.5.24
Apache Tomcat=5.5.25
Apache Tomcat=5.5.26
Apache Tomcat=5.5.27
Apache Tomcat=5.5.28
Apache Tomcat=5.5.29
Apache Tomcat=6.0.0
Apache Tomcat=6.0.1
Apache Tomcat=6.0.2
Apache Tomcat=6.0.3
Apache Tomcat=6.0.4
Apache Tomcat=6.0.5
Apache Tomcat=6.0.6
Apache Tomcat=6.0.7
Apache Tomcat=6.0.8
Apache Tomcat=6.0.9
Apache Tomcat=6.0.10
Apache Tomcat=6.0.11
Apache Tomcat=6.0.12
Apache Tomcat=6.0.13
Apache Tomcat=6.0.14
Apache Tomcat=6.0.15
Apache Tomcat=6.0.16
Apache Tomcat=6.0.17
Apache Tomcat=6.0.18
Apache Tomcat=6.0.19
Apache Tomcat=6.0.20
Apache Tomcat=6.0.24
Apache Tomcat=6.0.26
Apache Tomcat=6.0.27
Apache Tomcat=7.0.0-beta
redhat/tomcat5<5.5.30
5.5.30
redhat/tomcat6<6.0.28
6.0.28

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat to a version that resolves this vulnerability.

    Fixed in 6.0.28
  2. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat to a version that resolves this vulnerability.

    Fixed in 5.5.30
  3. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat to a version that resolves this vulnerability.

    Fixed in 7.0.2
  4. Upgrade

    Upgrade redhat/tomcat5 to a version that resolves this vulnerability.

    Fixed in 5.5.30
  5. Upgrade

    Upgrade redhat/tomcat6 to a version that resolves this vulnerability.

    Fixed in 6.0.28
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.0.28
  7. Compensating control

    Place Tomcat behind a proxy that rejects invalid Transfer-Encoding headers.

Event History

Jul 9, 2010
Data Sourced
via Red Hat·04:17 AM
DescriptionSeverityAffected Software
Jul 13, 2010
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description
Data Sourced
05:30 PM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·05:30 PM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 25, 2019
Data Sourced
11:32 AM
RemedySeverity
May 14, 2022
Advisory Published
via GitHub·01:17 AM
Data Sourced
via GitHub·01:17 AM
DescriptionWeaknessAffected Software
Mar 1, 2024
Advisory Published
via GitHub·05:07 AM
Jun 16, 2026
Updated
via NVD·11:20 PM
RemedyAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203