CVE-2021-42340: DoS via memory leak with WebSocket connections
Noroxi assessment
Priority: Monitor (action score 34/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 11.7% (FIRST EPSS); higher than 96% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: tomcat9 (Debian:11) 9.0.43-2~deb11u3; tomcat9 (Debian:12) 9.0.54-1; org.apache.tomcat:tomcat (Maven) 10.0.12, 10.1.0-M6, 8.5.72.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to tomcat9 (Debian:11) 9.0.43-2~deb11u3; tomcat9 (Debian:12) 9.0.54-1; org.apache.tomcat:tomcat (Maven) 10.0.12, 10.1.0-M6, 8.5.72 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
The fix for bug 63362 present in Apache Tomcat 10.1.0-M1 to 10.1.0-M5, 10.0.0-M1 to 10.0.11, 9.0.40 to 9.0.53 and 8.5.60 to 8.5.71 introduced a memory leak. The object introduced to collect metrics for HTTP upgrade connections was not released for WebSocket connections once the connection was closed. This created a memory leak that, over time, could lead to a denial of service via an OutOfMemoryError.
- Published
- Oct 14, 2021
- Updated
- Jun 17, 2026
- EPSS
- 11.7% · 96th percentile
- CWE
- CWE-772
Report tools
Action score
34
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 4 / 30 · 11.7%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| apache | tomcat | cpe:2.3:a:apache:tomcat |
| netapp | hci | cpe:2.3:a:netapp:hci |
| netapp | management services for element software | cpe:2.3:a:netapp:management_services_for_element_software |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| oracle | agile engineering data management | cpe:2.3:a:oracle:agile_engineering_data_management |
| oracle | big data spatial and graph | cpe:2.3:a:oracle:big_data_spatial_and_graph |
| oracle | communications diameter signaling router | cpe:2.3:a:oracle:communications_diameter_signaling_router |
| oracle | hospitality cruise shipboard property management system | cpe:2.3:a:oracle:hospitality_cruise_shipboard_property_management_system |
| oracle | managed file transfer | cpe:2.3:a:oracle:managed_file_transfer |
| oracle | middleware common libraries and tools | cpe:2.3:a:oracle:middleware_common_libraries_and_tools |
| oracle | payment interface | cpe:2.3:a:oracle:payment_interface |
| oracle | retail customer insights | cpe:2.3:a:oracle:retail_customer_insights |
and 6 more
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- apache tomcat8.5.60 and later · before 8.5.72
- apache tomcat9.0.40 and later · before 9.0.54
- apache tomcat10.0.1 and later · before 10.0.12
- apache tomcat10.0.0
- apache tomcat10.1.0
- debian debian linux11.0
- netapp hciall versions
- netapp management services for element softwareall versions
- oracle agile engineering data management6.2.1.0
- oracle big data spatial and graphbefore 23.1
- oracle communications diameter signaling router8.0.0.0 and later · up to 8.5.0.2 inclusive
- oracle hospitality cruise shipboard property management system20.1.0
- oracle managed file transfer12.2.1.3.0
- oracle managed file transfer12.2.1.4.0
- oracle middleware common libraries and tools12.2.1.4.0
- oracle payment interface19.1
- oracle payment interface20.3
- oracle retail customer insights15.0.2
- oracle retail customer insights16.0.2
- oracle retail data extractor for merchandising15.0.2
Versions reported by the vendor
Affected version ranges reported by the assigning authority (apache). Independent of NVD's CPE analysis and usually ahead of it.
Apache Software Foundation Apache Tomcat
- Apache Tomcat 10 10.0.0-M10 to 10.0.11, Apache Tomcat 10 10.1.0-M1 to 10.1.0-M5, Apache Tomcat 9 9.0.40 to 9.0.53, Apache Tomcat 8 8.5.60 to 8.5.71affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:11 | tomcat9 | before 9.0.43-2~deb11u3 | 9.0.43-2~deb11u3 |
| Debian:12 | tomcat9 | before 9.0.54-1 | 9.0.54-1 |
| Maven | org.apache.tomcat:tomcat | from 10.0.0-M1 · before 10.0.12 | 10.0.12 |
| Maven | org.apache.tomcat:tomcat | from 10.1.0-M1 · before 10.1.0-M6 | 10.1.0-M6 |
| Maven | org.apache.tomcat:tomcat | from 8.5.60 · before 8.5.72 | 8.5.72 |
| Maven | org.apache.tomcat:tomcat | from 9.0.40 · before 9.0.54 | 9.0.54 |
| Red Hat:enterprise_linux:9::appstream | pki-servlet-4.0-api | before 1:9.0.50-1.el9 | 1:9.0.50-1.el9 |
| Red Hat:enterprise_linux:9::appstream | pki-servlet-engine | before 1:9.0.50-1.el9 | 1:9.0.50-1.el9 |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat | before 0:9.0.50-3.redhat_00004.1.el7jws | 0:9.0.50-3.redhat_00004.1.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-admin-webapps | before 0:9.0.50-3.redhat_00004.1.el7jws | 0:9.0.50-3.redhat_00004.1.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-docs-webapp | before 0:9.0.50-3.redhat_00004.1.el7jws | 0:9.0.50-3.redhat_00004.1.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-el-3.0-api | before 0:9.0.50-3.redhat_00004.1.el7jws | 0:9.0.50-3.redhat_00004.1.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-java-jdk11 | before 0:9.0.50-3.redhat_00004.1.el7jws | 0:9.0.50-3.redhat_00004.1.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-java-jdk8 | before 0:9.0.50-3.redhat_00004.1.el7jws | 0:9.0.50-3.redhat_00004.1.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-javadoc | before 0:9.0.50-3.redhat_00004.1.el7jws | 0:9.0.50-3.redhat_00004.1.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-jsp-2.3-api | before 0:9.0.50-3.redhat_00004.1.el7jws | 0:9.0.50-3.redhat_00004.1.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-lib | before 0:9.0.50-3.redhat_00004.1.el7jws | 0:9.0.50-3.redhat_00004.1.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-native | before 0:1.2.30-3.redhat_3.el7jws | 0:1.2.30-3.redhat_3.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-native-debuginfo | before 0:1.2.30-3.redhat_3.el7jws | 0:1.2.30-3.redhat_3.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-selinux | before 0:9.0.50-3.redhat_00004.1.el7jws | 0:9.0.50-3.redhat_00004.1.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-servlet-4.0-api | before 0:9.0.50-3.redhat_00004.1.el7jws | 0:9.0.50-3.redhat_00004.1.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-vault | before 0:1.1.8-4.Final_redhat_00004.1.el7jws | 0:1.1.8-4.Final_redhat_00004.1.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-vault-javadoc | before 0:1.1.8-4.Final_redhat_00004.1.el7jws | 0:1.1.8-4.Final_redhat_00004.1.el7jws |
| Red Hat:jboss_enterprise_web_server:5.6::el7 | jws5-tomcat-webapps | before 0:9.0.50-3.redhat_00004.1.el7jws | 0:9.0.50-3.redhat_00004.1.el7jws |
+14
Same product
apache: all recordsOther highest-scoring records for the same primary product.
- CVE-2025-24813Apache Tomcat: Potential RCE and/or information disclosure and/or information corruption with partial PUTKEV99Now
- CVE-2016-8735Remote code execution is possible with Apache Tomcat before 6.0.48, 7.x before 7.0.73, 8.x before 8.0.39, 8.5.x before 8.5.7, and 9.x beforeKEV96Now
- CVE-2017-12617When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTTP PUTs enabled (e.g.KEV92Now
Published before and after this one in the same product
- ← EarlierCVE-2021-33037Jul 12, 2021 · Incorrect Transfer-Encoding handling with HTTP/1.043Plan
- ← EarlierCVE-2021-41079Sep 16, 2021 · Apache Tomcat DoS with unexpected TLS packet32Monitor
- Later →CVE-2022-23181Jan 27, 2022 · Local privilege escalation with FileStore28Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:tomcat9 | 9.0.54-1 · Debian:12 | Package registry (OSV) |
| Maven:org.apache.tomcat:tomcat | 10.0.12 | Package registry (OSV) |
| Maven:org.apache.tomcat:tomcat | 10.1.0-M6 | Package registry (OSV) |
| Maven:org.apache.tomcat:tomcat | 8.5.72 | Package registry (OSV) |
| Maven:org.apache.tomcat:tomcat | 9.0.54 | Package registry (OSV) |
| red hat:jws5-tomcat | 0:9.0.50-3.redhat_00004.1.el7jws · Red Hat:jboss_enterprise_web_server:5.6::el7 | Package registry (OSV) |
| red hat:jws5-tomcat-admin-webapps | 0:9.0.50-3.redhat_00004.1.el7jws · Red Hat:jboss_enterprise_web_server:5.6::el7 | Package registry (OSV) |
| red hat:jws5-tomcat-docs-webapp | 0:9.0.50-3.redhat_00004.1.el7jws · Red Hat:jboss_enterprise_web_server:5.6::el7 | Package registry (OSV) |
| red hat:jws5-tomcat-el-3.0-api | 0:9.0.50-3.redhat_00004.1.el7jws · Red Hat:jboss_enterprise_web_server:5.6::el7 | Package registry (OSV) |
| red hat:jws5-tomcat-java-jdk11 | 0:9.0.50-3.redhat_00004.1.el7jws · Red Hat:jboss_enterprise_web_server:5.6::el7 | Package registry (OSV) |
| red hat:jws5-tomcat-java-jdk8 | 0:9.0.50-3.redhat_00004.1.el7jws · Red Hat:jboss_enterprise_web_server:5.6::el7 | Package registry (OSV) |
| red hat:jws5-tomcat-javadoc | 0:9.0.50-3.redhat_00004.1.el7jws · Red Hat:jboss_enterprise_web_server:5.6::el7 | Package registry (OSV) |
| red hat:jws5-tomcat-jsp-2.3-api | 0:9.0.50-3.redhat_00004.1.el7jws · Red Hat:jboss_enterprise_web_server:5.6::el7 | Package registry (OSV) |
| red hat:jws5-tomcat-lib | 0:9.0.50-3.redhat_00004.1.el7jws · Red Hat:jboss_enterprise_web_server:5.6::el7 | Package registry (OSV) |
| red hat:jws5-tomcat-native | 0:1.2.30-3.redhat_3.el7jws · Red Hat:jboss_enterprise_web_server:5.6::el7 | Package registry (OSV) |
| red hat:pki-servlet-4.0-api | 1:9.0.50-1.el9 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:pki-servlet-engine | 1:9.0.50-1.el9 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-21-0842 · Oct 18, 2021(Apache Güncellemesi)
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-772 · Missing Release of Resource after Effective LifetimeCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (8 more)Show less
- lists.apache.org/thread.html/r8097a2d1550aa78e585fc77e602b9046e6d4099d8d132497c5387784%40%3Ccommits.myfaces.apache.org%3E
- lists.apache.org/thread.html/r83a35be60f06aca2065f188ee542b9099695d57ced2e70e0885f905c%40%3Cannounce.tomcat.apache.org%3E
- security.gentoo.org/glsa/202208-34
- security.netapp.com/advisory/ntap-20211104-0001/
- www.debian.org/security/2021/dsa-5009
- www.oracle.com/security-alerts/cpuapr2022.html
- www.oracle.com/security-alerts/cpujan2022.html
- www.oracle.com/security-alerts/cpujul2022.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.