CVE-2022-34305
Published: 23 June 2022
Summary
CVE-2022-34305 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Apache Tomcat. Its CVSS base score is 6.1 (Medium).
Operationally, ranked in the top 4.8% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
The vulnerability CVE-2022-34305 is a cross-site scripting issue (CWE-79) in the Form authentication example shipped with the examples web application in Apache Tomcat. Affected releases include 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 code rendered user-supplied data without filtering, producing a reflected XSS condition with a CVSS 3.1 score of 6.1.
An unauthenticated remote attacker can supply crafted input through the affected authentication form so that the malicious payload is later displayed to other users, enabling limited theft or manipulation of session data or page content within a changed security context.
Public advisories from the Apache project, Gentoo, and NetApp describe the issue and point administrators to updated Tomcat builds that remove the vulnerable example code.
The associated EPSS score rose from lower values after disclosure to a peak of 0.3653 before receding to its current level of 0.1737.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-5963
Vulnerability details
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.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.