CVE-2009-0781
Cross-site scripting in Apache Tomcat
Also known as GHSA-j788-fx57-99wp
Mitigation
- Upgrade org.apache.tomcat:tomcat to 6.0.20 or later.
Who should check
- Projects that depend on Maven package org.apache.tomcat:tomcat (>= 4.1.0, <= 4.1.39)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- org.apache.tomcat:tomcat >= 4.1.0, <= 4.1.39
- Fixed in
- 6.0.20
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 4.3 (v2.0, NVD)AV:N/AC:M/Au:N/C:N/I:P/A:N
Show all 6 CVSS metrics
- Attack vector: Network
- Attack complexity: Medium
- Authentication: None
- Confidentiality impact: None
- Integrity impact: Partial
- Availability impact: None
- EPSS
- 9.72% chance of exploitation in 30 days (percentile 96, 2026-11-26)
- CWE
- CWE-79
- Modified
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."
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.apache.tomcat:tomcat | >= 4.1.0, <= 4.1.39 | 6.0.20 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2009-0781. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2009-0781.md Affected: org.apache.tomcat:tomcat >= 4.1.0, <= 4.1.39 Fixed in: 6.0.20 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.
References
Vendor advisories
- http://tomcat.apache.org/security-4.html
- http://marc.info/?l=bugtraq&m=127420533226623&w=2
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:138
- https://www.redhat.com/archives/fedora-package-announce/2009-November/msg01246.html
- http://www.debian.org/security/2011/dsa-2207
- http://marc.info/?l=bugtraq&m=136485229118404&w=2
- http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- http://marc.info/?l=bugtraq&m=133469267822771&w=2
- http://tomcat.apache.org/security-6.html
- https://www.redhat.com/archives/fedora-package-announce/2009-November/msg01156.html
- https://www.redhat.com/archives/fedora-package-announce/2009-November/msg01216.html
- http://tomcat.apache.org/security-5.html
- http://lists.opensuse.org/opensuse-security-announce/2009-07/msg00002.html
- http://marc.info/?l=bugtraq&m=129070310906557&w=2
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:136
- http://sunsolve.sun.com/search/document.do?assetkey=1-26-263529-1
- https://nvd.nist.gov/vuln/detail/CVE-2009-0781
Other
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6564
- https://exchange.xforce.ibmcloud.com/vulnerabilities/49213
- http://secunia.com/advisories/37460
- http://www.vupen.com/english/advisories/2010/3056
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html
- http://secunia.com/advisories/35788
- http://www.vupen.com/english/advisories/2009/1856
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11041
- http://www.securityfocus.com/archive/1/507985/100/0/threaded
- http://secunia.com/advisories/42368
- http://support.apple.com/kb/HT4077
- http://secunia.com/advisories/35685
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A19345
- http://www.vupen.com/english/advisories/2009/3316
- http://www.securityfocus.com/archive/1/501538/100/0/threaded
- https://lists.apache.org/thread.html/29dc6c2b625789e70a9c4756b5a327e6547273ff8bde7e0327af48c5%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/06cfb634bc7bf37af7d8f760f118018746ad8efbd519c4b789ac9c2e%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/c62b0e3a7bf23342352a5810c640a94b6db69957c5c19db507004d74%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/8dcaf7c3894d66cb717646ea1504ea6e300021c85bb4e677dc16b1aa%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r584a714f141eff7b1c358d4679288177bd4ca4558e9999d15867d4b5%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/rb71997f506c6cc8b530dd845c084995a9878098846c7b4eacfae8db3%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r3aacc40356defc3f248aa504b1e48e819dd0471a0a83349080c6bcbf%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/rb71997f506c6cc8b530dd845c084995a9878098846c7b4eacfae8db3@%3Cdev.tomcat.apache.org%3E
- https://marc.info/?l=bugtraq&m=127420533226623&w=2
- https://marc.info/?l=bugtraq&m=129070310906557&w=2
- https://marc.info/?l=bugtraq&m=133469267822771&w=2
- https://marc.info/?l=bugtraq&m=136485229118404&w=2
- https://tomcat.apache.org/security-4.html
- https://tomcat.apache.org/security-5.html
- https://tomcat.apache.org/security-6.html
- https://www.debian.org/security/2011/dsa-2207
- https://access.redhat.com/errata/RHSA-2009:1164
- https://access.redhat.com/errata/RHSA-2009:1562
- https://access.redhat.com/security/cve/CVE-2009-0781
- https://bugzilla.redhat.com/show_bug.cgi?id=489028
- https://lists.apache.org/thread.html/06cfb634bc7bf37af7d8f760f118018746ad8efbd519c4b789ac9c2e@%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/29dc6c2b625789e70a9c4756b5a327e6547273ff8bde7e0327af48c5@%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/8dcaf7c3894d66cb717646ea1504ea6e300021c85bb4e677dc16b1aa@%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/c62b0e3a7bf23342352a5810c640a94b6db69957c5c19db507004d74@%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r3aacc40356defc3f248aa504b1e48e819dd0471a0a83349080c6bcbf@%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r584a714f141eff7b1c358d4679288177bd4ca4558e9999d15867d4b5@%3Cdev.tomcat.apache.org%3E
FAQ
Is CVE-2009-0781 being exploited?
There is no confirmed exploitation: CVE-2009-0781 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 9.72% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2009-0781?
Medium: CVSS 4.3 (v2.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2009-0781?
org.apache.tomcat:tomcat >= 4.1.0, <= 4.1.39.
Is there a fix for CVE-2009-0781?
Yes. Fixed in 6.0.20. Upgrade org.apache.tomcat:tomcat to 6.0.20 or later.
How do I check if I'm affected by CVE-2009-0781?
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.