Skip to content
Fencer Intel
medium 6.8

CVE-2013-0248 json

Incorrect Default Permissions in Apache Commons FileUpload

published 13y ago modified last mo. also GHSA-vm69-474v-7q2w , EUVD-2022-5378

cvss
6.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 56%
public exploits
0
none known

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.

Patch / fix

  • maven commons-fileupload:commons-fileupload 1.2.2
  • libcommons-fileupload-java Debian 14, Debian 13, Debian 12 1.3-1

debian advisories DEBIAN-CVE-2013-0248

Is CVE-2013-0248 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2013-0248 updated cvss 2.1

apache-commons-fileupload: /tmp directory used by default for uploaded files (possibility to overwrite arbitrary files)

  • Red Hat Enterprise Linux 5 jakarta-commons-fileupload
    affected: workaround, no fix planned “By default, the system wide temporary directory is configured as the repository to use when uploading files. Setting the repository to another location will mitigate this vulnerability.”
  • Red Hat Enterprise Virtualization 3 jasperreports-server-pro
    affected: workaround, no fix available “By default, the system wide temporary directory is configured as the repository to use when uploading files. Setting the repository to another location will mitigate this vulnerability.”
  • Red Hat JBoss BRMS 5 commons-fileupload Red Hat JBoss Enterprise Application Platform 4 commons-fileupload Red Hat JBoss Enterprise Application Platform 5 commons-fileupload Red Hat JBoss Enterprise Web Server 1 commons-fileupload
    affected: workaround, no fix planned “By default, the system wide temporary directory is configured as the repository to use when uploading files. Setting the repository to another location will mitigate this vulnerability.”
  • Red Hat JBoss Fuse Service Works 6 commons-fileupload
    affected: workaround, no fix available “By default, the system wide temporary directory is configured as the repository to use when uploading files. Setting the repository to another location will mitigate this vulnerability.”
  • Red Hat JBoss Portal 4 commons-fileupload Red Hat JBoss Portal 5 commons-fileupload Red Hat JBoss SOA Platform 4 commons-fileupload Red Hat JBoss SOA Platform 5 commons-fileupload Red Hat Satellite 5 jakarta-commons-fileupload
    affected: workaround, no fix planned “By default, the system wide temporary directory is configured as the repository to use when uploading files. Setting the repository to another location will mitigate this vulnerability.”
  • Red Hat JBoss BRMS 6 commons-fileupload Red Hat JBoss Operations Network 3 commons-fileupload Red Hat OpenShift Enterprise 2 jenkins Red Hat Software Collections commons-fileupload, thermostat1-apache-commons-fileupload, thermostat1-apache-commons-fileupload-javadoc
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
last mo.

Exploit prediction

0.79% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CISA ADP 3.1 6.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
CNA 3.1 6.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
NVD 2.0 3.3 AV:L/AC:M/Au:N/C:N/I:P/A:P

Affected packages

ecosystem package affected fixed in
maven commons-fileupload:commons-fileupload
>=1.0, <1.2.2
1.2.2

Classification

Weakness
  • CWE-59 Improper Link Resolution Before File Access
  • CWE-264 Permissions, Privileges, and Access Controls
  • CWE-276 Incorrect Default Permissions

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.