CVE-2007-1358 Apache Tomcat XSS In Accept-Language Headers

Low 2.6 Published Updated

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.

PackageAffectedFixed in
org.apache.tomcat:tomcat MavenFrom 4.0.0 to 4.0.6None
org.apache.tomcat:tomcat MavenFrom 4.0.0 to 4.0.6None
org.apache.tomcat:tomcat MavenFrom 4.1.0 to 4.1.34None
org.apache.tomcat:tomcat MavenFrom 4.1.0 to 4.1.34None

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.

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-xmc9-6p56-3c4v.

Is CVE-2007-1358 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free