CVE-2011-2481: File modification in Apache Tomcat

org.apache.tomcat:tomcat Updated 02 Oct 2025

Summary

17/05/2022
Yes i
Moderate
Not published

CVE-2011-2481: Apache Tomcat Allows Replacing of XML Parser. Affects org.apache.tomcat:tomcat versions >= 7.0.0, < 7.0.17. Fixed in 7.0.17. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 Servlet and JavaServer Pages (JSP) environment for running web applications. The vulnerability in Apache Tomcat 7.0.x before 7.0.17 allows local users to read or modify the web.xml, context.xml, or tld files of arbitrary web applications. This vulnerability exists due to a regression of CVE-2009-0783.

Vulnerability Detail

The vulnerability in Apache Tomcat 7.0.x allows web applications to replace the XML parser used by other web applications. This enables a local user to read or modify the configuration files (web.xml, context.xml, or tld files) of arbitrary web applications. An attacker can craft a malicious application that is loaded earlier than the target application, allowing them to gain unauthorized access to sensitive information or modify the behavior of the target application.

How To Fix

Minimum fixed version

7.0.17

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to apply the fix provided by upgrading to Apache Tomcat 7.0.17 or later.

Conclusion

The vulnerability in Apache Tomcat 7.0.x allows local users to read or modify the configuration files of arbitrary web applications. It is recommended to upgrade to Apache Tomcat 7.0.17 or later to fix this vulnerability. For further support on vulnerability remediation, you can 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.

This vulnerability allows local users to read or modify the configuration files of arbitrary web applications, potentially leading to unauthorized access or modification of sensitive information.

To fix this vulnerability, it is recommended to upgrade to Apache Tomcat 7.0.17 or later.

There is no known workaround for this vulnerability. It is recommended to apply the fix provided by upgrading to Apache Tomcat 7.0.17 or later.

You can find more information about this vulnerability in the CVE-2011-2481 advisory.

Related vulnerabilities

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

How To Fix

Minimum fixed version

7.0.17

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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