Major
#28684
DoS vulnerability in Apache Commons FileUpload (CVE-2025-48976)
There is a security vulnerability (CVE-2025-48976) in the currently used version of the Apache Commons FileUpload library, which allows attackers to trigger a denial of service (DoS) attack by deliberately placing multipart headers. The reason for this is the insufficient limitation of resources when parsing multipart headers.
The versions affected are:
1.x before 1.6
2.0.0-M1 to before 2.0.0-M4
The vulnerability will be fixed by upgrading to version 2.0.0-M4.
Note on the new version
As of version 2.0.0-M4, a new protective measure has been introduced by Apache: the configuration field partHeaderSizeMax, which limits the maximum size of individual multipart headers (default: 512 bytes). This means that overlong headers are discarded at an early stage, which prevents DoS attacks. If upload clients send particularly large headers (e.g. with extensive metadata), this value can be adjusted via the factory configuration if required.