CVE-2013-0248
MediumCVSS 6.8Exploitation Probability (EPSS)
Elevated risk55th percentile - higher than 55% of all known CVEs
Summary
The default configuration of javax.servlet.context.tempdir in Apache Commons FileUpload 1.0 through 1.2.2 uses the /tmp directory for uploaded files, which allows local users to overwrite arbitrary files via an unspecified symlink attack.
Risk Assessment
A local attacker can overwrite arbitrary files accessible to the server process, potentially leading to code execution or system destabilization. The risk affects applications using vulnerable versions of Apache Commons FileUpload with default configuration.
Recommendation
Update Apache Commons FileUpload to a version later than 1.2.2. Configure javax.servlet.context.tempdir to a directory with restricted access to prevent symlink attacks.
Other vulnerabilities in Apache Commons FileUpload
See all- CVE-2023-24998High
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.
- CVE-2016-1000031Critical
Apache Commons FileUpload before version 1.3.3 has a vulnerability that allows remote code execution through DiskFileItem file manipulation.
- CVE-2014-0050High
Apache Commons FileUpload before version 1.3.1 has a vulnerability that allows remote attackers to cause a denial of service via a crafted Content-Type header. This can lead to an infinite loop and high CPU consumption.
Original NVD description (English source)
The default configuration of javax.servlet.context.tempdir in Apache Commons FileUpload 1.0 through 1.2.2 uses the /tmp directory for uploaded files, which allows local users to overwrite arbitrary files via an unspecified symlink attack.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

