Vulnerabilities in pkg:maven/org.sonatype.nexus/nexus-repository

PACKAGE
Advisory Identifier: GHSA-hmjv-px3j-933c
Advisory Summary

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

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.sonatype.nexus/nexus-repository

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.sonatype.nexus/nexus-repository. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-hmjv-px3j-933c CVE-2019-16530 HIGH Unrestricted Upload of File with Dangerous Type in Sonatype Nexus Repository Manager
GHSA-f34x-8pf6-qc9c CVE-2021-40143 HIGH HTTP header injection in Sonatype Nexus Repository

CVE-2019-16530 at a Glance

CVE Identifier CVE-2019-16530
GHSA Identifier GHSA-hmjv-px3j-933c
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Nexus repository
Package Ecosystem Maven
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
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-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.

org.sonatype.nexus:nexus-repository fixed: 2.14.15
<dependency>
    <groupId>org.sonatype.nexus</groupId>
    <artifactId>nexus-repository</artifactId>
    <version>2.14.15</version>
</dependency>
org.sonatype.nexus:nexus-repository fixed: 3.19.0
<dependency>
    <groupId>org.sonatype.nexus</groupId>
    <artifactId>nexus-repository</artifactId>
    <version>3.19.0</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=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

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.

CVE-2019-16530 Affected Nexus repository Versions

2 component(s)
Fixed Versions:
2.14.153.19.0
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?
CVE-2019-16530 is a security vulnerability in Nexus repository involving Unrestricted Upload of File with Dangerous Type in Sonatype Nexus Repository Manager under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Nexus repository versions are affected?
Affected versions include releases prior to 2.14.15, 3.19.0 across affected packages: org.sonatype.nexus:nexus-repository.
What version fixes CVE-2019-16530?
Upgrading to 2.14.15, 3.19.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nexus-repository affected?
Yes, org.sonatype.nexus:nexus-repository is affected in releases prior to 2.14.15, 3.19.0. Upgrade your dependency to 2.14.15, 3.19.0 or later.
What is the CVSS score of CVE-2019-16530?
CVE-2019-16530 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-16530?
CVE-2019-16530 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check Maven dependencies for CVE-2019-16530?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.sonatype.nexus'. 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-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"
  }
}