CVE Vulnerabilities

CVE-2025-52520

Integer Overflow or Wraparound

Published: Jul 10, 2025 | Modified: Nov 04, 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
root.io logo minimus.io logo echo.ai logo

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 occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.

Affected Software

NameVendorStart VersionEnd Version
TomcatApache9.0.0 (including)9.0.107 (excluding)
TomcatApache10.1.0 (including)10.1.43 (excluding)
TomcatApache11.0.0 (including)11.0.9 (excluding)
Red Hat Enterprise Linux 10RedHattomcat9-1:9.0.87-5.el10_0.3*
Red Hat Enterprise Linux 10RedHattomcat-1:10.1.36-1.el10_0.2*
Red Hat Enterprise Linux 8RedHattomcat-1:9.0.87-1.el8_10.6*
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRedHattomcat-1:9.0.87-1.el8_8.7*
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRedHattomcat-1:9.0.87-1.el8_8.7*
Red Hat Enterprise Linux 9RedHattomcat-1:9.0.87-3.el9_6.3*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHattomcat-1:9.0.87-1.el9_2.6*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHattomcat-1:9.0.87-1.el9_4.6*
Red Hat JBoss Web Server 5.8.5RedHatjws5-tomcat*
Red Hat JBoss Web Server 5.8 on RHEL 7RedHatjws5-tomcat-0:9.0.87-12.redhat_00011.1.el7jws*
Red Hat JBoss Web Server 5.8 on RHEL 8RedHatjws5-tomcat-0:9.0.87-12.redhat_00011.1.el8jws*
Red Hat JBoss Web Server 5.8 on RHEL 9RedHatjws5-tomcat-0:9.0.87-12.redhat_00011.1.el9jws*
Red Hat JBoss Web Server 6.1.2RedHatjws6-tomcat*
Red Hat JBoss Web Server 6.1 on RHEL 10RedHatjws6-tomcat-0:10.1.36-8.redhat_00009.1.el10jws*
Red Hat JBoss Web Server 6.1 on RHEL 8RedHatjws6-tomcat-0:10.1.36-8.redhat_00009.1.el8jws*
Red Hat JBoss Web Server 6.1 on RHEL 9RedHatjws6-tomcat-0:10.1.36-8.redhat_00009.1.el9jws*
Tomcat10Ubuntudevel*
Tomcat10Ubuntuesm-apps/noble*
Tomcat10Ubuntunoble*
Tomcat10Ubuntuplucky*
Tomcat10Ubuntuquesting*
Tomcat10Ubuntuupstream*
Tomcat11Ubuntudevel*
Tomcat11Ubuntuquesting*
Tomcat11Ubuntuupstream*
Tomcat9Ubuntuesm-apps/bionic*
Tomcat9Ubuntuesm-apps/focal*
Tomcat9Ubuntuesm-apps/jammy*
Tomcat9Ubuntujammy*
Tomcat9Ubuntuupstream*

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 [REF-1482].
  • 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