tomcat9 — security advisory
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.
- Products
- tomcat9
- Affected versions
- Not specified
- Fixed versions
- 9.0.54-1
- CVEs
- CVE-2021-42340
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 23:53 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2021-42340
tomcat9
Fixed versions: 9.0.54-1
tomcat9
Fixed versions: 9.0.54-1
tomcat9
Fixed versions: 9.0.54-1
Complete source record
{
"id": "380dd8280a3e4559f3399e81b727930b4557b5a8dadf0776e86c07b7cfba178f",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-42340",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2021-42340",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2021-42340",
"products": [
{
"name": {
"value": "tomcat9",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "9.0.54-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "tomcat9",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "9.0.54-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "tomcat9",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "9.0.54-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2021-42340",
"aliases": [
"DEBIAN-CVE-2021-42340"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "9.0.54-1"
}
]
}
],
"package": {
"name": "tomcat9",
"purl": "pkg:deb/debian/tomcat9?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-42340.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "9.0.54-1"
}
]
}
],
"package": {
"name": "tomcat9",
"purl": "pkg:deb/debian/tomcat9?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-42340.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "9.0.54-1"
}
]
}
],
"package": {
"name": "tomcat9",
"purl": "pkg:deb/debian/tomcat9?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-42340.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:00:20.567447697Z",
"provider": "osv",
"upstream": [
"CVE-2021-42340"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-42340"
]
},
"related_cves": [
{
"value": "CVE-2021-42340",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 419360,
"published_at": "2021-10-14T20:15:09.06+00:00"
}