Home / Apache / Tomcat / CVE-2009-0781
CVE-2009-0781: is it exploited, and which versions of Apache Tomcat are affected and fixed?
CVE-2009-0781 is a cross-site scripting (XSS) vulnerability in Apache Tomcat. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:38 UTC). Affected: org.apache.tomcat:tomcat through 4.1.39, org.apache.tomcat:tomcat through 5.5.27 and org.apache.tomcat:tomcat from 6.0.0 before 6.0.20 (GitHub advisory GHSA-j788-fx57-99wp). Fixed in 6.0.20 (GitHub advisory GHSA-j788-fx57-99wp). Severity: Medium (4.3, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:38 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:51 UTC.
What is CVE-2009-0781?
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."
From the CVE record by redhat, last updated August 7, 2024, 04:48 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.apache.tomcat:tomcat | >= 4.1.0, <= 4.1.39 | none listed | GHSA-j788-fx57-99wp |
| Maven | org.apache.tomcat:tomcat | >= 5.5.0, <= 5.5.27 | none listed | GHSA-j788-fx57-99wp |
| Maven | org.apache.tomcat:tomcat | >= 6.0.0, < 6.0.20 | 6.0.20 | GHSA-j788-fx57-99wp |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 17, 2022. Summary: Cross-site scripting in Apache Tomcat.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | tomcat | 4.1.0 | application |
| apache | tomcat | 4.1.1 | application |
| apache | tomcat | 4.1.2 | application |
| apache | tomcat | 4.1.3 | application |
| apache | tomcat | 4.1.4 | application |
| apache | tomcat | 4.1.5 | application |
| apache | tomcat | 4.1.6 | application |
| apache | tomcat | 4.1.7 | application |
| apache | tomcat | 4.1.8 | application |
| apache | tomcat | 4.1.9 | application |
| apache | tomcat | 4.1.10 | application |
| apache | tomcat | 4.1.11 | application |
| apache | tomcat | 4.1.12 | application |
| apache | tomcat | 4.1.13 | application |
| apache | tomcat | 4.1.14 | application |
| apache | tomcat | 4.1.15 | application |
| apache | tomcat | 4.1.16 | application |
| apache | tomcat | 4.1.17 | application |
| apache | tomcat | 4.1.18 | application |
| apache | tomcat | 4.1.19 | application |
| apache | tomcat | 4.1.20 | application |
| apache | tomcat | 4.1.21 | application |
| apache | tomcat | 4.1.22 | application |
| apache | tomcat | 4.1.23 | application |
| apache | tomcat | 4.1.24 | application |
NVD analysis (status Modified), last modified June 16, 2026, 23:05 UTC.
How severe is CVE-2009-0781?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2009-0781 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 9.72% probability of exploitation activity in the next 30 days, percentile 95.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
Where are the vendor advisories and references?
- http://tomcat.apache.org/security-4.html x_refsource_CONFIRM
- HPSBMA02535 vendor-advisory, x_refsource_HP
- MDVSA-2009:138 vendor-advisory, x_refsource_MANDRIVA
- oval:org.mitre.oval:def:6564 vdb-entry, signature, x_refsource_OVAL
- FEDORA-2009-11356 vendor-advisory, x_refsource_FEDORA
- DSA-2207 vendor-advisory, x_refsource_DEBIAN
- HPSBUX02860 vendor-advisory, x_refsource_HP
- tomcat-cal2-xss(49213) vdb-entry, x_refsource_XF
- 37460 third-party-advisory, x_refsource_SECUNIA
- ADV-2010-3056 vdb-entry, x_refsource_VUPEN
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html x_refsource_CONFIRM
- 35788 third-party-advisory, x_refsource_SECUNIA
- APPLE-SA-2010-03-29-1 vendor-advisory, x_refsource_APPLE
- HPSBOV02762 vendor-advisory, x_refsource_HP
- ADV-2009-1856 vdb-entry, x_refsource_VUPEN
- oval:org.mitre.oval:def:11041 vdb-entry, signature, x_refsource_OVAL
- 20091120 VMSA-2009-0016 VMware vCenter and ESX update release and vMA patch release address multiple security issue in third party components mailing-list, x_refsource_BUGTRAQ
- 42368 third-party-advisory, x_refsource_SECUNIA
- http://tomcat.apache.org/security-6.html x_refsource_CONFIRM
- http://support.apple.com/kb/HT4077 x_refsource_CONFIRM
- FEDORA-2009-11374 vendor-advisory, x_refsource_FEDORA
- 35685 third-party-advisory, x_refsource_SECUNIA
- oval:org.mitre.oval:def:19345 vdb-entry, signature, x_refsource_OVAL
- FEDORA-2009-11352 vendor-advisory, x_refsource_FEDORA
- http://tomcat.apache.org/security-5.html x_refsource_CONFIRM
- SUSE-SR:2009:012 vendor-advisory, x_refsource_SUSE
- HPSBUX02579 vendor-advisory, x_refsource_HP
- MDVSA-2009:136 vendor-advisory, x_refsource_MANDRIVA
- 263529 vendor-advisory, x_refsource_SUNALERT
- ADV-2009-3316 vdb-entry, x_refsource_VUPEN
- 20090306 [SECURITY] CVE-2009-0781 XSS in Apache Tomcat examples web application mailing-list, x_refsource_BUGTRAQ
- [tomcat-dev] 20190319 svn commit: r1855831 [21/30] - in /tomcat/site/trunk: ./ docs/ xdocs/ mailing-list, x_refsource_MLIST
- [tomcat-dev] 20190319 svn commit: r1855831 [22/30] - in /tomcat/site/trunk: ./ docs/ xdocs/ mailing-list, x_refsource_MLIST
- [tomcat-dev] 20190325 svn commit: r1856174 [19/29] - in /tomcat/site/trunk: docs/ xdocs/ xdocs/stylesheets/ mailing-list, x_refsource_MLIST
- [tomcat-dev] 20190325 svn commit: r1856174 [20/29] - in /tomcat/site/trunk: docs/ xdocs/ xdocs/stylesheets/ mailing-list, x_refsource_MLIST
- [tomcat-dev] 20200203 svn commit: r1873527 [22/30] - /tomcat/site/trunk/docs/ mailing-list, x_refsource_MLIST
- [tomcat-dev] 20200213 svn commit: r1873980 [24/34] - /tomcat/site/trunk/docs/ mailing-list, x_refsource_MLIST
- [tomcat-dev] 20200213 svn commit: r1873980 [25/34] - /tomcat/site/trunk/docs/ mailing-list, x_refsource_MLIST
When was it published, and where is the official record?
- Reserved
- March 4, 2009
- Published
- March 9, 2009, 21:00 UTC
- CVE record updated
- August 7, 2024, 04:48 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 23:05 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:51 UTC; KEV December 3, 2026, 09:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Tomcat?
- Apr 15, 2019CVE-2019-0232 Apache Tomcat: OS command injection
- Mar 23, 2017CVE-2016-9775 Debian Linux: n/a
- Mar 23, 2017CVE-2016-9774 Debian Linux: link following (a symlink lets an attacker reach other files)
- Oct 13, 2016CVE-2016-6325 Apache Tomcat: n/a
- Oct 13, 2016CVE-2016-5425 Apache Tomcat: insecure default permissions
- Oct 3, 2016CVE-2016-1240 Apache Tomcat: improper input validation
- Jul 19, 2016CVE-2016-5388 Redhat Enterprise Linux Desktop: improper access control
- Jul 4, 2016CVE-2016-3092 Hp Icewall Identity Manager: improper input validation
Questions about CVE-2009-0781
Is CVE-2009-0781 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:38 UTC. FIRST's EPSS gives it a 9.72% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Apache Tomcat are affected by CVE-2009-0781?
org.apache.tomcat:tomcat through 4.1.39, org.apache.tomcat:tomcat through 5.5.27 and org.apache.tomcat:tomcat from 6.0.0 before 6.0.20, per the GitHub advisory GHSA-j788-fx57-99wp. The tables above give every range the sources list.
Which version fixes CVE-2009-0781?
6.0.20, per the GitHub advisory GHSA-j788-fx57-99wp. Check the vendor's advisory before you rely on it.
How severe is CVE-2009-0781?
Medium (4.3, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2009-0781?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.