cve.bz

CVE-2022-45143 apache tomcat: Improper Encoding or Escaping of Output

7.5 highEPSS 2.7%Fix available

High (7.5) in apache tomcat. EPSS 2.7% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tomcat.embed:tomcat-embed-core 10.1.2, 8.5.84, 9.0.69.

On this page
The JsonErrorReportValve in Apache Tomcat 8.5.83, 9.0.40 to 9.0.68 and 10.1.0-M1 to 10.1.1 did not escape the type, message or description values. In some circumstances these are constructed from user provided data and it was therefore possible for users to supply values that invalidated or manipulated the JSON output.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
2.7% (unchanged from 2.7% a week ago; 2.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-22. 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 2024-08-01. 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-116 Improper Encoding or Escaping of Output
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-45143 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-45143?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-45143?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-45143 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.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Tomcatfrom 10.1.0-M1 through 10.1.1
Apache Software Foundation Apache Tomcatfrom 9.0.40 through 9.0.68
Apache Software Foundation Apache Tomcat8.5.83

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rq2w-37h9-vg94Mavenorg.apache.tomcat.embed:tomcat-embed-core>=8.5.83 <8.5.848.5.84
GHSA-rq2w-37h9-vg94Mavenorg.apache.tomcat.embed:tomcat-embed-core>=9.0.40 <9.0.699.0.69
GHSA-rq2w-37h9-vg94Mavenorg.apache.tomcat.embed:tomcat-embed-core>=10.1.0 <10.1.210.1.2
GHSA-rq2w-37h9-vg94Mavenorg.apache.tomcat:tomcat-catalina>=10.1.0 <10.1.210.1.2
GHSA-rq2w-37h9-vg94Mavenorg.apache.tomcat:tomcat-util>=8.5.83 <8.5.848.5.84
GHSA-rq2w-37h9-vg94Mavenorg.apache.tomcat:tomcat-util>=9.0.40 <9.0.699.0.69

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11tomcat99.0.43-2~deb11u6DSA-5381-1
Debian12, 13, 14tomcat99.0.70-1DEBIAN-CVE-2022-45143
UbuntuPro:22.04:LTStomcat9no fix listedUBUNTU-CVE-2022-45143
Red Hatenterprise_linux:8::appstreamtomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el8_10.1RHSA-2024:3666
Red Hatenterprise_linux:9::appstreamtomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el9_4.1RHSA-2024:3307
Red Hatjboss_enterprise_web_server:5.7::el7jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 9 more0:9.0.62-13.redhat_00011.1.el7jwsRHSA-2023:1663
Red Hatjboss_enterprise_web_server:5.7::el8jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 7 more0:9.0.62-13.redhat_00011.1.el8jwsRHSA-2023:1663
Red Hatjboss_enterprise_web_server:5.7::el9jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 7 more0:9.0.62-13.redhat_00011.1.el9jwsRHSA-2023:1663
Red Hatrhel_eus:8.8::appstreamtomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el8_8.2RHSA-2024:3814
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 moretomcat9.0.43-150200.38.1SUSE-SU-2023:1853-1
openSUSELeap 15.4tomcat9.0.43-150200.38.1SUSE-SU-2023:1853-1
openSUSETumbleweedtomcat9.0.43-16.1openSUSE-SU-2024:12847-1
openSUSETumbleweedtomcat1010.1.14-1.1openSUSE-SU-2024:13441-1
AlmaLinux8tomcat, tomcat-lib, tomcat-webapps and 5 more1:9.0.87-1.el8_10.1.alma.1ALSA-2024:3666

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Although it may be rated as CVSS 7.5, it's still considered a low impact flaw as according to the advisory report from Apache, user controlled data may occur in specific cases only and may alter some specific fields only.

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 8tomcat-1:9.0.87-1.el8_10.1Fixed 2024-06-06RHSA-2024:3666
Red Hat Enterprise Linux 8.8 Extended Update Supporttomcat-1:9.0.87-1.el8_8.2Fixed 2024-06-11RHSA-2024:3814
Red Hat Enterprise Linux 9tomcat-1:9.0.87-1.el9_4.1Fixed 2024-05-23RHSA-2024:3307
Red Hat Fuse 7.12tomcatFixed 2023-06-29RHSA-2023:3954
Red Hat JBoss Web Server 5jws5-tomcatFixed 2023-04-12RHSA-2023:1664
Red Hat JBoss Web Server 5.7 on RHEL 7jws5-tomcat-0:9.0.62-13.redhat_00011.1.el7jwsFixed 2023-04-12RHSA-2023:1663
Red Hat JBoss Web Server 5.7 on RHEL 8jws5-tomcat-0:9.0.62-13.redhat_00011.1.el8jwsFixed 2023-04-12RHSA-2023:1663
Red Hat JBoss Web Server 5.7 on RHEL 9jws5-tomcat-0:9.0.62-13.redhat_00011.1.el9jwsFixed 2023-04-12RHSA-2023:1663
Red Hat support for Spring Boot 2.7.13tomcatFixed 2023-08-16RHSA-2023:4612
Red Hat build of Apache Camel for Spring Boot 3tomcatNot affected
Red Hat Data Grid 8tomcatNot affected
Red Hat Enterprise Linux 6tomcat6Out of support scope
Red Hat Enterprise Linux 7tomcatOut of support scope
Red Hat Enterprise Linux 8pki-deps:10.6/pki-servlet-engineFix deferred
Red Hat Enterprise Linux 9pki-servlet-engineFix deferred
Red Hat Integration Camel K 1tomcatNot affected
Red Hat Integration Camel Quarkus 1tomcatNot affected
Red Hat JBoss Enterprise Application Platform 7tomcatNot affected
Red Hat JBoss Enterprise Application Platform Expansion PacktomcatNot affected
Red Hat JBoss Web Server 3tomcatNot affected
4 more in the JSON and on Red Hat's page.

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-45143.

Attack patterns (CAPEC)

  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High

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

References

Check your stackJSON