CVE-2021-25122: Apache Tomcat - Exposure of Sensitive Information

Summary

16/06/2021
Yes i
High
7.5

CVE-2021-25122: Exposure of Sensitive Information to an Unauthorized Actor in Apache Tomcat. Affects org.apache.tomcat.embed:tomcat-embed-core across 3 version ranges.

>= 8.5.0, < 8.5.63 >= 9.0.0, < 9.0.43 >= 10.0.0, < 10.0.2

Fixed in 8.5.63, 9.0.43 or 10.0.2, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2021-25122 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache Tomcat is an open-source web server and servlet container that is widely used for hosting Java-based web applications. It provides a robust and scalable platform for running Java web applications. The 'org.apache.tomcat.embed:tomcat-embed-core' package is a Maven package that includes the core components of Apache Tomcat for embedding it into other applications. This package is commonly used to integrate Apache Tomcat into Java applications.

Vulnerability Detail

The vulnerability identified as CVE-2021-25122 affects Apache Tomcat versions 10.0.0-M1 to 10.0.0, 9.0.0.M1 to 9.0.41, and 8.5.0 to 8.5.61. It allows an unauthorized actor to access sensitive information. When responding to new h2c connection requests, Apache Tomcat duplicates request headers and a limited amount of request body from one request to another. This means that multiple users could potentially see the results of another user's request. This vulnerability poses a significant risk as it can lead to the exposure of sensitive data to unauthorized individuals.

How To Fix

Latest published version: 11.0.27 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 8.5.0, < 8.5.63 8.5.63
  • >= 9.0.0, < 9.0.43 9.0.43
  • >= 10.0.0, < 10.0.2 10.0.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to apply the fix by upgrading to the fixed versions of Apache Tomcat.

Conclusion

The vulnerability (CVE-2021-25122) in Apache Tomcat exposes sensitive information to unauthorized actors. It is crucial to upgrade to the fixed versions of Apache Tomcat (10.0.2, 9.0.43, or 8.5.63) to mitigate the risk of data exposure. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.tomcat.embed:tomcat-embed-core →

Share this vulnerability

FAQ

Apache Tomcat is an open-source web server and servlet container used for hosting Java-based web applications.

The vulnerability affects Apache Tomcat versions 10.0.0-M1 to 10.0.0, 9.0.0.M1 to 9.0.41, and 8.5.0 to 8.5.61.

The vulnerability allows an unauthorized actor to access sensitive information, potentially leading to the exposure of sensitive data to unauthorized individuals.

To fix this vulnerability, it is recommended to upgrade to the fixed versions of Apache Tomcat.

No, there is no known workaround for this vulnerability. It is recommended to apply the fix by upgrading to the fixed versions of Apache Tomcat.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.tomcat.embed:tomcat-embed-core.

How To Fix

Latest published version: 11.0.27 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 8.5.0, < 8.5.63 8.5.63
  • >= 9.0.0, < 9.0.43 9.0.43
  • >= 10.0.0, < 10.0.2 10.0.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback