HighGHSA-rq2w-37h9-vg94BIT-tomcat-2022-45143CVE-2022-45143

Apache Tomcat improperly escapes input from JsonErrorReportValve

Published 3 Jan 2023 · Updated 23 Apr 2024

Is your project on an affected org.apache.tomcat.embed:tomcat-embed-core?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=8.5.83 <8.5.84
Fixed in
8.5.84
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=8.5.84 -DforceVersion=true
Affected
>=9.0.40 <9.0.69
Fixed in
9.0.69
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=9.0.69 -DforceVersion=true
Affected
>=10.1.0 <10.1.2
Fixed in
10.1.2
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=10.1.2 -DforceVersion=true
Affected
>=10.1.0 <10.1.2
Fixed in
10.1.2
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-catalina -DdepVersion=10.1.2 -DforceVersion=true
Affected
>=8.5.83 <8.5.84
Fixed in
8.5.84
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-util -DdepVersion=8.5.84 -DforceVersion=true
Affected
>=9.0.40 <9.0.69
Fixed in
9.0.69
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-util -DdepVersion=9.0.69 -DforceVersion=true

Details

The JsonErrorReportValve in Apache Tomcat 8.5.83, 9.0.40 to 9.0.68 and 10.1.0-M1 to 10.1.1 does 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.

Is GHSA-rq2w-37h9-vg94 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.tomcat.embed:tomcat-embed-core, and gives you the command that fixes it.

More advisories for org.apache.tomcat.embed:tomcat-embed-core

  • CriticalCVE-2026-65905Apache Tomcat's DIGEST authenticator has an Authentication Bypass by Capture-replay vulnerability · 26 Aug 2026
  • CriticalCVE-2026-65637Apache Tomcat - HTTP/2 no-authority bypass of strict SNI validation · 26 Aug 2026
  • CriticalCVE-2026-65182Apache Tomcat has an Improper Access Control, Incorrect Authorization vulnerability · 26 Aug 2026
  • CriticalCVE-2026-68525Apache Tomcat's FORM authentication process has an Incorrect Authorization vulnerability · 26 Aug 2026
  • CriticalCVE-2026-55276Apache Tomcat has an Always-Incorrect Control Flow Implementation vulnerability · 29 Jun 2026
  • HighCVE-2026-55957Apache Tomcat has a Missing Critical Step in Authentication vulnerability · 29 Jun 2026
All 82 advisories for org.apache.tomcat.embed:tomcat-embed-core

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.