CVE-2009-0781 Cross-site scripting in Apache Tomcat

Medium 4.3 Published Updated

Remote attackers can inject arbitrary web script via the time parameter in the Tomcat examples calendar application, requiring user interaction.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2009-0781?

CVE-2009-0781 is a medium-severity cross-site scripting vulnerability in Apache Tomcat, published on 9 Mar 2009. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Cross-site scripting (XSS) vulnerability in jsp/cal/cal2.jsp in the calendar application in the examples web application in Apache Tomcat 4.1.0 through 4.1.39, 5.5.0 through 5.5.27, and 6.0.0 through 6.0.18 allows remote attackers to inject arbitrary web script or HTML via the time parameter, related to "invalid HTML."

Weakness: CWE-79

Which versions are affected by CVE-2009-0781?

6 open source packages ship an affected version, including org.apache.tomcat:tomcat. It affects 1 product.

PackageAffectedFixed in
org.apache.tomcat:tomcat MavenFrom 4.1.0 to 4.1.39None
org.apache.tomcat:tomcat MavenFrom 4.1.0 to 4.1.39None
org.apache.tomcat:tomcat MavenFrom 5.5.0 to 5.5.27None
org.apache.tomcat:tomcat MavenFrom 5.5.0 to 5.5.27None
org.apache.tomcat:tomcat MavenFrom 6.0.06.0.20
org.apache.tomcat:tomcat MavenFrom 6.0.06.0.20

Products include Apache Tomcat.

How do I fix CVE-2009-0781?

Upgrade org.apache.tomcat:tomcat to 6.0.20 or later.

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-2009-0781 being exploited?

There is no known exploitation of CVE-2009-0781 in the wild and no public exploit code.

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-j788-fx57-99wp.

Is CVE-2009-0781 in your software?

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

Check your SBOMs for free