The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-25122

CVE-2021-25122: Apache Tomcat Information Disclosure Flaw

CVE-2021-25122 is an information disclosure vulnerability in Apache Tomcat that causes request headers and body data to leak between users during h2c connections. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-25122 Overview

CVE-2021-25122 is an information disclosure vulnerability in Apache Tomcat that affects the HTTP/2 (h2c) connection handling mechanism. When responding to new h2c connection requests, vulnerable versions of Apache Tomcat could duplicate request headers and a limited amount of request body from one request to another. This means that user A and user B could both see the results of user A's request, potentially exposing sensitive information across user sessions.

This vulnerability impacts applications relying on Apache Tomcat for web serving where HTTP/2 clear-text (h2c) connections are enabled. The flaw can lead to unauthorized disclosure of confidential information, including authentication tokens, session data, and other sensitive request content.

Critical Impact

Sensitive request headers and body data from one user may be inadvertently exposed to another user during h2c connection handling, leading to potential data leakage and privacy violations.

Affected Products

  • Apache Tomcat 10.0.0-M1 to 10.0.0
  • Apache Tomcat 9.0.0.M1 to 9.0.41
  • Apache Tomcat 8.5.0 to 8.5.61
  • Debian Linux 9.0 and 10.0
  • Oracle Agile PLM 9.3.3 and 9.3.6
  • Oracle Communications Cloud Native Core Policy 1.14.0
  • Oracle Communications Cloud Native Core Security Edge Protection Proxy 1.6.0
  • Oracle Communications Instant Messaging Server 10.0.1.5.0
  • Oracle Database 12.2.0.1, 19c, and 21c (Enterprise)
  • Oracle Graph Server and Client (through 21.3.0)
  • Oracle Instantis EnterpriseTrack 17.1, 17.2, and 17.3
  • Oracle Managed File Transfer 12.2.1.3.0 and 12.2.1.4.0
  • Oracle MySQL Enterprise Monitor
  • Oracle Siebel UI Framework

Discovery Timeline

  • 2021-03-01 - CVE-2021-25122 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-25122

Vulnerability Analysis

The vulnerability resides in Apache Tomcat's HTTP/2 connection upgrade handling, specifically during the processing of h2c (HTTP/2 cleartext) connection requests. The HTTP/2 protocol supports an upgrade mechanism where clients can request to switch from HTTP/1.1 to HTTP/2 over an unencrypted connection. During this upgrade process, Apache Tomcat improperly handles the buffering and isolation of request data between different client connections.

The root cause relates to CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor). When processing concurrent h2c upgrade requests, the affected Tomcat versions fail to properly segregate request context data, allowing request headers and portions of the request body to leak between different user sessions. This vulnerability is particularly concerning in multi-tenant environments or applications handling sensitive user data.

Root Cause

The information disclosure occurs due to improper isolation of HTTP/2 stream data during the h2c connection upgrade process. Apache Tomcat's HTTP/2 implementation maintains internal buffers and state for managing multiplexed streams. When a new h2c connection is established, the server processes the upgrade request and transitions the connection to HTTP/2. During this transition, improper buffer management can cause request data from one connection to be inadvertently associated with another connection's response context.

The vulnerability specifically affects the request header handling and limited portions of the request body. The duplication of headers is particularly dangerous as these often contain authentication credentials, session tokens, and other sensitive metadata that should remain confidential to the originating client.

Attack Vector

This vulnerability can be exploited remotely over the network without requiring any authentication or user interaction. An attacker positioned on the same Tomcat server could potentially receive duplicated request data from other users by timing h2c connection requests to coincide with legitimate user activity.

The attack scenario involves:

  1. An attacker establishes multiple h2c connection upgrade requests to a vulnerable Tomcat server
  2. Legitimate users make requests to the same server containing sensitive data
  3. Due to the buffer isolation flaw, portions of the legitimate user's request headers or body may be duplicated into the attacker's response
  4. The attacker can harvest exposed authentication tokens, session identifiers, or other sensitive information

The vulnerability requires the h2c protocol to be enabled on the Tomcat server. Servers using only HTTPS with HTTP/2 over TLS (h2) or standard HTTP/1.1 connections are not directly affected by this specific issue.

Detection Methods for CVE-2021-25122

Indicators of Compromise

  • Unexpected or unexplained data appearing in HTTP/2 responses that does not correlate with the originating request
  • User reports of seeing other users' data or authentication information in their responses
  • Anomalous h2c connection upgrade patterns in access logs, particularly rapid successive upgrade requests
  • Presence of authentication tokens or session data in logs or responses for unrelated user sessions

Detection Strategies

  • Monitor Apache Tomcat access logs for unusual h2c connection upgrade request patterns, especially high-frequency upgrades from single sources
  • Implement application-level logging to track request/response data correlation and flag any mismatches
  • Deploy network intrusion detection systems (IDS) with signatures for h2c protocol abuse patterns
  • Use SentinelOne's Singularity XDR platform to correlate endpoint and network telemetry for detecting information leakage indicators

Monitoring Recommendations

  • Enable detailed access logging on Apache Tomcat servers to capture h2c connection upgrade events
  • Configure alerts for unexpected data patterns in HTTP responses, particularly headers that should be unique per session
  • Review web application firewall (WAF) logs for anomalous HTTP/2 traffic patterns
  • Implement request tracing with correlation IDs to detect cross-contamination of request data

How to Mitigate CVE-2021-25122

Immediate Actions Required

  • Upgrade Apache Tomcat immediately to version 10.0.2+, 9.0.43+, or 8.5.63+ depending on your deployment version
  • If immediate patching is not possible, consider disabling h2c protocol support temporarily until the upgrade can be completed
  • Audit access logs to determine if the vulnerability may have been exploited prior to patching
  • Review any Oracle products in your environment that embed vulnerable Tomcat versions and apply appropriate Oracle security patches

Patch Information

Apache has released security patches addressing this vulnerability. Organizations should upgrade to the following minimum versions:

  • Apache Tomcat 10.x: Upgrade to version 10.0.2 or later
  • Apache Tomcat 9.x: Upgrade to version 9.0.43 or later
  • Apache Tomcat 8.5.x: Upgrade to version 8.5.63 or later

For downstream products, refer to the vendor security advisories:

  • Oracle July 2021 Security Alert
  • Oracle October 2021 Security Alert
  • Oracle January 2022 Security Alert
  • Debian Security Advisory DSA-4891
  • Gentoo GLSA Advisory

Workarounds

  • Disable HTTP/2 cleartext (h2c) protocol support if not required by your application, by removing or commenting out the HTTP/2 Upgrade protocol in server.xml
  • Use HTTPS with HTTP/2 over TLS (h2) instead of h2c, which provides encryption and may mitigate some data exposure risks
  • Implement a reverse proxy in front of Tomcat that handles HTTP/2 connections and forwards HTTP/1.1 to the backend
  • Apply network segmentation to limit exposure of vulnerable Tomcat instances to trusted networks only
bash
# Disable h2c protocol in Apache Tomcat server.xml
# Locate the Connector element and remove or comment out UpgradeProtocol for HTTP/2
# Before (vulnerable configuration):
# <Connector port="8080" protocol="HTTP/1.1">
#     <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
# </Connector>

# After (mitigated configuration):
# Remove the UpgradeProtocol line entirely for h2c connections
# <Connector port="8080" protocol="HTTP/1.1">
# </Connector>

# Alternatively, ensure HTTP/2 is only used over TLS (port 8443)
# Restart Tomcat after configuration changes
systemctl restart tomcat

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechApache Tomcat

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability2.77%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-200
  • Technical References
  • Openwall OSS Security Update

  • Apache Announcement Thread

  • Tomcat Apache Developer Thread

  • Tomcat Apache Users Thread

  • Tomcat Apache Users Discussion

  • Tomcat Apache Users Update

  • Tomcat Apache Dev Discussion

  • Debian LTS Announcement

  • Gentoo GLSA Advisory

  • NetApp Security Advisory

  • Debian Security Advisory
  • Vendor Resources
  • Tomcat Apache Announcement

  • Oracle July 2021 Security Alert

  • Oracle January 2022 Security Alert

  • Oracle October 2021 Security Alert
  • Related CVEs
  • CVE-2023-28708: Apache Tomcat Info Disclosure Vulnerability

  • CVE-2024-21733: Apache Tomcat Information Disclosure Flaw

  • CVE-2023-42795: Apache Tomcat Information Disclosure Flaw

  • CVE-2023-34981: Apache Tomcat Information Disclosure Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English