CVE-2019-16530: Nexus repository Unrestricted Upload Of File With Vulnerability
HIGHCVE-2019-16530 is a HIGH (CVSS 7.2) unrestricted upload of file with vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Nexus repository libraries in the Maven ecosystem. The issue involves unrestricted upload of file with dangerous type in sonatype nexus repository manager. Remediation is available by upgrading affected packages to version 2.14.15, 3.19.0.
CVE-2019-16530 at a Glance
Security Impact
CVSS: 7.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-16530
To remediate this vulnerability, upgrade all affected Nexus repository 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>org.sonatype.nexus</groupId>
<artifactId>nexus-repository</artifactId>
<version>2.14.15</version>
</dependency>
<dependency>
<groupId>org.sonatype.nexus</groupId>
<artifactId>nexus-repository</artifactId>
<version>3.19.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.sonatype.nexus
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2019-16530, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.sonatype.nexus
Analyze the terminal output to locate any version of Nexus repository in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.14.15), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.sonatype.nexus 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-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Nexus repository, 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-2019-16530 Affected Nexus repository Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.sonatype.nexus:nexus-repository
|
Maven |
≥ 2.0.0
< 2.14.15
|
2.14.15
|
|
org.sonatype.nexus:nexus-repository
|
Maven |
≥ 3.0.0
< 3.19.0
|
3.19.0
|
References
Frequently Asked Questions
What is CVE-2019-16530?
Which Nexus repository versions are affected?
What version fixes CVE-2019-16530?
Is nexus-repository affected?
What is the CVSS score of CVE-2019-16530?
What CWE is associated with CVE-2019-16530?
How can I check Maven dependencies for CVE-2019-16530?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hmjv-px3j-933c",
"modified" : "2022-06-27T21:31:46Z",
"published" : "2022-05-24T16:59:30Z",
"aliases" : [ "CVE-2019-16530" ],
"summary" : "Unrestricted Upload of File with Dangerous Type in Sonatype Nexus Repository Manager",
"details" : "Sonatype Nexus Repository Manager 2.x before 2.14.15 and 3.x before 3.19, and IQ Server before 72, has remote code execution.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.sonatype.nexus:nexus-repository"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.14.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.sonatype.nexus:nexus-repository"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.19.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-16530"
}, {
"type" : "WEB",
"url" : "https://issues.sonatype.org/secure/ReleaseNote.jspa"
}, {
"type" : "WEB",
"url" : "https://support.sonatype.com/hc/en-us/articles/360036132453"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-434" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-27T21:31:46Z",
"nvd_published_at" : "2019-10-21T14:15:00Z"
}
}