Incorrect Default Permissions in Apache Commons FileUpload
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | commons-fileupload:commons-fileupload | >= 1.0, < 1.2.2 | 1.2.2 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2013-0248
- https://security.gentoo.org/glsa/202107-39
- http://archives.neohapsis.com/archives/bugtraq/2013-03/0035.html
- http://marc.info/?l=bugtraq&m=144050155601375&w=2
- http://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html
- http://www.osvdb.org/90906
- Weakness (CWE)
CWE-276- Platform
- Java / Kotlin (Maven)
- Package
commons-fileupload:commons-fileupload- Disclosed
- 05.05.2022
- Updated
- 11.10.2026 12:21
Sources and licenses
OSV / GitHub Advisory Database - GHSA-vm69-474v-7q2w - CC BY 4.0
Vulnerability history: commons-fileupload:commons-fileupload
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 7
- First → latest
- 12.2018 06.2025
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 5
- Low 1
Disclosures per year
- 2018: 3
- 2019: 0
- 2020: 0
- 2021: 0
- 2022: 2
- 2023: 1
- 2024: 0
- 2025: 1
- 2026: 0
-
Incorrect Default Permissions in Apache Commons FileUpload this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.