Every CVE Search/ Get API key

CVE-2024-52318

Apache Tomcat: Incorrect JSP tag recycling leads to XSS

6.1 MediumPublic exploitFix available

Incorrect object recycling and reuse vulnerability in Apache Tomcat.

This issue affects Apache Tomcat: 11.0.0, 10.1.31, 9.0.96.

Users are recommended to upgrade to version 11.0.1, 10.1.32 or 9.0.97, which fixes the issue.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
None

Exploit likelihood

1.88%Up 1.8 points since Nov 19, 2024
90%50%10%1%

What each source reports

CVE List Score used 6.1

Apache Tomcat: Incorrect JSP tag recycling leads to XSS

Incorrect object recycling and reuse vulnerability in Apache Tomcat.

This issue affects Apache Tomcat: 11.0.0, 10.1.31, 9.0.96.

Users are recommended to upgrade to version 11.0.1, 10.1.32 or 9.0.97, which fixes the issue.

Record
CVE-2024-52318
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-326
Updated
2026-11-02
EUVDEUVD-2024-3243 6.1

Incorrect object recycling and reuse vulnerability in Apache Tomcat.

This issue affects Apache Tomcat: 11.0.0, 10.1.31, 9.0.96.

Users are recommended to upgrade to version 11.0.1, 10.1.32 or 9.0.97, which fixes the issue.

Record
EUVD-2024-3243
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-03
GitHub AdvisoriesGHSA-f632-9449-3j4w 6.1

Apache Tomcat - XSS in generated JSPs

Description:

The fix for improvement 69333 caused pooled JSP tags not to be released after use which in turn could cause output of some tags not to escaped as expected. This unescaped output could lead to XSS.

Versions Affected:

  • Apache Tomcat 11.0.0
  • Apache Tomcat 10.1.31
  • Apache Tomcat 9.0.96

Mitigation:

Users of the affected versions should apply one of the following mitigations:

  • Upgrade to Apache Tomcat 11.0.1 or later
  • Upgrade to Apache Tomcat 10.1.33 or later Note: 10.1.32 was not released
  • Upgrade to Apache Tomcat 9.0.97 or later
Record
GHSA-f632-9449-3j4w
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-326
Updated
2026-11-02
NVD 6.1

Incorrect object recycling and reuse vulnerability in Apache Tomcat.

This issue affects Apache Tomcat: 11.0.0, 10.1.31, 9.0.96.

Users are recommended to upgrade to version 11.0.1, 10.1.32 or 9.0.97, which fixes the issue.

Record
CVE-2024-52318
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-326
Updated
2026-11-02
OSV 6.1

Apache Tomcat: Incorrect JSP tag recycling leads to XSS

Incorrect object recycling and reuse vulnerability in Apache Tomcat.

This issue affects Apache Tomcat: 11.0.0, 10.1.31, 9.0.96.

Users are recommended to upgrade to version 11.0.1, 10.1.32 or 9.0.97, which fixes the issue.

Record
CVE-2024-52318
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVDEBIAN-CVE-2024-52318 6.1

Incorrect object recycling and reuse vulnerability in Apache Tomcat. This issue affects Apache Tomcat: 11.0.0, 10.1.31, 9.0.96. Users are recommended to upgrade to version 11.0.1, 10.1.32 or 9.0.97, which fixes the issue.

Record
DEBIAN-CVE-2024-52318
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
Show 9 moreShow less
OSVGHSA-f632-9449-3j4w 6.1

Apache Tomcat - XSS in generated JSPs

Description:

The fix for improvement 69333 caused pooled JSP tags not to be released after use which in turn could cause output of some tags not to escaped as expected. This unescaped output could lead to XSS.

Versions Affected:

  • Apache Tomcat 11.0.0
  • Apache Tomcat 10.1.31
  • Apache Tomcat 9.0.96

Mitigation:

Users of the affected versions should apply one of the following mitigations:

  • Upgrade to Apache Tomcat 11.0.1 or later
  • Upgrade to Apache Tomcat 10.1.33 or later Note: 10.1.32 was not released
  • Upgrade to Apache Tomcat 9.0.97 or later
Record
GHSA-f632-9449-3j4w
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-326
Updated
2026-11-02
OSVOESA-2024-2460 8.6

tomcat security update

The Apache Tomcat software is developed in an open and participatory environment and released under the Apache License version 2. The Apache Tomcat project is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project

Security Fix(es):

The simplified implementation of blocking reads and writes introduced in Tomcat 10 and back-ported to Tomcat 9.0.47 onwards exposed a long standing (but extremely hard to trigger) concurrency bug in Apache Tomcat 10.1.0 to 10.1.0-M12, 10.0.0-M1 to 10.0.18, 9.0.0-M1 to 9.0.60 and 8.5.0 to 8.5.77 that could cause client connections to share an Http11Processor instance resulting in responses, or part responses, to be received by the wrong client.(CVE-2021-43980)

If a web application sends a WebSocket message concurrently with the WebSocket connection closing when running on Apache Tomcat 8.5.0 to 8.5.75 or Apache Tomcat 9.0.0.M1 to 9.0.20, it is possible that the application will continue to use the socket after it has been closed. The error handling triggered in this case could cause the a pooled object to be placed in the pool twice. This could result in subsequent connections using the same object concurrently which could result in data being returned to the wrong use and/or other errors.(CVE-2022-25762)

The HTTP/2 protocol allows a denial of service (server resource consumption) because request cancellation can reset many streams quickly, as exploited in the wild in August through October 2023.(CVE-2023-44487)

Improper Input Validation vulnerability in Apache Tomcat.Tomcat from 11.0.0-M1 through 11.0.0-M10, from 10.1.0-M1 through 10.1.15, from 9.0.0-M1 through 9.0.82 and from 8.5.0 through 8.5.95 did not correctly parse HTTP trailer headers. A trailer header that exceeded the header size limit could cause Tomcat to treat a single request as multiple requests leading to the possibility of request smuggling when behind a reverse proxy.

Users are recommended to upgrade to version 11.0.0-M11 onwards, 10.1.16 onwards, 9.0.83 onwards or 8.5.96 onwards, which fix the issue.

(CVE-2023-46589)

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.

Users are recommended to upgrade to version 11.0.0-M17, 10.1.19, 9.0.86 or 8.5.99 which fix the issue.

(CVE-2024-23672)

Denial of Service due to improper input validation vulnerability for HTTP/2 requests in Apache Tomcat. When processing an HTTP/2 request, if the request exceeded any of the configured limits for headers, the associated HTTP/2 stream was not reset until after all of the headers had been processed.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.

Users are recommended to upgrade to version 11.0.0-M17, 10.1.19, 9.0.86 or 8.5.99 which fix the issue.

(CVE-2024-24549)

Improper Handling of Exceptional Conditions, Uncontrolled Resource Consumption vulnerability in Apache Tomcat. When processing an HTTP/2 stream, Tomcat did not handle some cases of excessive HTTP headers correctly. This led to a miscounting of active HTTP/2 streams which in turn led to the use of an incorrect infinite timeout which allowed connections to remain open which should have been closed.

This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.0-M20, from 10.1.0-M1 through 10.1.24, from 9.0.0-M1 through 9.0.89.

Users are recommended to upgrade to version 11.0.0-M21, 10.1.25 or 9.0.90, which fixes the issue.

(CVE-2024-34750)

(CVE-2024-52318)

Record
OESA-2024-2460
CVSS 3.1
8.6 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
Updated
2026-11-02
OSVOESA-2024-2461 6.1

tomcat security update

The Apache Tomcat software is developed in an open and participatory environment and released under the Apache License version 2. The Apache Tomcat project is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project

Security Fix(es):

(CVE-2024-52318)

Record
OESA-2024-2461
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVOESA-2024-2462 6.1

tomcat security update

The Apache Tomcat software is developed in an open and participatory environment and released under the Apache License version 2. The Apache Tomcat project is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project

Security Fix(es):

(CVE-2024-52318)

Record
OESA-2024-2462
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVOESA-2024-2463 6.1

tomcat security update

The Apache Tomcat software is developed in an open and participatory environment and released under the Apache License version 2. The Apache Tomcat project is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project

Security Fix(es):

(CVE-2024-52318)

Record
OESA-2024-2463
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVOESA-2024-2464 6.1

tomcat security update

The Apache Tomcat software is developed in an open and participatory environment and released under the Apache License version 2. The Apache Tomcat project is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project

Security Fix(es):

(CVE-2024-52318)

Record
OESA-2024-2464
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2024-52318 6.1

Incorrect object recycling and reuse vulnerability in Apache Tomcat. This issue affects Apache Tomcat: 11.0.0, 10.1.31, 9.0.96. Users are recommended to upgrade to version 11.0.1, 10.1.32 or 9.0.97, which fixes the issue.

Record
UBUNTU-CVE-2024-52318
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVBIT-tomcat-2024-52318 No score

Apache Tomcat: Incorrect JSP tag recycling leads to XSS

Incorrect object recycling and reuse vulnerability in Apache Tomcat.

This issue affects Apache Tomcat: 11.0.0, 10.1.31, 9.0.96.

Users are recommended to upgrade to version 11.0.1, 10.1.32 or 9.0.97, which fixes the issue.

Record
BIT-tomcat-2024-52318
Updated
2026-11-02
OSVMGASA-2024-0379 No score

Updated tomcat packages fix security vulnerabilities

Authentication bypass when using Jakarta Authentication API. (CVE-2024-52316) Incorrect JSP tag recycling leads to XSS. (CVE-2024-52318)

Record
MGASA-2024-0379
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.apache.tomcat:tomcat-jasper
Maven
11.0.0 to 11.0.0
11.0.1
org.apache.tomcat:tomcat-jasper
Maven
10.1.31 to 10.1.31
10.1.32
org.apache.tomcat:tomcat-jasper
Maven
9.0.96 to 9.0.96
9.0.97
org.apache.tomcat.embed:tomcat-embed-jasper
Maven
9.0.96 to 9.0.96
9.0.97
org.apache.tomcat.embed:tomcat-embed-jasper
Maven
11.0.0 to 11.0.0
11.0.1
org.apache.tomcat.embed:tomcat-embed-jasper
Maven
10.1.31 to 10.1.31
10.1.32
org.apache.tomcat:tomcat
Maven
11.0.0 to 11.0.0
11.0.1
org.apache.tomcat:tomcat
Maven
10.1.31 to 10.1.31
10.1.32
org.apache.tomcat:tomcat
Maven
9.0.96 to 9.0.96
9.0.97
tomcat
Bitnami
9.0.96 up to 9.0.97, 10.1.31 up to 10.1.33, 11.0.0 up to 11.0.9
9.0.9710.1.3311.0.9
Show 17 moreShow less
Affected packages
PackageAffectedFixed
tomcat10
Debian:13
before 10.1.33-1
10.1.33-1
tomcat10
Debian:14
before 10.1.33-1
10.1.33-1
org.apache.tomcat:tomcat-jasper
Maven
11.0.0 up to 11.0.1
11.0.1
org.apache.tomcat:tomcat-jasper
Maven
10.1.31 up to 10.1.32
10.1.32
org.apache.tomcat.embed:tomcat-embed-jasper
Maven
9.0.96 up to 9.0.97
9.0.97
org.apache.tomcat.embed:tomcat-embed-jasper
Maven
11.0.0 up to 11.0.1
11.0.1
org.apache.tomcat.embed:tomcat-embed-jasper
Maven
10.1.31 up to 10.1.32
10.1.32
org.apache.tomcat:tomcat-jasper
Maven
9.0.96 up to 9.0.97
9.0.97
org.apache.tomcat:tomcat
Maven
11.0.0 up to 11.0.1
11.0.1
org.apache.tomcat:tomcat
Maven
10.1.31 up to 10.1.32
10.1.32
org.apache.tomcat:tomcat
Maven
9.0.96 up to 9.0.97
9.0.97
tomcat
Mageia:9
From an advisory covering 2 CVEs
before 9.0.97-1.mga9
9.0.97-1.mga9
tomcat
openEuler:24.03-LTS
From an advisory covering 8 CVEs
before 9.0.96-2.oe2403
9.0.96-2.oe2403
tomcat
openEuler:22.03-LTS-SP4
before 9.0.96-2.oe2203sp4
9.0.96-2.oe2203sp4
tomcat
openEuler:22.03-LTS-SP3
before 9.0.96-2.oe2203sp3
9.0.96-2.oe2203sp3
tomcat
openEuler:20.03-LTS-SP4
before 9.0.96-2.oe2003sp4
9.0.96-2.oe2003sp4
tomcat
openEuler:22.03-LTS-SP1
before 9.0.96-2.oe2203sp1
9.0.96-2.oe2203sp1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubTAM-K592/CVE-2024-523182024-11-21

History

History
RecordedChangedSources
affected, facts
affected
aliases, publishedEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-52318 is a medium vulnerability (CVSS 6.1) in Apache Tomcat, published November 18, 2024. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 1.88%, the 79th percentile. Fixed in org.apache.tomcat:tomcat-jasper 11.0.1.

References

Show 23 moreShow less
MoveEnter Open