CVE-2024-23672: Apache Tomcat Denial of Service Vulnerability
MODERATECVE-2024-23672 is a MODERATE (CVSS 6.3) denial of service vulnerability (CWE-459: Incomplete Cleanup) affecting Apache Tomcat libraries in the Maven ecosystem. The issue involves denial of service via incomplete cleanup vulnerability in apache tomcat. Remediation is available by upgrading affected packages to version 11.0.0-M17, 10.1.19, 9.0.86, 8.5.99.
CVE-2024-23672 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2024-23672
To remediate this vulnerability, upgrade all affected Apache Tomcat dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-websocket</artifactId>
<version>11.0.0-M17</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-websocket</artifactId>
<version>10.1.19</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-websocket</artifactId>
<version>9.0.86</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-websocket</artifactId>
<version>8.5.99</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-websocket</artifactId>
<version>11.0.0-M17</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-websocket</artifactId>
<version>10.1.19</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-websocket</artifactId>
<version>9.0.86</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-websocket</artifactId>
<version>8.5.99</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.tomcat
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-23672, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.tomcat
Analyze the terminal output to locate any version of Apache Tomcat in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 11.0.0-M17), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.tomcat command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-459: Incomplete Cleanup, where the product does not properly "clean up" and remove temporary or supporting resources after they have been used. In Apache Tomcat, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-23672 Affected Apache Tomcat Versions
8 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.tomcat:tomcat-websocket
|
Maven |
≥ 11.0.0-M1
< 11.0.0-M17
|
11.0.0-M17
|
|
org.apache.tomcat:tomcat-websocket
|
Maven |
≥ 10.1.0-M1
< 10.1.19
|
10.1.19
|
|
org.apache.tomcat:tomcat-websocket
|
Maven |
≥ 9.0.0-M1
< 9.0.86
|
9.0.86
|
|
org.apache.tomcat:tomcat-websocket
|
Maven |
≥ 8.5.0
< 8.5.99
|
8.5.99
|
|
org.apache.tomcat.embed:tomcat-embed-websocket
|
Maven |
≥ 11.0.0-M1
< 11.0.0-M17
|
11.0.0-M17
|
|
org.apache.tomcat.embed:tomcat-embed-websocket
|
Maven |
≥ 10.1.0-M1
< 10.1.19
|
10.1.19
|
|
org.apache.tomcat.embed:tomcat-embed-websocket
|
Maven |
≥ 9.0.0-M1
< 9.0.86
|
9.0.86
|
|
org.apache.tomcat.embed:tomcat-embed-websocket
|
Maven |
≥ 8.5.0
< 8.5.99
|
8.5.99
|
References
Frequently Asked Questions
What is CVE-2024-23672?
Which Apache Tomcat versions are affected?
What version fixes CVE-2024-23672?
Is tomcat-websocket affected?
Is tomcat-embed-websocket affected?
What is the CVSS score of CVE-2024-23672?
What CWE is associated with CVE-2024-23672?
How can I check Maven dependencies for CVE-2024-23672?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v682-8vv8-vpwr",
"modified" : "2025-08-08T18:33:22Z",
"published" : "2024-03-13T18:31:34Z",
"aliases" : [ "CVE-2024-23672" ],
"summary" : "Denial of Service via incomplete cleanup vulnerability in Apache Tomcat",
"details" : "Denial of Service via incomplete cleanup vulnerability in Apache Tomcat. It was possible for WebSocket clients to keep WebSocket connections open leading to increased resource consumption.This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.0-M16, from 10.1.0-M1 through 10.1.18, from 9.0.0-M1 through 9.0.85, from 8.5.0 through 8.5.98. Older, EOL versions may also be affected.\n\nUsers are recommended to upgrade to version 11.0.0-M17, 10.1.19, 9.0.86 or 8.5.99 which fix the issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-websocket"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0-M1"
}, {
"fixed" : "11.0.0-M17"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 11.0.0-M16"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-websocket"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.1.0-M1"
}, {
"fixed" : "10.1.19"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 10.1.18"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-websocket"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.0-M1"
}, {
"fixed" : "9.0.86"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 9.0.85"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-websocket"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.5.0"
}, {
"fixed" : "8.5.99"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 8.5.98"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-websocket"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0-M1"
}, {
"fixed" : "11.0.0-M17"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 11.0.0-M16"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-websocket"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.1.0-M1"
}, {
"fixed" : "10.1.19"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 10.1.18"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-websocket"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.0-M1"
}, {
"fixed" : "9.0.86"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 9.0.85"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-websocket"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.5.0"
}, {
"fixed" : "8.5.99"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 8.5.98"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23672"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/0052b374684b613b0c849899b325ebe334ac6501"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/3631adb1342d8bbd8598802a12b63ad02c37d591"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/52d6650e062d880704898d7d8c1b2b7a3efe8068"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/b0e3b1bd78de270d53e319d7cb79eb282aa53cb9"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/tomcat"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/cmpswfx6tj4s7x0nxxosvfqs11lvdx2f"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2024/04/msg00001.html"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3UWIS5MMGYDZBLJYT674ZI5AWFHDZ46B"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/736G4GPZWS2DSQO5WKXO3G6OMZKFEK55"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20240402-0002"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2024/03/13/4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-459" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-03-14T14:04:03Z",
"nvd_published_at" : "2024-03-13T16:15:29Z"
}
}