CVE-2016-1000031: Commons fileupload Improper Access Control Vulnerability

CRITICAL
Advisory Identifier: GHSA-7x9j-7223-rg5m
CVSS 9.8
CWE-284
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2016-1000031
GHSA Identifier GHSA-7x9j-7223-rg5m
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-284: Improper Access Control
Affected Product Commons fileupload
Package Ecosystem Maven
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

commons-fileupload:commons-fileupload fixed: 1.3.3
<dependency>
    <groupId>commons-fileupload</groupId>
    <artifactId>commons-fileupload</artifactId>
    <version>1.3.3</version>
</dependency>
Verify Direct and Transitive Dependencies

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

Apache Commons FileUpload before 1.3.3 DiskFileItem File Manipulation Remote Code Execution

CVE-2016-1000031 Affected Commons fileupload Versions

1 component(s)
Fixed Versions:
1.3.3
Product / Package Ecosystem Affected Versions Fixed Version
commons-fileupload:commons-fileupload
Maven
< 1.3.3
1.3.3

References

NVD — CVE-2016-1000031 NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-1000031
Commons fileupload Security Information SECURITY
https://www.tenable.com/security/research/tra-2016-30
Commons fileupload Security Information SECURITY
https://www.tenable.com/security/research/tra-2016-23
Commons fileupload Security Information SECURITY
https://www.tenable.com/security/research/tra-2016-12
Commons fileupload Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
Commons fileupload Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
Commons fileupload Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
Commons fileupload Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
Commons fileupload Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
Commons fileupload Security Information SECURITY
https://www.oracle.com/security-alerts/cpuoct2021.html
issues.apache.org/jira/browse/ww-4812 WEB
https://issues.apache.org/jira/browse/WW-4812
Commons fileupload Security Information SECURITY
https://www.oracle.com/security-alerts/cpuoct2020.html
Commons fileupload Security Information SECURITY
https://www.oracle.com/security-alerts/cpujul2022.html
Commons fileupload Security Information SECURITY
https://www.oracle.com/security-alerts/cpujul2020.html
Commons fileupload Security Information SECURITY
https://www.oracle.com/security-alerts/cpujan2021.html
Commons fileupload Security Information SECURITY
https://www.oracle.com/security-alerts/cpujan2020.html
Commons fileupload Security Information SECURITY
https://www.oracle.com/security-alerts/cpuapr2020.html
Commons fileupload Security Information SECURITY
https://security.netapp.com/advisory/ntap-20190212-0001
lists.apache.org/thread.html/d666573... WEB
https://lists.apache.org/thread.html/d66657323fd25e437face5e84899c8ca404ccd187e81c3f2fa8b6080@%3Cannounce.apache.org%3E
lists.apache.org/thread.html/708d941... WEB
https://lists.apache.org/thread.html/708d94141126eac03011144a971a6411fcac16d9c248d1d535a39451@%3Csolr-user.lucene.apache.org%3E
issues.apache.org/jira/browse/fileupl... WEB
https://issues.apache.org/jira/browse/FILEUPLOAD-279
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-7x9j-7223-rg5m
Commons fileupload Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00036.html
Commons fileupload Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html
Commons fileupload Security Information SECURITY
http://www.securityfocus.com/bid/93604
www.zerodayinitiative.com/advisories/zdi-16-5... WEB
http://www.zerodayinitiative.com/advisories/ZDI-16-570

Frequently Asked Questions

What is CVE-2016-1000031?
CVE-2016-1000031 is a security vulnerability in Commons fileupload involving Improper Access Control in commons-fileupload under CWE-284: Improper Access Control.
Which Commons fileupload versions are affected?
Affected versions include releases prior to 1.3.3 across affected packages: commons-fileupload:commons-fileupload.
What version fixes CVE-2016-1000031?
Upgrading to 1.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is commons-fileupload affected?
Yes, commons-fileupload:commons-fileupload is affected in releases prior to 1.3.3. Upgrade your dependency to 1.3.3 or later.
What is the CVSS score of CVE-2016-1000031?
CVE-2016-1000031 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2016-1000031?
CVE-2016-1000031 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Maven dependencies for CVE-2016-1000031?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=commons-fileupload'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}