OS Command Injection in Nexus Repository Manager 2.x -- Bypass for Nexus Repository Manage 2.14.15-01 Command Injection fix
Nexus Repository Manager 2.x allowed an administrator to run arbitrary operating-system commands on the server. The vendor says it has mitigated this by not allowing the server to do so.
- Triaged in 3 days
- Fixed in 8 months
- Disclosed after 8 months
Summary by the program
https://support.sonatype.com/hc/en-us/articles/360033490774
An OS command injection vulnerability has been discovered in Nexus Repository Manager requiring immediate action. The vulnerability allows for an attacker with administrative access to nxrm to execute arbitrary commands on the system. We have mitigated the issue by not allowing the server to do this. This advisory provides the pertinent information needed to properly address this vulnerability, along with the details on how to reach us if you have any further questions or concerns.
This vulnerability was identified by an external researcher and has been verified by our security team. We are not aware of any active exploits taking advantage of this issue. However, we strongly encourage all users of Nexus to immediately take the steps outlined in this advisory.
The identified vulnerability can allow for the server to execute anything on the system, that the user running the server has privileges to. We are highly recommending all instances of Nexus be upgraded to Nexus 2.14.16 or later. The latest version can be downloaded from:
https://help.sonatype.com/repomanager2/download
For detailed information on upgrade compatibility, please see:
https://support.sonatype.com/entries/21701998-Sonatype-Nexus-Upgrade-and-Compatibility-Notes
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
Root cause
Likely the application passed administrator-supplied values into an operating-system command without safe handling, and the earlier fix did not cover every path that reaches the command.
Impact
An attacker who already holds administrative access could execute arbitrary commands with the privileges of the account running the server; the text does not claim any wider impact.
What the attacker needed
Administrative access to Nexus
The fix
The vendor says instances should be upgraded to version 2.14.16 or later, which contains the mitigation.
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.
Nexus is a server that stores software packages. An administrator account could make the server run operating-system commands, which is dangerous. The vendor says it has mitigated this.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.