# CVE-2021-25122: Apache Tomcat h2c request mix-up

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 17.93% (percentile 98, 2026-11-28)
- **CWE:** CWE-200
- **Aliases:** BIT-tomcat-2021-25122, GHSA-j39c-c8hj-x4j3
- **Published:** 2021-03-01T12:00:20.000Z
- **Modified:** 2026-10-08T22:17:08.263Z

## Who should check

- Projects that depend on Maven package org.apache.tomcat.embed:tomcat-embed-core (\>= 10.0.0-M1, \< 10.0.2)
- Projects that depend on Maven package org.apache.tomcat:tomcat-coyote (\>= 10.0.0-M1, \< 10.0.2)
- Anyone running Apache Software Foundation Apache Tomcat \>= Apache Tomcat 10, \< 10.0.2; \>= Apache Tomcat 9, \< 9.0.42; \>= Apache Tomcat 8.5, \< 8.5.62

## Description

When responding to new h2c connection requests, 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 could duplicate request headers and a limited amount of request body from one request to another meaning user A and user B could both see the results of user A's request.

## Affected and fixed versions

- Maven `org.apache.tomcat.embed:tomcat-embed-core`: affected \>= 10.0.0-M1, \< 10.0.2; fixed 10.0.2, 9.0.43, 8.5.63 (osv)
- Maven `org.apache.tomcat:tomcat-coyote`: affected \>= 10.0.0-M1, \< 10.0.2; fixed 10.0.2 (osv)
- Apache Software Foundation Apache Tomcat: \>= Apache Tomcat 10, \< 10.0.2; \>= Apache Tomcat 9, \< 9.0.42; \>= Apache Tomcat 8.5, \< 8.5.62 (cvelist)

## Mitigation

- Upgrade org.apache.tomcat.embed:tomcat-embed-core to one of 10.0.2, 9.0.43, 8.5.63 (or later in the same release line).
- Upgrade org.apache.tomcat:tomcat-coyote to 10.0.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-25122. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-25122.md
Affected: org.apache.tomcat.embed:tomcat-embed-core >= 10.0.0-M1, < 10.0.2; org.apache.tomcat:tomcat-coyote >= 10.0.0-M1, < 10.0.2
Fixed in: 10.0.2, 9.0.43, 8.5.63

Steps:
1. Search this machine and project for org.apache.tomcat.embed:tomcat-embed-core (Maven), org.apache.tomcat:tomcat-coyote (Maven), Apache Software Foundation Apache Tomcat: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-25122 being exploited?

There is no confirmed exploitation: CVE-2021-25122 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 17.93% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2021-25122?

High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2021-25122?

org.apache.tomcat.embed:tomcat-embed-core \>= 10.0.0-M1, \< 10.0.2; org.apache.tomcat:tomcat-coyote \>= 10.0.0-M1, \< 10.0.2.

### Is there a fix for CVE-2021-25122?

Yes. Fixed in 10.0.2, 9.0.43, 8.5.63. Upgrade org.apache.tomcat.embed:tomcat-embed-core to one of 10.0.2, 9.0.43, 8.5.63 (or later in the same release line). Upgrade org.apache.tomcat:tomcat-coyote to 10.0.2 or later.

### How do I check if I'm affected by CVE-2021-25122?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread.html/r7b95bc248603360501f18c8eb03bb6001ec0ee3296205b34b07105b7%40%3Cannounce.tomcat.apache.org%3E>
- vendor: <https://www.debian.org/security/2021/dsa-4891>
- vendor: <https://security.gentoo.org/glsa/202208-34>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-25122>
- patch: <https://www.oracle.com//security-alerts/cpujul2021.html>
- patch: <https://www.oracle.com/security-alerts/cpuoct2021.html>
- patch: <https://www.oracle.com/security-alerts/cpujan2022.html>
- other: <https://lists.apache.org/thread.html/r7b95bc248603360501f18c8eb03bb6001ec0ee3296205b34b07105b7%40%3Cusers.tomcat.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r7b95bc248603360501f18c8eb03bb6001ec0ee3296205b34b07105b7%40%3Cdev.tomcat.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rf6d5d57b114678d8898005faef31e9fd6d7c981fcc4ccfc3bc272fc9%40%3Cdev.tomcat.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r7b95bc248603360501f18c8eb03bb6001ec0ee3296205b34b07105b7%40%3Cannounce.apache.org%3E>
- other: <http://www.openwall.com/lists/oss-security/2021/03/01/1>
- other: <https://lists.apache.org/thread.html/rcd90bf36b1877e1310b87ecd14ed7bbb15da52b297efd9f0e7253a3b%40%3Cusers.tomcat.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rd0463f9a5cbc02a485404c4b990f0da452e5ac5c237808edba11c947%40%3Cusers.tomcat.apache.org%3E>
- other: <https://lists.debian.org/debian-lts-announce/2021/03/msg00018.html>
- other: <https://security.netapp.com/advisory/ntap-20210409-0002/>
- other: <https://security.netapp.com/advisory/ntap-20210409-0002>
- other: <https://lists.apache.org/thread.html/rf6d5d57b114678d8898005faef31e9fd6d7c981fcc4ccfc3bc272fc9@%3Cdev.tomcat.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rd0463f9a5cbc02a485404c4b990f0da452e5ac5c237808edba11c947@%3Cusers.tomcat.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rcd90bf36b1877e1310b87ecd14ed7bbb15da52b297efd9f0e7253a3b@%3Cusers.tomcat.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r7b95bc248603360501f18c8eb03bb6001ec0ee3296205b34b07105b7@%3Cusers.tomcat.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r7b95bc248603360501f18c8eb03bb6001ec0ee3296205b34b07105b7@%3Cdev.tomcat.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r7b95bc248603360501f18c8eb03bb6001ec0ee3296205b34b07105b7@%3Cannounce.tomcat.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r7b95bc248603360501f18c8eb03bb6001ec0ee3296205b34b07105b7@%3Cannounce.apache.org%3E>
- other: <https://github.com/apache/tomcat>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-25122>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-j39c-c8hj-x4j3> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-25122> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-25122>
