Skip to content

sonatype/nexus-public: Dev Mode Path Traversal Vulnerability

Moderate
JLLeitschuh published GHSA-wgj6-vj7p-978w Mar 22, 2021

Package

Sonatype Nexus

Affected versions

All

Patched versions

None

Description

This vulnerability only impacted development, not production instances of Sonatype Nexus Repository. Fixing this as a user is not required. No CVE was requested for this reason.


Impact

When run in development mode, ie. with either the environment variable NEXUS_RESOURCE_DIRS or the system property nexus.resource.dirs the DevModeResources contains a web-facing path traversal vulnerability.

This report can be seen here:

https://lgtm.com/projects/g/sonatype/nexus-public/snapshot/b857cc737f8c33493f3f12942648d148ce33e8c8/files/components/nexus-base/src/main/java/org/sonatype/nexus/internal/webresources/DevModeResources.java?sort=name&dir=ASC&mode=heatmap#L124

This can enable attackers to exfiltrate the contents of the local file system where Nexus is running.

By default, this environment variable is set when launching with the nxrm.groovy script.
https://github.com/sonatype/nexus-public/blob/880eca848d131577b86c13bf2e7cd3f875dbb408/nxrm.groovy#L1083

Patches

No fixes have been issued.

Workarounds

None provided.

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

CVE ID

No known CVE

Weaknesses

Credits