Exploit database

Vulnerability

CVE-2021-38294

Shell Command Injection Vulnerability in Nimbus Thrift Server

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

A Command Injection vulnerability exists in the getTopologyHistory service of the Apache Storm 2.x prior to 2.2.1 and Apache Storm 1.x prior to 1.2.4. A specially crafted thrift request to the Nimbus server allows Remote Code Execution (RCE) prior to authentication.

CVE Program

Showing saved CVE details. Refresh is temporarily unavailable.

Exploit source choices

1 source
Apache Storm Nimbus getTopologyHistory Unauthenticated Command Execution
MSF-linux--misc--nimbus_gettopologyhistory_cmd_execMetasploitLinux,Unix / remotePreferred

This module exploits an unauthenticated command injection vulnerability within the Nimbus service component of Apache Storm. The getTopologyHistory RPC method method takes a single argument which is the name of a user which is concatenated into a string that is executed by bash. In order for the vulnerability to be exploitable, there must have been at least one topology submitted to the server. The topology may be active or inactive, but at least one must be present. Successful exploitation results in remote code execution as the user running Apache Storm. This vulnerability was patched in versions 2.1.1, 2.2.1 and 1.2.4. This exploit was tested on version 2.2.0 which is affected.

2021-10-25nimbus_gettopologyhistory_cmd_exec.rb