cve.bz

CVE-2022-34305 apache tomcat: Cross-site Scripting

6.1 mediumEPSS 6.7%Fix available

Medium (6.1) in apache tomcat. EPSS 6.7% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tomcat:tomcat 10.0.22, 10.1.0-M17, 8.5.82.

On this page
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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
6.7% (unchanged from 6.7% a week ago; 6.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-34305 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-34305?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-34305?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-34305 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2022-34305

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2022-34305](https://cve.bz/cve/badge/CVE-2022-34305.svg)](https://cve.bz/cve/CVE-2022-34305)

HTML:

<a href="https://cve.bz/cve/CVE-2022-34305"><img src="https://cve.bz/cve/badge/CVE-2022-34305.svg" alt="CVE-2022-34305"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:tomcatfrom 8.5.50 through 8.5.81
apache:tomcatfrom 9.0.30 through 9.0.64
apache:tomcatfrom 10.0.0 through 10.0.22
apache:tomcat10.1.0:milestone1
apache:tomcat10.1.0:milestone10
apache:tomcat10.1.0:milestone11
apache:tomcat10.1.0:milestone12
apache:tomcat10.1.0:milestone13
apache:tomcat10.1.0:milestone14
apache:tomcat10.1.0:milestone15
apache:tomcat10.1.0:milestone16
apache:tomcat10.1.0:milestone2
apache:tomcat10.1.0:milestone3
apache:tomcat10.1.0:milestone4
apache:tomcat10.1.0:milestone5
apache:tomcat10.1.0:milestone6
apache:tomcat10.1.0:milestone7
apache:tomcat10.1.0:milestone8
apache:tomcat10.1.0:milestone9

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6j88-6whg-x687Mavenorg.apache.tomcat:tomcat>=10.1.0-M1 <10.1.0-M1710.1.0-M17
GHSA-6j88-6whg-x687Mavenorg.apache.tomcat:tomcat>=10.0.0-M1 <10.0.2210.0.22
GHSA-6j88-6whg-x687Mavenorg.apache.tomcat:tomcat>=9.0.30 <9.0.659.0.65
GHSA-6j88-6whg-x687Mavenorg.apache.tomcat:tomcat>=8.5.50 <8.5.828.5.82

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14tomcat99.0.65-1DEBIAN-CVE-2022-34305
UbuntuPro:20.04:LTS, Pro:22.04:LTStomcat9no fix listedUBUNTU-CVE-2022-34305

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat Satellite does not include the affected Apache Tomcat, however, Tomcat is shipped with Red Hat Enterprise Linux and consumed by the Candlepin component of Satellite. Red Hat Satellite users are therefore advised to check the impact state of Red Hat Enterprise Linux, since any necessary fixes will be distributed through the platform.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6tomcat6Not affected
Red Hat Enterprise Linux 7tomcatNot affected
Red Hat Enterprise Linux 8pki-deps:10.6/pki-servlet-engineNot affected
Red Hat Enterprise Linux 8pki-servlet-engineNot affected
Red Hat Enterprise Linux 9pki-servlet-engineNot affected
Red Hat Fuse 7tomcatFix deferred
Red Hat JBoss Web Server 3tomcatOut of support scope
Red Hat JBoss Web Server 3tomcat7Out of support scope
Red Hat JBoss Web Server 3tomcat8Out of support scope
Red Hat JBoss Web Server 5tomcatNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-34305.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON