Arbitrary Command Injection Affecting ceph-iscsi-cli package, versions <0:2.7-7.el7cp


Severity

Recommended
0.0
critical
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
14.36% (96th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL7-CEPHISCSICLI-4437383
  • published26 Mar 2023
  • disclosed24 Sept 2018

Introduced: 24 Sep 2018

CVE-2018-14649  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade RHEL:7 ceph-iscsi-cli to version 0:2.7-7.el7cp or higher.
This issue was patched in RHSA-2018:2838.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ceph-iscsi-cli package and not the ceph-iscsi-cli package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

It was found that ceph-isci-cli package as shipped by Red Hat Ceph Storage 2 and 3 is using python-werkzeug in debug shell mode. This is done by setting debug=True in file /usr/bin/rbd-target-api provided by ceph-isci-cli package. This allows unauthenticated attackers to access this debug shell and escalate privileges. Once an attacker has successfully connected to this debug shell they will be able to execute arbitrary commands remotely. These commands will run with the same privileges as of user executing the application which is using python-werkzeug with debug shell mode enabled. In - Red Hat Ceph Storage 2 and 3, ceph-isci-cli package runs python-werkzeug library with root level permissions.