CVE-2023-42794Apache Tomcat: FileUpload: DoS due to accumulation of temporary files on Windows
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | tomcat8 | Fix pending | ||
| Red Hat Enterprise Linux 9 | pki-servlet-4.0-api | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-servlet-engine | Not affected | ||
| Red Hat Enterprise Linux 9 | tomcat | Fixed | 1:9.0.62-37.el9_3.1 | RHSA-2024:0474 |
| Red Hat Enterprise Linux 9 | tomcat-admin-webapps | Fixed | 1:9.0.62-37.el9_3.1 | RHSA-2024:0474 |
| Red Hat Enterprise Linux 9 | tomcat-docs-webapp | Fixed | 1:9.0.62-37.el9_3.1 | RHSA-2024:0474 |
| Red Hat Enterprise Linux 9 | tomcat-el-3.0-api | Fixed | 1:9.0.62-37.el9_3.1 | RHSA-2024:0474 |
| Red Hat Enterprise Linux 9 | tomcat-jsp-2.3-api | Fixed | 1:9.0.62-37.el9_3.1 | RHSA-2024:0474 |
| Red Hat Enterprise Linux 9 | tomcat-lib | Fixed | 1:9.0.62-37.el9_3.1 | RHSA-2024:0474 |
| Red Hat Enterprise Linux 9 | tomcat-servlet-4.0-api | Fixed | 1:9.0.62-37.el9_3.1 | RHSA-2024:0474 |
| Red Hat Enterprise Linux 9 | tomcat-webapps | Fixed | 1:9.0.62-37.el9_3.1 | RHSA-2024:0474 |
| Red Hat Enterprise Linux 8 | pki-servlet-4.0-api | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-servlet-container | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-servlet-engine | Not affected | ||
| Red Hat Enterprise Linux 8 | tomcat | Fixed | 1:9.0.62-27.el8_9.2 | RHSA-2024:0125 |
| Red Hat Enterprise Linux 8 | tomcat-admin-webapps | Fixed | 1:9.0.62-27.el8_9.2 | RHSA-2024:0125 |
| Red Hat Enterprise Linux 8 | tomcat-docs-webapp | Fixed | 1:9.0.62-27.el8_9.2 | RHSA-2024:0125 |
| Red Hat Enterprise Linux 8 | tomcat-el-3.0-api | Fixed | 1:9.0.62-27.el8_9.2 | RHSA-2024:0125 |
| Red Hat Enterprise Linux 8 | tomcat-jsp-2.3-api | Fixed | 1:9.0.62-27.el8_9.2 | RHSA-2024:0125 |
| Red Hat Enterprise Linux 8 | tomcat-lib | Fixed | 1:9.0.62-27.el8_9.2 | RHSA-2024:0125 |
| Red Hat Enterprise Linux 8 | tomcat-servlet-4.0-api | Fixed | 1:9.0.62-27.el8_9.2 | RHSA-2024:0125 |
| Red Hat Enterprise Linux 8 | tomcat-webapps | Fixed | 1:9.0.62-27.el8_9.2 | RHSA-2024:0125 |
| Red Hat Enterprise Linux 7 | tomcat | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-admin-webapps | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-docs-webapp | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-el-2.2-api | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-javadoc | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-jsp-2.2-api | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-jsvc | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-lib | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-servlet-3.0-api | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-webapps | Not affected | ||
| AlmaLinux 9 | tomcat | Fixed | 1:9.0.62-37.el9_3.1 | ALSA-2024:0474 |
| AlmaLinux 9 | tomcat-admin-webapps | Fixed | 1:9.0.62-37.el9_3.1 | ALSA-2024:0474 |
| AlmaLinux 9 | tomcat-docs-webapp | Fixed | 1:9.0.62-37.el9_3.1 | ALSA-2024:0474 |
| AlmaLinux 9 | tomcat-el-3.0-api | Fixed | 1:9.0.62-37.el9_3.1 | ALSA-2024:0474 |
| AlmaLinux 9 | tomcat-jsp-2.3-api | Fixed | 1:9.0.62-37.el9_3.1 | ALSA-2024:0474 |
| AlmaLinux 9 | tomcat-lib | Fixed | 1:9.0.62-37.el9_3.1 | ALSA-2024:0474 |
| AlmaLinux 9 | tomcat-servlet-4.0-api | Fixed | 1:9.0.62-37.el9_3.1 | ALSA-2024:0474 |
| AlmaLinux 9 | tomcat-webapps | Fixed | 1:9.0.62-37.el9_3.1 | ALSA-2024:0474 |
| AlmaLinux 8 | tomcat | Fixed | 1:9.0.62-27.el8_9.2 | ALSA-2024:0125 |
| AlmaLinux 8 | tomcat-admin-webapps | Fixed | 1:9.0.62-27.el8_9.2 | ALSA-2024:0125 |
| AlmaLinux 8 | tomcat-docs-webapp | Fixed | 1:9.0.62-27.el8_9.2 | ALSA-2024:0125 |
| AlmaLinux 8 | tomcat-el-3.0-api | Fixed | 1:9.0.62-27.el8_9.2 | ALSA-2024:0125 |
| AlmaLinux 8 | tomcat-jsp-2.3-api | Fixed | 1:9.0.62-27.el8_9.2 | ALSA-2024:0125 |
| AlmaLinux 8 | tomcat-lib | Fixed | 1:9.0.62-27.el8_9.2 | ALSA-2024:0125 |
| AlmaLinux 8 | tomcat-servlet-4.0-api | Fixed | 1:9.0.62-27.el8_9.2 | ALSA-2024:0125 |
| AlmaLinux 8 | tomcat-webapps | Fixed | 1:9.0.62-27.el8_9.2 | ALSA-2024:0125 |
| Maven library | org.apache.tomcat:tomcat-coyote | Fixed | 9.0.81 | GHSA-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.
- Apache Software Foundation Apache Tomcat: affected: 9.0.70 to 9.0.80, 8.5.85 to 8.5.93
Vendor advisories:
- https://lists.apache.org/thread/vvbr2ms7lockj1hlhz5q3wmxb2mwcw82 (vendor-advisory)
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.