CVE-2013-0248 Incorrect Default Permissions in Apache Commons FileUpload

Medium 6.8 Published Updated

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.

Weakness: CWE-264, CWE-59

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.

PackageAffectedFixed in
commons-fileupload:commons-fileupload MavenFrom 1.01.2.2
commons-fileupload:commons-fileupload MavenFrom 1.01.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.

Sources

Also known as DEBIAN-CVE-2013-0248, GHSA-vm69-474v-7q2w.

Is CVE-2013-0248 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free