CVE-2016-1000031: Commons fileupload Improper Access Control Vulnerability
CRITICALCVE-2016-1000031 is a CRITICAL (CVSS 9.8) improper access control vulnerability (CWE-284: Improper Access Control) affecting Commons fileupload libraries in the Maven ecosystem. The issue involves improper access control in commons-fileupload. Remediation is available by upgrading affected packages to version 1.3.3.
CVE-2016-1000031 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2016-1000031
To remediate this vulnerability, upgrade all affected Commons fileupload dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3.3</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=commons-fileupload
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2016-1000031, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=commons-fileupload
Analyze the terminal output to locate any version of Commons fileupload in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.3), your application is affected.
Note: The mvn dependency:tree -Dincludes=commons-fileupload command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Commons fileupload, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2016-1000031 Affected Commons fileupload Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
commons-fileupload:commons-fileupload
|
Maven |
< 1.3.3
|
1.3.3
|
References
Frequently Asked Questions
What is CVE-2016-1000031?
Which Commons fileupload versions are affected?
What version fixes CVE-2016-1000031?
Is commons-fileupload affected?
What is the CVSS score of CVE-2016-1000031?
What CWE is associated with CVE-2016-1000031?
How can I check Maven dependencies for CVE-2016-1000031?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7x9j-7223-rg5m",
"modified" : "2022-09-14T22:24:42Z",
"published" : "2018-12-21T17:51:51Z",
"aliases" : [ "CVE-2016-1000031" ],
"summary" : "Improper Access Control in commons-fileupload",
"details" : "Apache Commons FileUpload before 1.3.3 DiskFileItem File Manipulation Remote Code Execution",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "commons-fileupload:commons-fileupload"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-1000031"
}, {
"type" : "WEB",
"url" : "https://www.tenable.com/security/research/tra-2016-30"
}, {
"type" : "WEB",
"url" : "https://www.tenable.com/security/research/tra-2016-23"
}, {
"type" : "WEB",
"url" : "https://www.tenable.com/security/research/tra-2016-12"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuoct2021.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuoct2020.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujul2022.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujul2020.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujan2021.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujan2020.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuapr2020.html"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20190212-0001"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/d66657323fd25e437face5e84899c8ca404ccd187e81c3f2fa8b6080@%3Cannounce.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/708d94141126eac03011144a971a6411fcac16d9c248d1d535a39451@%3Csolr-user.lucene.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/WW-4812"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/FILEUPLOAD-279"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-7x9j-7223-rg5m"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00036.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/93604"
}, {
"type" : "WEB",
"url" : "http://www.zerodayinitiative.com/advisories/ZDI-16-570"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:23:40Z",
"nvd_published_at" : "2016-10-25T14:29:00Z"
}
}