# CVE-2011-2481: Apache Tomcat Allows Replacing of XML Parser

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.6
- **CVSS:** 4.6 (v2.0, NVD) `AV:L/AC:L/Au:N/C:P/I:P/A:P`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Authentication: None; Confidentiality impact: Partial; Integrity impact: Partial; Availability impact: Partial
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.84% (percentile 55, 2026-11-26)
- **CWE:** CWE-200
- **Aliases:** GHSA-r7c8-hghc-2mp8
- **Published:** 2011-08-15T21:00:00.000Z
- **Modified:** 2026-06-16T23:31:25.447Z

## Who should check

- Projects that depend on Maven package org.apache.tomcat:tomcat (\>= 7.0.0, \< 7.0.17)
- Anyone running n/a (versions: see the vendor advisory)

## Description

Apache Tomcat 7.0.x before 7.0.17 permits web applications to replace an XML parser used for other web applications, which allows local users to read or modify the (1) web.xml, (2) context.xml, or (3) tld files of arbitrary web applications via a crafted application that is loaded earlier than the target application.  NOTE: this vulnerability exists because of a CVE-2009-0783 regression.

## Affected and fixed versions

- Maven `org.apache.tomcat:tomcat`: affected \>= 7.0.0, \< 7.0.17; fixed 7.0.17 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade org.apache.tomcat:tomcat to 7.0.17 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2011-2481. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2011-2481.md
Affected: org.apache.tomcat:tomcat >= 7.0.0, < 7.0.17
Fixed in: 7.0.17

Steps:
1. Search this machine and project for org.apache.tomcat:tomcat (Maven), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2011-2481 being exploited?

There is no confirmed exploitation: CVE-2011-2481 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.84% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2011-2481?

Medium: CVSS 4.6 (v2.0, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2011-2481?

org.apache.tomcat:tomcat \>= 7.0.0, \< 7.0.17.

### Is there a fix for CVE-2011-2481?

Yes. Fixed in 7.0.17. Upgrade org.apache.tomcat:tomcat to 7.0.17 or later.

### How do I check if I'm affected by CVE-2011-2481?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <http://marc.info/?l=bugtraq&m=139344343412337&w=2>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2011-2481>
- patch: <http://tomcat.apache.org/security-7.html>
- patch: <http://svn.apache.org/viewvc?view=revision&revision=1138788>
- patch: <http://svn.apache.org/viewvc?view=revision&revision=1137753>
- patch: <https://github.com/apache/tomcat/commit/279e4451cb996f810fbca2f78b6340412d9daa7b>
- exploit: <https://issues.apache.org/bugzilla/show_bug.cgi?id=51395>
- other: <http://securitytracker.com/id?1025924>
- other: <http://secunia.com/advisories/57126>
- other: <http://www.securityfocus.com/bid/49147>
- other: <https://github.com/apache/tomcat>
- other: <https://web.archive.org/web/20111209022500/http://www.securityfocus.com/bid/49147>
- other: <https://web.archive.org/web/20161127215021/http://securitytracker.com/id?1025924>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2011-2481>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-r7c8-hghc-2mp8> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2011-2481> · JSON: <https://flawdb.com/api/v1/entries/CVE-2011-2481>
