MediumGHSA-g8pj-r55q-5c2vBIT-tomcat-2023-42795CVE-2023-42795

Apache Tomcat Incomplete Cleanup vulnerability

Published 10 Oct 2023 · Updated 12 Jun 2026

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

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
>=11.0.0-M1 <11.0.0-M12
Fixed in
11.0.0-M12
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat -DdepVersion=11.0.0-M12 -DforceVersion=true
Affected
>=10.1.0-M1 <10.1.14
Fixed in
10.1.14
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat -DdepVersion=10.1.14 -DforceVersion=true
Affected
>=9.0.0-M1 <9.0.81
Fixed in
9.0.81
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat -DdepVersion=9.0.81 -DforceVersion=true
Affected
>=8.5.0 <8.5.94
Fixed in
8.5.94
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat -DdepVersion=8.5.94 -DforceVersion=true
Affected
>=10.1.0-M1 <10.1.14
Fixed in
10.1.14
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.14 -DforceVersion=true
Affected
>=9.0.0-M1 <9.0.81
Fixed in
9.0.81
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.81 -DforceVersion=true
Affected
>=8.5.0 <8.5.94
Fixed in
8.5.94
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.94 -DforceVersion=true
Affected
>=11.0.0-M1 <11.0.0-M12
Fixed in
11.0.0-M12
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=11.0.0-M12 -DforceVersion=true
Affected
>=11.0.0-M1 <11.0.0-M12
Fixed in
11.0.0-M12
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-catalina -DdepVersion=11.0.0-M12 -DforceVersion=true
Affected
>=10.1.0-M1 <10.1.14
Fixed in
10.1.14
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.14 -DforceVersion=true
Affected
>=9.0.0-M1 <9.0.81
Fixed in
9.0.81
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-catalina -DdepVersion=9.0.81 -DforceVersion=true
Affected
>=8.5.0 <8.5.94
Fixed in
8.5.94
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-catalina -DdepVersion=8.5.94 -DforceVersion=true
Affected
>=11.0.0-M1 <11.0.0-M12
Fixed in
11.0.0-M12
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-util -DdepVersion=11.0.0-M12 -DforceVersion=true
Affected
>=10.1.0-M1 <10.1.14
Fixed in
10.1.14
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-util -DdepVersion=10.1.14 -DforceVersion=true
Affected
>=9.0.0-M1 <9.0.81
Fixed in
9.0.81
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.81 -DforceVersion=true
Affected
>=8.5.0 <8.5.94
Fixed in
8.5.94
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.94 -DforceVersion=true

Details

Incomplete Cleanup vulnerability in Apache Tomcat.

When recycling various internal objects in Apache Tomcat from 11.0.0-M1 through 11.0.0-M11, from 10.1.0-M1 through 10.1.13, from 9.0.0-M1 through 9.0.80 and from 8.5.0 through 8.5.93, an error could cause Tomcat to skip some parts of the recycling process leading to information leaking from the current request/response to the next. Older, EOL versions may also be affected.

Users are recommended to upgrade to version 11.0.0-M12 onwards, 10.1.14 onwards, 9.0.81 onwards or 8.5.94 onwards, which fixes the issue.

Is GHSA-g8pj-r55q-5c2v 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:tomcat, and gives you the command that fixes it.

More advisories for org.apache.tomcat:tomcat

  • CriticalCVE-2026-65905Apache Tomcat's DIGEST authenticator has an Authentication Bypass by Capture-replay vulnerability · 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
  • HighCVE-2026-53404Apache Tomcat's rewrite valve has an Always-Incorrect Control Flow Implementation vulnerability · 29 Jun 2026
All 168 advisories for org.apache.tomcat:tomcat

References

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