CVE-2022-34305 json
XSS in examples web application
published 2022-06-23 4 y ago modified 2026-10-08 31 d ago also BIT-tomcat-2022-34305 , EUVD-2022-5963 , GHSA-6j88-6whg-x687
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.7%
- EPSS 6.7% chance of exploitation in 30 days, percentile 93%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
In Apache Tomcat 10.1.0-M1 to 10.1.0-M16, 10.0.0-M1 to 10.0.22, 9.0.30 to 9.0.64 and 8.5.50 to 8.5.81 the Form authentication example in the examples web application displayed user provided data without filtering, exposing a XSS vulnerability.
Patch / fix
- maven org.apache.tomcat:tomcat 8.5.82, 9.0.65, 10.0.22, 10.1.0-M17
- bitnami tomcat 8.5.82, 9.0.65, 10.0.23
- tomcat9 Debian 14, Debian 13, Debian 12 9.0.65-1
debian advisories DEBIAN-CVE-2022-34305
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-34305 updated cvss 5.4
tomcat: XSS in examples web application
-
Red Hat Fuse 7 tomcataffected: no fix available “Fix deferred”
-
Red Hat JBoss Web Server 3 tomcat, tomcat7 tomcat7, tomcat8 tomcat8affected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 6 tomcat6, tomcat6-lib, tomcat6-log4j, tomcat6-javadoc, tomcat6-webapps, tomcat6-el-2.1-api, +4 more Red Hat Enterprise Linux 7 tomcat, tomcat-lib, tomcat-jsvc, tomcat-javadoc, tomcat-webapps, tomcat-el-2.2-api, +4 more Red Hat Enterprise Linux 8 pki-servlet-engine, pki-servlet-4.0-api Red Hat Enterprise Linux 9 pki-servlet-engine, pki-servlet-4.0-api Red Hat JBoss Web Server 5 tomcatnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 31 d ago
Exploit prediction
6.71% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Apache Tomcat Examples Web Application - Cross-Site Scripting nuclei detection template
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| OSV | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.tomcat:tomcat | >=10.1.0-M1, <10.1.0-M17 >=10.0.0-M1, <10.0.22 >=9.0.30, <9.0.65 >=8.5.50, <8.5.82 |
10.1.0-M17 10.0.22 9.0.65 8.5.82 |
| bitnami | tomcat | >=8.5.50, <8.5.82 >=9.0.30, <9.0.65 >=10.0.0, <10.0.23 |
8.5.82 9.0.65 10.0.23 |
Affected products
- Apache Software Foundation Apache Tomcat
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
security.gentoo.org
/glsa/202208-34
vendor-advisory, web, third-party-advisory, advisory
-
lists.apache.org
/thread/k04zk0nq6w57m72w5gb0r6z9ryhmvr4k
web, mailing-list, release-notes, third-party-advisory, advisory
-
openwall.com
/lists/oss-security/2022/06/23/1
mailing-list, web, third-party-advisory, advisory
-
security.netapp.com
/advisory/ntap-20220729-0006/
third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-34305
advisory, web
-
security.netapp.com
/advisory/ntap-20220729-0006
web
Sources
- CVE List CVE-2022-34305
- GitHub Advisory GHSA-6j88-6whg-x687
- NVD CVE-2022-34305
- OSV BIT-tomcat-2022-34305
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.