CVEfocus › CVE database › CVE-2023-42794

CVE-2023-42794Apache Tomcat: FileUpload: DoS due to accumulation of temporary files on Windows

EPSS 1.7% (higher than 77% of CVEs)Published 2023-10-10Updated 2026-10-08Assigner: apache

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.

CWE-459

What to do

Fixed builds are available from AlmaLinux, Maven, Red Hat: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

33Fixed
1Fix pending
15Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04tomcat8Fix pending
Red Hat Enterprise Linux 9pki-servlet-4.0-apiNot affected
Red Hat Enterprise Linux 9pki-servlet-engineNot affected
Red Hat Enterprise Linux 9tomcatFixed1:9.0.62-37.el9_3.1RHSA-2024:0474
Red Hat Enterprise Linux 9tomcat-admin-webappsFixed1:9.0.62-37.el9_3.1RHSA-2024:0474
Red Hat Enterprise Linux 9tomcat-docs-webappFixed1:9.0.62-37.el9_3.1RHSA-2024:0474
Red Hat Enterprise Linux 9tomcat-el-3.0-apiFixed1:9.0.62-37.el9_3.1RHSA-2024:0474
Red Hat Enterprise Linux 9tomcat-jsp-2.3-apiFixed1:9.0.62-37.el9_3.1RHSA-2024:0474
Red Hat Enterprise Linux 9tomcat-libFixed1:9.0.62-37.el9_3.1RHSA-2024:0474
Red Hat Enterprise Linux 9tomcat-servlet-4.0-apiFixed1:9.0.62-37.el9_3.1RHSA-2024:0474
Red Hat Enterprise Linux 9tomcat-webappsFixed1:9.0.62-37.el9_3.1RHSA-2024:0474
Red Hat Enterprise Linux 8pki-servlet-4.0-apiNot affected
Red Hat Enterprise Linux 8pki-servlet-containerNot affected
Red Hat Enterprise Linux 8pki-servlet-engineNot affected
Red Hat Enterprise Linux 8tomcatFixed1:9.0.62-27.el8_9.2RHSA-2024:0125
Red Hat Enterprise Linux 8tomcat-admin-webappsFixed1:9.0.62-27.el8_9.2RHSA-2024:0125
Red Hat Enterprise Linux 8tomcat-docs-webappFixed1:9.0.62-27.el8_9.2RHSA-2024:0125
Red Hat Enterprise Linux 8tomcat-el-3.0-apiFixed1:9.0.62-27.el8_9.2RHSA-2024:0125
Red Hat Enterprise Linux 8tomcat-jsp-2.3-apiFixed1:9.0.62-27.el8_9.2RHSA-2024:0125
Red Hat Enterprise Linux 8tomcat-libFixed1:9.0.62-27.el8_9.2RHSA-2024:0125
Red Hat Enterprise Linux 8tomcat-servlet-4.0-apiFixed1:9.0.62-27.el8_9.2RHSA-2024:0125
Red Hat Enterprise Linux 8tomcat-webappsFixed1:9.0.62-27.el8_9.2RHSA-2024:0125
Red Hat Enterprise Linux 7tomcatNot affected
Red Hat Enterprise Linux 7tomcat-admin-webappsNot affected
Red Hat Enterprise Linux 7tomcat-docs-webappNot affected
Red Hat Enterprise Linux 7tomcat-el-2.2-apiNot affected
Red Hat Enterprise Linux 7tomcat-javadocNot affected
Red Hat Enterprise Linux 7tomcat-jsp-2.2-apiNot affected
Red Hat Enterprise Linux 7tomcat-jsvcNot affected
Red Hat Enterprise Linux 7tomcat-libNot affected
Red Hat Enterprise Linux 7tomcat-servlet-3.0-apiNot affected
Red Hat Enterprise Linux 7tomcat-webappsNot affected
AlmaLinux 9tomcatFixed1:9.0.62-37.el9_3.1ALSA-2024:0474
AlmaLinux 9tomcat-admin-webappsFixed1:9.0.62-37.el9_3.1ALSA-2024:0474
AlmaLinux 9tomcat-docs-webappFixed1:9.0.62-37.el9_3.1ALSA-2024:0474
AlmaLinux 9tomcat-el-3.0-apiFixed1:9.0.62-37.el9_3.1ALSA-2024:0474
AlmaLinux 9tomcat-jsp-2.3-apiFixed1:9.0.62-37.el9_3.1ALSA-2024:0474
AlmaLinux 9tomcat-libFixed1:9.0.62-37.el9_3.1ALSA-2024:0474
AlmaLinux 9tomcat-servlet-4.0-apiFixed1:9.0.62-37.el9_3.1ALSA-2024:0474
AlmaLinux 9tomcat-webappsFixed1:9.0.62-37.el9_3.1ALSA-2024:0474
AlmaLinux 8tomcatFixed1:9.0.62-27.el8_9.2ALSA-2024:0125
AlmaLinux 8tomcat-admin-webappsFixed1:9.0.62-27.el8_9.2ALSA-2024:0125
AlmaLinux 8tomcat-docs-webappFixed1:9.0.62-27.el8_9.2ALSA-2024:0125
AlmaLinux 8tomcat-el-3.0-apiFixed1:9.0.62-27.el8_9.2ALSA-2024:0125
AlmaLinux 8tomcat-jsp-2.3-apiFixed1:9.0.62-27.el8_9.2ALSA-2024:0125
AlmaLinux 8tomcat-libFixed1:9.0.62-27.el8_9.2ALSA-2024:0125
AlmaLinux 8tomcat-servlet-4.0-apiFixed1:9.0.62-27.el8_9.2ALSA-2024:0125
AlmaLinux 8tomcat-webappsFixed1:9.0.62-27.el8_9.2ALSA-2024:0125
Maven libraryorg.apache.tomcat:tomcat-coyoteFixed9.0.81GHSA-jm7m-8jh6-29hp

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.