CVE-2024-52317: Apache Tomcat Apache Tomcat Request And/or Response Vulnerability

MODERATE
Advisory Identifier: GHSA-qvf5-hvjx-wm27
CVSS 6.5
CWE-326
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-52317
GHSA Identifier GHSA-qvf5-hvjx-wm27
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-326: Inadequate Encryption Strength
Affected Product Apache Tomcat
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

org.apache.tomcat.embed:tomcat-embed-core fixed: 9.0.96
<dependency>
    <groupId>org.apache.tomcat.embed</groupId>
    <artifactId>tomcat-embed-core</artifactId>
    <version>9.0.96</version>
</dependency>
org.apache.tomcat:tomcat-coyote fixed: 9.0.96
<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat-coyote</artifactId>
    <version>9.0.96</version>
</dependency>
org.apache.tomcat.embed:tomcat-embed-core fixed: 10.1.31
<dependency>
    <groupId>org.apache.tomcat.embed</groupId>
    <artifactId>tomcat-embed-core</artifactId>
    <version>10.1.31</version>
</dependency>
org.apache.tomcat.embed:tomcat-embed-core fixed: 11.0.0
<dependency>
    <groupId>org.apache.tomcat.embed</groupId>
    <artifactId>tomcat-embed-core</artifactId>
    <version>11.0.0</version>
</dependency>
org.apache.tomcat:tomcat-coyote fixed: 10.1.31
<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat-coyote</artifactId>
    <version>10.1.31</version>
</dependency>
org.apache.tomcat:tomcat-coyote fixed: 11.0.0
<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat-coyote</artifactId>
    <version>11.0.0</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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. This 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. Users are recommended to upgrade to version 11.0.0, 10.1.31 or 9.0.96, which fixes the issue.

CVE-2024-52317 Affected Apache Tomcat Versions

6 component(s)
Fixed Versions:
9.0.9610.1.3111.0.0
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?
CVE-2024-52317 is a security vulnerability in Apache Tomcat involving Apache Tomcat Request and/or response mix-up under CWE-326: Inadequate Encryption Strength.
Which Apache Tomcat versions are affected?
Affected versions include releases prior to 9.0.96, 10.1.31, 11.0.0 across affected packages: org.apache.tomcat.embed:tomcat-embed-core, org.apache.tomcat:tomcat-coyote.
What version fixes CVE-2024-52317?
Upgrading to 9.0.96, 10.1.31, 11.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tomcat-embed-core affected?
Yes, org.apache.tomcat.embed:tomcat-embed-core is affected in releases prior to 9.0.96, 10.1.31, 11.0.0. Upgrade your dependency to 9.0.96, 10.1.31, 11.0.0 or later.
Is tomcat-coyote affected?
Yes, org.apache.tomcat:tomcat-coyote is affected in releases prior to 9.0.96, 10.1.31, 11.0.0. Upgrade your dependency to 9.0.96, 10.1.31, 11.0.0 or later.
What is the CVSS score of CVE-2024-52317?
CVE-2024-52317 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-52317?
CVE-2024-52317 is classified under CWE-326: Inadequate Encryption Strength (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.).
How can I check Maven dependencies for CVE-2024-52317?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.tomcat.embed'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}