Bug 2290540 (CVE-2024-5651) - CVE-2024-5651 fence-agent: Fence Agent Command Line Options Leads to Remote Code Execution
Summary: CVE-2024-5651 fence-agent: Fence Agent Command Line Options Leads to Remote C...
Keywords:
Status: NEW
Alias: CVE-2024-5651
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2290541
TreeView+ depends on / blocked
 
Reported: 2024-06-05 09:56 UTC by Avinash Hanwate
Modified: 2024-08-15 08:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in fence agents that rely on SSH/Telnet. This vulnerability can allow a Remote Code Execution (RCE) primitive by supplying an arbitrary command to execute in the --ssh-path/--telnet-path arguments. A low-privilege user, for example, a user with developer access, can create a specially crafted FenceAgentsRemediation for a fence agent supporting  --ssh-path/--telnet-path arguments to execute arbitrary commands on the operator's pod. This RCE leads to a privilege escalation, first as the service account running the operator, then to another service account with cluster-admin privileges.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:5453 0 None None None 2024-08-15 08:10:20 UTC

Description Avinash Hanwate 2024-06-05 09:56:32 UTC
A flaw was found in fence agents that rely on SSH/Telnet could be abused to obtain a Remote Code Execution (RCE) primitive by supplying an arbitrary command to execute in the --ssh-path/--telnet-path arguments. A low-privilege user (i.e. a user with developer access) can create a specifically crafted FenceAgentsRemediation for a fence agent supporting  --ssh-path/--telnet-path arguments to execute arbitrary commands on the operator's pod.
This RCE leads to a privilege escalation; first as the service account running the operator, then to another service account with cluster-admin privileges.

Comment 2 errata-xmlrpc 2024-08-15 08:10:19 UTC
This issue has been addressed in the following products:

  Fence Agents Remediation 0.4 for RHEL 8

Via RHSA-2024:5453 https://access.redhat.com/errata/RHSA-2024:5453


Note You need to log in before you can comment on or make changes to this bug.