CVE-2013-0248 Incorrect Default Permissions in Apache Commons FileUpload
Local attackers can overwrite arbitrary files via symlink attacks due to insecure default temporary directory usage in Apache Commons FileUpload.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2013-0248?
CVE-2013-0248 is a medium-severity path traversal vulnerability in n/a, published on 15 Mar 2013. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2013-0248?
2 open source packages ship an affected version, including commons-fileupload:commons-fileupload. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
commons-fileupload:commons-fileupload Maven | From 1.0 | 1.2.2 |
commons-fileupload:commons-fileupload Maven | From 1.0 | 1.2.2 |
Products include Apache Commons Fileupload.
How do I fix CVE-2013-0248?
Upgrade commons-fileupload:commons-fileupload to 1.2.2 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2013-0248 being exploited?
There is no known exploitation of CVE-2013-0248 in the wild and no public exploit code.
Other vulnerabilities in n/a
- CVE-2016-1000031 Improper Access Control in commons-fileupload
- CVE-2025-48976 Apache Commons FileUpload, Apache Commons FileUpload: FileUpload DoS via part headers
- CVE-2023-24998 Apache Commons FileUpload, Apache Tomcat: FileUpload DoS with excessive parts
- CVE-2016-3092 High severity vulnerability that affects commons-fileupload:commons-fileupload
- CVE-2014-0050 Commons FileUpload Denial of service vulnerability
Sources
Also known as DEBIAN-CVE-2013-0248, GHSA-vm69-474v-7q2w.