CVE-2016-3092: Commons fileupload Commons-fileupload Vulnerability
HIGHCVE-2016-3092 is a HIGH (CVSS 7.5) commons-fileupload vulnerability (CWE-20: Improper Input Validation) affecting Commons fileupload libraries in the Maven ecosystem. The issue involves commons-fileupload. Remediation is available by upgrading affected packages to version 1.3.2.
CVE-2016-3092 at a Glance
Security Impact
CVSS: 7.5
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:N/I:N/A:H).
How to Fix CVE-2016-3092
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.2</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-3092, 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.2), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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-3092 Affected Commons fileupload Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
commons-fileupload:commons-fileupload
|
Maven |
< 1.3.2
|
1.3.2
|
References
Frequently Asked Questions
What is CVE-2016-3092?
Which Commons fileupload versions are affected?
What version fixes CVE-2016-3092?
Is commons-fileupload affected?
What is the CVSS score of CVE-2016-3092?
What CWE is associated with CVE-2016-3092?
How can I check Maven dependencies for CVE-2016-3092?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fvm3-cfvj-gxqq",
"modified" : "2021-07-19T15:57:47Z",
"published" : "2018-12-21T17:47:47Z",
"aliases" : [ "CVE-2016-3092" ],
"summary" : "High severity vulnerability that affects commons-fileupload:commons-fileupload",
"details" : "The MultipartStream class in Apache Commons Fileupload before 1.3.2, as used in Apache Tomcat 7.x before 7.0.70, 8.x before 8.0.36, 8.5.x before 8.5.3, and 9.x before 9.0.0.M7 and other products, allows remote attackers to cause a denial of service (CPU consumption) via a long boundary string.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "commons-fileupload:commons-fileupload"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-3092"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuapr2020.html"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20171111060434/http://www.securitytracker.com/id/1039606"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20171103224941/http://www.securitytracker.com/id/1036900"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20170317103106/http://www.securitytracker.com/id/1037029"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20160924080828/http://www.securityfocus.com/bid/91453"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20160726114129/http://www.securitytracker.com/id/1036427"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20190212-0001"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202107-39"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/201705-09"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c@%3Cdev.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c%40%3Cdev.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708@%3Cdev.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708%40%3Cdev.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/343558d982879bf88ec20dbf707f8c11255f8e219e81d45c4f8d0551@%3Cdev.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/343558d982879bf88ec20dbf707f8c11255f8e219e81d45c4f8d0551%40%3Cdev.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05324759"
}, {
"type" : "WEB",
"url" : "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05289840"
}, {
"type" : "WEB",
"url" : "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05204371"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-fvm3-cfvj-gxqq"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1349468"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2017:0456"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2017:0455"
}, {
"type" : "WEB",
"url" : "http://jvn.jp/en/jp/JVN89379547/index.html"
}, {
"type" : "WEB",
"url" : "http://jvndb.jvn.jp/jvndb/JVNDB-2016-000121"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2016-09/msg00025.html"
}, {
"type" : "WEB",
"url" : "http://mail-archives.apache.org/mod_mbox/commons-dev/201606.mbox/%3CCAF8HOZ%2BPq2QH8RnxBuJyoK1dOz6jrTiQypAC%2BH8g6oZkBg%2BCxg%40mail.gmail.com%3E"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2016-2068.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2016-2069.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2016-2070.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2016-2071.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2016-2072.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2016-2599.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2016-2807.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2016-2808.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2017-0457.html"
}, {
"type" : "WEB",
"url" : "http://svn.apache.org/viewvc?view=revision&revision=1743480"
}, {
"type" : "WEB",
"url" : "http://svn.apache.org/viewvc?view=revision&revision=1743722"
}, {
"type" : "WEB",
"url" : "http://svn.apache.org/viewvc?view=revision&revision=1743738"
}, {
"type" : "WEB",
"url" : "http://svn.apache.org/viewvc?view=revision&revision=1743742"
}, {
"type" : "WEB",
"url" : "http://tomcat.apache.org/security-7.html"
}, {
"type" : "WEB",
"url" : "http://tomcat.apache.org/security-8.html"
}, {
"type" : "WEB",
"url" : "http://tomcat.apache.org/security-9.html"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2016/dsa-3609"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2016/dsa-3611"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2016/dsa-3614"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html"
}, {
"type" : "WEB",
"url" : "http://www.ubuntu.com/usn/USN-3024-1"
}, {
"type" : "WEB",
"url" : "http://www.ubuntu.com/usn/USN-3027-1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:35:21Z",
"nvd_published_at" : "2016-07-04T22:59:00Z"
}
}