CVE-2023-42794
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIncomplete 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA vulnerability in the internal fork of Commons FileUpload bundled with Apache Tomcat 9.0.70-9.0.80 and 8.5.85-8.5.93 leaves uploaded files undeleted when application streams aren't properly closed, potentially causing disk exhaustion and denial of service on Windows systems.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 8.5.85, < 8.5.94>= 9.0.70, < 9.0.81CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Apache Tomcat versionCheck the VERSION file in the Tomcat installation directory, or look for the version in the server startup logs. On Linux/Unix, you can also run: grep -r "Apache Tomcat" $CATALINA_HOME/LICENSE or check RELEASE-NOTES file.Affected if The installed version is 8.5.85 through 8.5.93, or 9.0.70 through 9.0.80.
-
Confirm operating systemCheck if the Tomcat server is running on Windows. Run 'uname -a' on Linux/Unix or check System Properties on Windows.Affected if The server is running on Windows, as the file undeletion issue specifically causes disk exhaustion on this OS.
-
Verify file upload is in useReview the application deployed on Tomcat to determine if it uses Commons FileUpload or standard Servlet 3.0 multipart requests for handling file uploads. Check web.xml for any multipart-config or look for file upload related code in the deployed applications.Affected if The deployed application uses file upload functionality via Tomcat's Commons FileUpload or Servlet multipart requests.
-
Inspect temp directory for orphaned filesOn Windows, check the Tomcat temp directory (default is %CATALINA_HOME%\temp or the directory specified by java.io.tmpdir) for any accumulating uploaded files. List files and note their age and size.Affected if Large numbers of undeleted uploaded files are present in the temp directory, indicating the vulnerability has been triggered.
You are affected if your Tomcat version falls within 8.5.85-8.5.93 or 9.0.70-9.0.80, you are running on Windows, and your application handles file uploads, resulting in orphaned temp files.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped8.5.949.0.81
Upgrade to Apache Tomcat 9.0.81 or later, or 8.5.94 or later to resolve this issue.
Apache Tomcat 8.5.94 (or later 8.5.x) or 9.0.81 (or later 9.0.x)
- Identify the currently running Tomcat version (8.5.x or 9.0.x branch)
- Stop the Tomcat service or instance
- Backup the entire Tomcat installation directory including conf/ and webapps/
- Download the fixed version: Apache Tomcat 8.5.94 or later, or 9.0.81 or later from https://tomcat.apache.org/
- Extract the new Tomcat version to a temporary location
- Copy the new Tomcat binaries to replace the old installation
- Restore the conf/ directory (server.xml, context.xml, etc.) from the backup
- Restore deployed applications from the backup if not using a separate webapps directory
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing3.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,224.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-42794 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2023-42794 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data