ubuntu-cve-2021-42340
Vulnerability from osv_ubuntu
Published
2021-10-14 20:15
Modified
2025-07-14 04:43
Summary
Details
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.
Severity
7.5 (High)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "tomcat8",
"purl": "pkg:deb/ubuntu/tomcat8@8.0.32-1ubuntu1.13+esm1?arch=source\u0026distro=esm-infra/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"8.0.26-1",
"8.0.28-1",
"8.0.30-1",
"8.0.32-1",
"8.0.32-1ubuntu1",
"8.0.32-1ubuntu1.1",
"8.0.32-1ubuntu1.2",
"8.0.32-1ubuntu1.3",
"8.0.32-1ubuntu1.4",
"8.0.32-1ubuntu1.5",
"8.0.32-1ubuntu1.6",
"8.0.32-1ubuntu1.7",
"8.0.32-1ubuntu1.8",
"8.0.32-1ubuntu1.9",
"8.0.32-1ubuntu1.10",
"8.0.32-1ubuntu1.11",
"8.0.32-1ubuntu1.13",
"8.0.32-1ubuntu1.13+esm1"
]
},
{
"ecosystem_specific": {},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "tomcat8",
"purl": "pkg:deb/ubuntu/tomcat8@8.5.39-1ubuntu1~18.04.3+esm5?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"8.5.21-1ubuntu1",
"8.5.29-1",
"8.5.30-1",
"8.5.30-1ubuntu1",
"8.5.30-1ubuntu1.2",
"8.5.30-1ubuntu1.3",
"8.5.30-1ubuntu1.4",
"8.5.39-1ubuntu1~18.04.1",
"8.5.39-1ubuntu1~18.04.2",
"8.5.39-1ubuntu1~18.04.3",
"8.5.39-1ubuntu1~18.04.3+esm1",
"8.5.39-1ubuntu1~18.04.3+esm2",
"8.5.39-1ubuntu1~18.04.3+esm3",
"8.5.39-1ubuntu1~18.04.3+esm4",
"8.5.39-1ubuntu1~18.04.3+esm5"
]
},
{
"ecosystem_specific": {},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "tomcat9",
"purl": "pkg:deb/ubuntu/tomcat9@9.0.16-3ubuntu0.18.04.2+esm7?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.0.16-3~18.04.1",
"9.0.16-3ubuntu0.18.04.1",
"9.0.16-3ubuntu0.18.04.2",
"9.0.16-3ubuntu0.18.04.2+esm1",
"9.0.16-3ubuntu0.18.04.2+esm2",
"9.0.16-3ubuntu0.18.04.2+esm3",
"9.0.16-3ubuntu0.18.04.2+esm4",
"9.0.16-3ubuntu0.18.04.2+esm5",
"9.0.16-3ubuntu0.18.04.2+esm6",
"9.0.16-3ubuntu0.18.04.2+esm7"
]
},
{
"ecosystem_specific": {},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "tomcat9",
"purl": "pkg:deb/ubuntu/tomcat9@9.0.31-1ubuntu0.9+esm2?arch=source\u0026distro=esm-apps/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.0.24-1",
"9.0.27-1",
"9.0.31-1",
"9.0.31-1ubuntu0.1",
"9.0.31-1ubuntu0.2",
"9.0.31-1ubuntu0.3",
"9.0.31-1ubuntu0.4",
"9.0.31-1ubuntu0.5",
"9.0.31-1ubuntu0.6",
"9.0.31-1ubuntu0.7",
"9.0.31-1ubuntu0.8",
"9.0.31-1ubuntu0.9",
"9.0.31-1ubuntu0.9+esm1",
"9.0.31-1ubuntu0.9+esm2"
]
},
{
"ecosystem_specific": {},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "tomcat9",
"purl": "pkg:deb/ubuntu/tomcat9@9.0.58-1ubuntu0.2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.0.43-3",
"9.0.54-1",
"9.0.55-1",
"9.0.58-1",
"9.0.58-1ubuntu0.1",
"9.0.58-1ubuntu0.2"
]
},
{
"ecosystem_specific": {},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "tomcat9",
"purl": "pkg:deb/ubuntu/tomcat9@9.0.70-2ubuntu0.1?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.0.70-1ubuntu1",
"9.0.70-2",
"9.0.70-2ubuntu0.1"
]
},
{
"ecosystem_specific": {},
"package": {
"ecosystem": "Ubuntu:25.04",
"name": "tomcat9",
"purl": "pkg:deb/ubuntu/tomcat9@9.0.70-2ubuntu1.25.04.2?arch=source\u0026distro=plucky"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.0.70-2ubuntu1.1",
"9.0.70-2ubuntu1.25.04.1",
"9.0.70-2ubuntu1.25.04.2"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2021-42340",
"modified": "2025-07-14T04:43:30Z",
"published": "2021-10-14T20:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2021-42340"
},
{
"type": "REPORT",
"url": "https://www.openwall.com/lists/oss-security/2021/10/14/1"
},
{
"type": "REPORT",
"url": "https://github.com/apache/tomcat/commit/80f1438ec45e77a07b96419808971838d259eb47"
},
{
"type": "REPORT",
"url": "https://github.com/apache/tomcat/commit/d27535bdee95d252418201eb21e9d29476aa6b6a"
},
{
"type": "REPORT",
"url": "https://lists.apache.org/thread.html/r83a35be60f06aca2065f188ee542b9099695d57ced2e70e0885f905c%40%3Cannounce.tomcat.apache.org%3E"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2021-42340"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2021-42340"
],
"withdrawn": "2025-08-21T16:42:24Z"
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…