CVE-2024-52317: Apache Tomcat Apache Tomcat Request And/or Response Vulnerability
MODERATECVE-2024-52317 is a MODERATE (CVSS 6.5) apache tomcat request and/or response vulnerability (CWE-326: Inadequate Encryption Strength) affecting Apache Tomcat libraries in the Maven ecosystem. The issue involves apache tomcat request and/or response mix-up. Remediation is available by upgrading affected packages to version 9.0.96, 10.1.31, 11.0.0.
CVE-2024-52317 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2024-52317
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.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>9.0.96</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-coyote</artifactId>
<version>9.0.96</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>10.1.31</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>11.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-coyote</artifactId>
<version>10.1.31</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-coyote</artifactId>
<version>11.0.0</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.embed
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-52317, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.tomcat.embed
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 9.0.96), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.tomcat.embed 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-326: Inadequate Encryption Strength, where the product stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required. 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-52317 Affected Apache Tomcat Versions
6 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.tomcat.embed:tomcat-embed-core
|
Maven |
≥ 9.0.92
< 9.0.96
|
9.0.96
|
|
org.apache.tomcat:tomcat-coyote
|
Maven |
≥ 9.0.92
< 9.0.96
|
9.0.96
|
|
org.apache.tomcat.embed:tomcat-embed-core
|
Maven |
≥ 10.1.27
< 10.1.31
|
10.1.31
|
|
org.apache.tomcat.embed:tomcat-embed-core
|
Maven |
≥ 11.0.0-M23
< 11.0.0
|
11.0.0
|
|
org.apache.tomcat:tomcat-coyote
|
Maven |
≥ 10.1.27
< 10.1.31
|
10.1.31
|
|
org.apache.tomcat:tomcat-coyote
|
Maven |
≥ 11.0.0-M23
< 11.0.0
|
11.0.0
|
References
Frequently Asked Questions
What is CVE-2024-52317?
Which Apache Tomcat versions are affected?
What version fixes CVE-2024-52317?
Is tomcat-embed-core affected?
Is tomcat-coyote affected?
What is the CVSS score of CVE-2024-52317?
What CWE is associated with CVE-2024-52317?
How can I check Maven dependencies for CVE-2024-52317?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qvf5-hvjx-wm27",
"modified" : "2025-01-24T21:41:11Z",
"published" : "2024-11-18T12:30:43Z",
"aliases" : [ "CVE-2024-52317" ],
"summary" : "Apache Tomcat Request and/or response mix-up",
"details" : "Incorrect object re-cycling and re-use vulnerability in Apache Tomcat. Incorrect recycling of the request and response used by HTTP/2 requests could lead to request and/or response mix-up between users.\n\nThis issue affects Apache Tomcat: from 11.0.0-M23 through 11.0.0-M26, from 10.1.27 through 10.1.30, from 9.0.92 through 9.0.95.\n\nUsers are recommended to upgrade to version 11.0.0, 10.1.31 or 9.0.96, which fixes the issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.92"
}, {
"fixed" : "9.0.96"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-coyote"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.92"
}, {
"fixed" : "9.0.96"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.1.27"
}, {
"fixed" : "10.1.31"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0-M23"
}, {
"fixed" : "11.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-coyote"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.1.27"
}, {
"fixed" : "10.1.31"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-coyote"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0-M23"
}, {
"fixed" : "11.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-52317"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/146f94f87ea398fb592c7a20a5ccbef95e9dd72b"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/47307ee27abcdea2ee40e33897aca760083de46a"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/9e840ccacb40881c03a03b1e0746bfba7369b3bd"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/tomcat"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/ty376mrxy1mmxtw3ogo53nc9l3co3dfs"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20250124-0004"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2024/11/18/3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-326" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-11-18T21:03:05Z",
"nvd_published_at" : "2024-11-18T12:15:18Z"
}
}