CVE Vulnerabilities

CVE-2025-52520

Integer Overflow or Wraparound

Published: Jul 10, 2025 | Modified: Aug 08, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
3.7 LOW
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Ubuntu
MEDIUM

For some unlikely configurations of multipart upload, an Integer Overflow vulnerability in Apache Tomcat could lead to a DoS via bypassing of size limits.

This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.8, from 10.1.0-M1 through 10.1.42, from 9.0.0.M1 through 9.0.106. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 through 8.5.100. Other, older, EOL versions may also be affected.

Users are recommended to upgrade to version 11.0.9, 10.1.43 or 9.0.107, which fix the issue.

Weakness

The product performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

Affected Software

Name Vendor Start Version End Version
Tomcat Apache 9.0.0 (including) 9.0.107 (excluding)
Tomcat Apache 10.1.0 (including) 10.1.43 (excluding)
Tomcat Apache 11.0.0 (including) 11.0.9 (excluding)
Red Hat Enterprise Linux 10 RedHat tomcat9-1:9.0.87-5.el10_0.3 *
Red Hat Enterprise Linux 10 RedHat tomcat-1:10.1.36-1.el10_0.2 *
Red Hat Enterprise Linux 8 RedHat tomcat-1:9.0.87-1.el8_10.6 *
Red Hat Enterprise Linux 8.8 Telecommunications Update Service RedHat tomcat-1:9.0.87-1.el8_8.7 *
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions RedHat tomcat-1:9.0.87-1.el8_8.7 *
Red Hat Enterprise Linux 9 RedHat tomcat-1:9.0.87-3.el9_6.3 *
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions RedHat tomcat-1:9.0.87-1.el9_2.6 *
Red Hat Enterprise Linux 9.4 Extended Update Support RedHat tomcat-1:9.0.87-1.el9_4.6 *
Red Hat JBoss Web Server 5.8.5 RedHat jws5-tomcat *
Red Hat JBoss Web Server 5.8 on RHEL 7 RedHat jws5-tomcat-0:9.0.87-12.redhat_00011.1.el7jws *
Red Hat JBoss Web Server 5.8 on RHEL 8 RedHat jws5-tomcat-0:9.0.87-12.redhat_00011.1.el8jws *
Red Hat JBoss Web Server 5.8 on RHEL 9 RedHat jws5-tomcat-0:9.0.87-12.redhat_00011.1.el9jws *
Red Hat JBoss Web Server 6.1.2 RedHat jws6-tomcat *
Red Hat JBoss Web Server 6.1 on RHEL 10 RedHat jws6-tomcat-0:10.1.36-8.redhat_00009.1.el10jws *
Red Hat JBoss Web Server 6.1 on RHEL 8 RedHat jws6-tomcat-0:10.1.36-8.redhat_00009.1.el8jws *
Red Hat JBoss Web Server 6.1 on RHEL 9 RedHat jws6-tomcat-0:10.1.36-8.redhat_00009.1.el9jws *
Tomcat10 Ubuntu devel *
Tomcat10 Ubuntu esm-apps/noble *
Tomcat10 Ubuntu noble *
Tomcat10 Ubuntu plucky *
Tomcat10 Ubuntu upstream *
Tomcat11 Ubuntu devel *
Tomcat11 Ubuntu upstream *
Tomcat9 Ubuntu esm-apps/bionic *
Tomcat9 Ubuntu esm-apps/focal *
Tomcat9 Ubuntu esm-apps/jammy *
Tomcat9 Ubuntu jammy *
Tomcat9 Ubuntu upstream *

Potential Mitigations

  • Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • If possible, choose a language or compiler that performs automatic bounds checking.
  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • Use libraries or frameworks that make it easier to handle numbers without unexpected consequences.
  • Examples include safe integer handling packages such as SafeInt (C++) or IntegerLib (C or C++). [REF-106]
  • Perform input validation on any numeric input by ensuring that it is within the expected range. Enforce that the input meets both the minimum and maximum requirements for the expected range.
  • Use unsigned integers where possible. This makes it easier to perform validation for integer overflows. When signed integers are required, ensure that the range check includes minimum values as well as maximum values.
  • Understand the programming language’s underlying representation and how it interacts with numeric calculation (CWE-681). Pay close attention to byte size discrepancies, precision, signed/unsigned distinctions, truncation, conversion and casting between types, “not-a-number” calculations, and how the language handles numbers that are too large or too small for its underlying representation. [REF-7]
  • Also be careful to account for 32-bit, 64-bit, and other potential differences that may affect the numeric representation.

References