# CVE-2016-1000031: Improper Access Control in commons-fileupload

> Attackers can achieve remote code execution by exploiting unsafe deserialization in the Apache Commons FileUpload library.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 25 Oct 2016
- **Updated:** 7 Oct 2026
- **Also known as:** DEBIAN-CVE-2016-1000031, GHSA-7x9j-7223-rg5m, SUSE-SU-2019:1212-1, SUSE-SU-2019:1212-2, SUSE-SU-2019:1214-1, SUSE-SU-2019:14044-1, UBUNTU-CVE-2016-1000031, openSUSE-SU-2019:1399-1

## What is CVE-2016-1000031?

CVE-2016-1000031 is a critical unsafe deserialization vulnerability in n/a, published on 25 Oct 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Apache Commons FileUpload before 1.3.3 DiskFileItem File Manipulation Remote Code Execution

Weakness: CWE-284 (Improper Access Control)

## Which versions are affected by CVE-2016-1000031?

2 open source packages ship an affected version, including commons-fileupload:commons-fileupload. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `commons-fileupload:commons-fileupload` | Maven | All versions | 1.3.3 |
| `commons-fileupload:commons-fileupload` | Maven | All versions | 1.3.3 |
| `jakarta-commons-fileupload` | SUSE:Enterprise Storage 4 | All versions | 1.1.1-122.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Module for Web and Scripting 15 | All versions | 1.1.1-4.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Module for Web and Scripting 15 SP1 | All versions | 1.1.1-4.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Point of Sale 11 SP3 | All versions | 1.1.1-1.37.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Server 11 SP4-LTSS | All versions | 1.1.1-1.37.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Server 12 SP1-LTSS | All versions | 1.1.1-122.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 1.1.1-122.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Server 12 SP2-LTSS | All versions | 1.1.1-122.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Server 12 SP3 | All versions | 1.1.1-122.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Server 12 SP4 | All versions | 1.1.1-122.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Server 12-LTSS | All versions | 1.1.1-122.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | All versions | 1.1.1-122.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | All versions | 1.1.1-122.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | All versions | 1.1.1-122.3.1 |
| `jakarta-commons-fileupload` | SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 1.1.1-122.3.1 |
| `jakarta-commons-fileupload` | SUSE:OpenStack Cloud 7 | All versions | 1.1.1-122.3.1 |
| `jakarta-commons-fileupload` | openSUSE:Leap 15.0 | All versions | 1.1.1-lp150.2.3.1 |

Products: Apache Commons Fileupload.

## How do I fix CVE-2016-1000031?

Upgrade commons-fileupload:commons-fileupload to 1.3.3 or later.

## Is CVE-2016-1000031 being exploited?

There is no known exploitation of CVE-2016-1000031 in the wild and no public exploit code.

## Other vulnerabilities in n/a

- [CVE-2025-48976](https://insights.sbomify.com/CVE-2025-48976/): Apache Commons FileUpload, Apache Commons FileUpload: FileUpload DoS via part headers (high 7.5)
- [CVE-2023-24998](https://insights.sbomify.com/CVE-2023-24998/): Apache Commons FileUpload, Apache Tomcat: FileUpload DoS with excessive parts (high 7.5)
- [CVE-2016-3092](https://insights.sbomify.com/CVE-2016-3092/): High severity vulnerability that affects commons-fileupload:commons-fileupload (high 7.5)
- [CVE-2014-0050](https://insights.sbomify.com/CVE-2014-0050/): Commons FileUpload Denial of service vulnerability (high 7.5)
- [CVE-2013-0248](https://insights.sbomify.com/CVE-2013-0248/): Incorrect Default Permissions in Apache Commons FileUpload (medium 6.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2016-1000031 and fix it if it is affected.

What it is: CVE-2016-1000031 is a critical unsafe deserialization vulnerability in n/a, published on 25 Oct 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2016-1000031 in the wild and no public exploit code.

Affected packages and fixed versions:
- commons-fileupload:commons-fileupload (Maven): affected all versions; fixed in 1.3.3
- commons-fileupload:commons-fileupload (Maven): affected all versions; fixed in 1.3.3

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2016-1000031/ (Markdown: https://insights.sbomify.com/CVE-2016-1000031/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2016-1000031
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2016-1000031
- OSV: https://osv.dev/vulnerability/CVE-2016-1000031

---
From sbomify Insights: https://insights.sbomify.com/CVE-2016-1000031/
Summaries are generated and may contain mistakes; the official description above is the record.
