CVE-2023-24998

NameCVE-2023-24998
DescriptionApache 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3617-1, DSA-5522-1, ELA-959-1, ELA-965-1
Debian Bugs1031733

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libcommons-fileupload-java (PTS)jessie, jessie (lts)1.3.1-1+deb8u1vulnerable
stretch1.3.2-2vulnerable
buster1.3.3-1vulnerable
bullseye1.4-1vulnerable
bookworm1.4-2fixed
sid, trixie1.5-1fixed
tomcat10 (PTS)bookworm (security), bookworm10.1.6-1+deb12u2fixed
sid, trixie10.1.33-1fixed
tomcat7 (PTS)jessie, jessie (lts)7.0.56-3+really7.0.109-1+deb8u6fixed
stretch7.0.75-1vulnerable
tomcat8 (PTS)jessie, jessie (lts)8.0.14-1+deb8u28fixed
stretch (security)8.5.54-0+deb9u8vulnerable
stretch (lts), stretch8.5.54-0+deb9u15fixed
tomcat9 (PTS)buster (security), buster, buster (lts)9.0.31-1~deb10u12fixed
bullseye (security), bullseye9.0.43-2~deb11u10fixed
bookworm9.0.70-2fixed
sid, trixie9.0.95-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libcommons-fileupload-javasourcejessie(unfixed)end-of-life
libcommons-fileupload-javasource(unstable)1.4-21031733
tomcat10source(unstable)10.1.5-1
tomcat7sourcejessie7.0.56-3+really7.0.109-1+deb8u4ELA-965-1
tomcat7sourcestretch(unfixed)end-of-life
tomcat7source(unstable)(unfixed)
tomcat8sourcejessie8.0.14-1+deb8u26ELA-959-1
tomcat8sourcestretch8.5.54-0+deb9u11ELA-959-1
tomcat8source(unstable)(unfixed)
tomcat9sourcebuster9.0.31-1~deb10u9DLA-3617-1
tomcat9sourcebullseye9.0.43-2~deb11u7DSA-5522-1
tomcat9source(unstable)9.0.70-2

Notes

[bullseye] - tomcat9 <postponed> (Minor issue, fix along with future update)
[bullseye] - libcommons-fileupload-java <no-dsa> (Minor issue)
[buster] - libcommons-fileupload-java <no-dsa> (Minor issue)
https://github.com/apache/commons-fileupload/commit/e20c04990f7420ca917e96a84cec58b13a1b3d17 (commons-fileupload-1.5)
Caution: patch is no-op by default, reverse-dependencies would need to provide updated settings
https://lists.apache.org/thread/4xl4l09mhwg4vgsk7dxqogcjrobrrdoy
https://github.com/apache/tomcat/commit/8a2285f13affa961cc65595aad999db5efae45ce (10.1.5)
https://github.com/apache/tomcat/commit/cf77cc545de0488fb89e24294151504a7432df74 (9.0.71)
When fixing the issue make sure to apply complete fixes to not open CVE-2023-28709
Starting with 9.0.70-2 Tomcat9 no longer ships the server stack, using that as the fixed version
[stretch] - libcommons-fileupload-java <ignored> (Minor issue; new feature is disabled by default; requires update of reverse-dependencies)

Search for package or bug name: Reporting problems