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

Published Oct 10, 2023
·
Updated

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.

Other sources

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.

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

— NVD

Affected Software

6 affected componentsFixes available
redhat/tomcat<9.0.81
9.0.81
redhat/tomcat<8.5.94
8.5.94
maven/org.apache.tomcat:tomcat-coyote>=8.5.85<8.5.94
8.5.94
maven/org.apache.tomcat:tomcat-coyote>=9.0.70<9.0.81
9.0.81
Apache Tomcat>=8.5.85<8.5.94
Apache Tomcat>=9.0.70<9.0.81

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat-coyote to a version that resolves this vulnerability.

    Fixed in 8.5.94
  2. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat-coyote to a version that resolves this vulnerability.

    Fixed in 9.0.81
  3. Upgrade

    Upgrade redhat/tomcat to a version that resolves this vulnerability.

    Fixed in 9.0.81
  4. Upgrade

    Upgrade redhat/tomcat to a version that resolves this vulnerability.

    Fixed in 8.5.94
  5. Upgrade

    Upgrade Apache Tomcat (FileUpload: Commons FileUpload internal fork) to a version that resolves this vulnerability.

    Fixed in 9.0.81 onwardsPatch CVE-2023-42794
  6. Upgrade

    Upgrade Apache Tomcat (FileUpload: Commons FileUpload internal fork) to a version that resolves this vulnerability.

    Fixed in 8.5.94 onwardsPatch CVE-2023-42794

Event History

Oct 10, 2023
CVE Published
via MITRE·05:17 PM
Data Sourced
via MITRE·05:17 PM
DescriptionWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·06:31 PM
Oct 12, 2023
Data Sourced
via Red Hat·09:26 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2023-42794?

CVE-2023-42794 is an incomplete cleanup vulnerability in Apache Tomcat that can result in a denial of service due to the accumulation of temporary files on Windows.

2

Which versions of Apache Tomcat are affected by CVE-2023-42794?

Apache Tomcat versions 8.5.85 through 8.5.93 and 9.0.70 through 9.0.80 are affected by CVE-2023-42794.

3

How can CVE-2023-42794 be exploited?

CVE-2023-42794 can be exploited by a web application opening a large number of file upload requests on Windows, leading to the accumulation of temporary files and a potential denial of service.

4

What is the remedy for CVE-2023-42794?

To fix CVE-2023-42794, upgrade to Apache Tomcat version 8.5.94 or 9.0.81.

5

Where can I find more information about CVE-2023-42794?

You can find more information about CVE-2023-42794 on the Openwall, Apache, and NIST websites using the provided references.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203