CVE-2007-1358 Apache Tomcat XSS In Accept-Language Headers
Remote attackers can inject arbitrary web script or HTML via crafted Accept-Language headers in Apache Tomcat, potentially compromising user sessions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2007-1358?
CVE-2007-1358 is a low-severity cross-site scripting vulnerability in Apache Tomcat, published on 9 May 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Cross-site scripting (XSS) vulnerability in certain applications using Apache Tomcat 4.0.0 through 4.0.6 and 4.1.0 through 4.1.34 allows remote attackers to inject arbitrary web script or HTML via crafted "Accept-Language headers that do not conform to RFC 2616".
Weakness: CWE-79
Which versions are affected by CVE-2007-1358?
4 open source packages ship an affected version, including org.apache.tomcat:tomcat. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.tomcat:tomcat Maven | From 4.0.0 to 4.0.6 | None |
org.apache.tomcat:tomcat Maven | From 4.0.0 to 4.0.6 | None |
org.apache.tomcat:tomcat Maven | From 4.1.0 to 4.1.34 | None |
org.apache.tomcat:tomcat Maven | From 4.1.0 to 4.1.34 | None |
Products include Apache Tomcat.
How do I fix CVE-2007-1358?
Upgrade to a fixed version.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2007-1358 being exploited?
There is no known exploitation of CVE-2007-1358 in the wild and no public exploit code.
Other vulnerabilities in Apache Tomcat
Sources
Also known as GHSA-xmc9-6p56-3c4v.