HighGHSA-hfrx-6qgj-fp6cCVE-2023-24998

Apache Commons FileUpload denial of service vulnerability

Published 20 Feb 2023 · Updated 7 Aug 2026

Is your project on an affected commons-fileupload:commons-fileupload?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
<1.5
Fixed in
1.5
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=commons-fileupload:commons-fileupload -DdepVersion=1.5 -DforceVersion=true
Affected
>=10.1.0-M1 <10.1.5
Fixed in
10.1.5
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-coyote -DdepVersion=10.1.5 -DforceVersion=true
Affected
>=11.0.0-M2 <11.0.0-M5
Fixed in
11.0.0-M5
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-coyote -DdepVersion=11.0.0-M5 -DforceVersion=true
Affected
>=8.5.85 <8.5.88
Fixed in
8.5.88
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-coyote -DdepVersion=8.5.88 -DforceVersion=true
Affected
>=9.0.0-M1 <9.0.71
Fixed in
9.0.71
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-coyote -DdepVersion=9.0.71 -DforceVersion=true
Affected
>=10.1.0-M1 <10.1.5
Fixed in
10.1.5
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=10.1.5 -DforceVersion=true
Affected
>=11.0.0-M2 <11.0.0-M5
Fixed in
11.0.0-M5
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=11.0.0-M5 -DforceVersion=true
Affected
>=8.5.85 <8.5.88
Fixed in
8.5.88
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=8.5.88 -DforceVersion=true
Affected
>=9.0.0-M1 <9.0.71
Fixed in
9.0.71
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=9.0.71 -DforceVersion=true
Affected
>=10.1.0-M1 <10.1.5
Fixed in
10.1.5
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-catalina -DdepVersion=10.1.5 -DforceVersion=true
Affected
>=11.0.0-M2 <11.0.0-M5
Fixed in
11.0.0-M5
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-catalina -DdepVersion=11.0.0-M5 -DforceVersion=true
Affected
>=8.5.85 <8.5.88
Fixed in
8.5.88
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-catalina -DdepVersion=8.5.88 -DforceVersion=true
Affected
>=9.0.0-M1 <9.0.71
Fixed in
9.0.71
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-catalina -DdepVersion=9.0.71 -DforceVersion=true

Details

Apache Commons FileUpload before 1.5 does not limit the number of request parts to be processed resulting in the possibility of an attacker triggering a DoS with a malicious upload or series of uploads. Note that, like all of the file upload limits, the new configuration option (FileUploadBase#setFileCountMax) is not enabled by default and must be explicitly configured.

Is GHSA-hfrx-6qgj-fp6c in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected commons-fileupload:commons-fileupload, and gives you the command that fixes it.

More advisories for commons-fileupload:commons-fileupload

  • HighCVE-2025-48976Apache Commons FileUpload, Apache Commons FileUpload: FileUpload DoS via part headers · 16 Jun 2025
  • HighCVE-2013-2186Arbitrary file write in Apache Commons Fileupload · 14 May 2022
  • LowCVE-2013-0248Incorrect Default Permissions in Apache Commons FileUpload · 5 May 2022
  • CriticalCVE-2016-1000031Improper Access Control in commons-fileupload · 21 Dec 2018
  • HighCVE-2014-0050Commons FileUpload Denial of service vulnerability · 21 Dec 2018
  • HighCVE-2016-3092High severity vulnerability that affects commons-fileupload:commons-fileupload · 21 Dec 2018
commons-fileupload:commons-fileupload security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.