CVE-2011-2526: Improper Input Validation in Apache Tomcat

org.apache.tomcat:tomcat Updated 02 Oct 2025

Summary

14/05/2022
Yes i
Moderate
Not published

CVE-2011-2526: Improper Input Validation in Apache Tomcat. Affects org.apache.tomcat:tomcat across 3 version ranges.

< 5.5.34 >= 6.0.0, < 6.0.33 >= 7.0.0, < 7.0.19

Fixed in 5.5.34, 6.0.33 or 7.0.19, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Apache Tomcat is an open-source web server and servlet container that is used to deploy Java-based web applications. It provides a Java HTTP web server environment for running Java code. The vulnerability identified as CVE-2011-2526 affects Apache Tomcat versions 5.5.x, 6.x, and 7.x. This vulnerability arises when the sendfile feature is enabled for the HTTP APR or HTTP NIO connector. It allows local users to bypass file access restrictions or cause a denial of service by exploiting an untrusted web application.

Vulnerability Detail

The vulnerability in Apache Tomcat arises due to improper input validation. When the sendfile feature is enabled for the HTTP APR or HTTP NIO connector, certain request attributes are not properly validated. This allows local users to bypass intended file access restrictions or cause a denial of service. An attacker can leverage an untrusted web application to exploit this vulnerability. The consequences of this vulnerability include unauthorized access to files and directories, as well as potential crashes or infinite loops in the JVM.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 5.5.34 5.5.34
  • >= 6.0.0, < 6.0.33 6.0.33
  • >= 7.0.0, < 7.0.19 7.0.19

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading to a fixed version is not immediately feasible, a workaround can be implemented by disabling the sendfile feature for the HTTP APR or HTTP NIO connector. This can be achieved by modifying the Tomcat configuration file and setting the 'enableSendfile' attribute to 'false'. By disabling the sendfile feature, the vulnerability can be mitigated until a proper upgrade can be performed. Here is an example of how to disable the sendfile feature in the Tomcat configuration file:

<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" enableSendfile="false" />

Conclusion

The vulnerability identified as CVE-2011-2526 in Apache Tomcat can be mitigated by upgrading to the fixed versions of the software. By addressing the improper input validation issue, the risk of unauthorized file access and denial of service can be minimized. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.tomcat:tomcat →

Share this vulnerability

FAQ

Apache Tomcat is an open-source web server and servlet container that is used to deploy Java-based web applications. It provides a Java HTTP web server environment for running Java code.

The vulnerability affects Apache Tomcat versions 5.5.x, 6.x, and 7.x.

This vulnerability can be exploited by leveraging an untrusted web application. By bypassing file access restrictions or causing a denial of service, an attacker can gain unauthorized access to files and directories or crash the JVM.

The potential consequences of this vulnerability include unauthorized access to files and directories, as well as potential crashes or infinite loops in the JVM.

To fix this vulnerability, it is recommended to upgrade to a fixed version of Apache Tomcat. For version 5.5.x, upgrade to version 5.5.34 or later. For version 6.x, upgrade to version 6.0.33 or later. For version 7.x, upgrade to version 7.0.19 or later.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.tomcat:tomcat.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 5.5.34 5.5.34
  • >= 6.0.0, < 6.0.33 6.0.33
  • >= 7.0.0, < 7.0.19 7.0.19

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback