CVE-2024-5651 Fence-agents-remediation: fence agent command line options leads to remote code execution
A low-privilege user can execute arbitrary commands via fence agent arguments, leading to remote code execution and cluster-admin privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-5651?
CVE-2024-5651 is a high-severity command injection vulnerability in Red Hat Fence Agents Remediation 0.4 for RHEL 8, published on 12 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A flaw was found in the Fence Agents Remediation operator. 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.
Weakness: CWE-94
Which versions are affected by CVE-2024-5651?
How do I fix CVE-2024-5651?
No fix has been published for CVE-2024-5651 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-5651 being exploited?
There is no known exploitation of CVE-2024-5651 in the wild and no public exploit code.
Sources
Also known as GHSA-76qm-c9j2-wm6v.