CVE Vulnerabilities

CVE-2023-42794

Incomplete Cleanup

Published: Oct 10, 2023 | Modified: Oct 29, 2025
CVSS 3.x
5.9
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
5.9 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Incomplete Cleanup vulnerability in Apache Tomcat.

The internal fork of Commons FileUpload packaged with Apache Tomcat 9.0.70 through 9.0.80 and 8.5.85 through 8.5.93 included an unreleased, in progress refactoring that exposed a potential denial of service on Windows if a web application opened a stream for an uploaded file but failed to close the stream. The file would never be deleted from disk creating the possibility of an eventual denial of service due to the disk being full.

Other, EOL versions may also be affected.

Users are recommended to upgrade to version 9.0.81 onwards or 8.5.94 onwards, which fixes the issue.

Weakness

The product does not properly “clean up” and remove temporary or supporting resources after they have been used.

Affected Software

NameVendorStart VersionEnd Version
TomcatApache8.5.85 (including)8.5.94 (excluding)
TomcatApache9.0.70 (including)9.0.81 (excluding)
Red Hat Enterprise Linux 8RedHattomcat-1:9.0.62-27.el8_9.2*
Red Hat Enterprise Linux 9RedHattomcat-1:9.0.62-37.el9_3.1*
Red Hat Fuse 7.12.1RedHattomcat*
Red Hat JBoss Web Server 5RedHat*
Tomcat10Ubuntubionic*
Tomcat10Ubuntulunar*
Tomcat10Ubuntumantic*
Tomcat10Ubuntutrusty*
Tomcat10Ubuntuxenial*
Tomcat8Ubuntubionic*
Tomcat8Ubuntutrusty*
Tomcat8Ubuntuxenial*
Tomcat9Ubuntubionic*
Tomcat9Ubuntufocal*
Tomcat9Ubuntulunar*
Tomcat9Ubuntumantic*
Tomcat9Ubuntutrusty*
Tomcat9Ubuntuxenial*

Potential Mitigations

References