CVE-2024-5651Fence-agents-remediation: fence agent command line options leads to remote code execution
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | fence-agents | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | fence-agents | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | fence-agents | Not affected vulnerable_code_not_present |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- fence-agents-remediation: affected: 0.4.0 to before 0.4.1-22; fixed in
0.4.1-22 - Red Hat Fence Agents Remediation 0.4 for RHEL 8
Workaround: Do not allow unprivileged users create FenceAgentsRemediation and FenceAgentsRemediationTemplate resources.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2024:5453 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2024:5453
- https://access.redhat.com/security/cve/CVE-2024-5651
- https://bugzilla.redhat.com/show_bug.cgi?id=2290540
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.