{"id":"CVE-2024-5651","state":"PUBLISHED","title":"Fence-agents-remediation: fence agent command line options leads to remote code execution","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.","publishedAt":"2024-08-12T05:46:16.035Z","updatedAt":"2026-02-25T20:31:25.618Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"redhat"},"assigner":"redhat","products":["fence-agents-remediation","Red Hat Fence Agents Remediation 0.4 for RHEL 8"],"affected":[{"packageName":"fence-agents-remediation","defaultStatus":"affected","versions":[{"version":"0.4.0","status":"affected","lessThan":"0.4.1-22","versionType":"semver"}],"collectionURL":"https://github.com/medik8s/fence-agents-remediation"},{"vendor":"Red Hat","product":"Fence Agents Remediation 0.4 for RHEL 8","packageName":"workload-availability/fence-agents-remediation-operator-bundle","defaultStatus":"affected","versions":[{"version":"v0.4.1-22","status":"unaffected","lessThan":"*","versionType":"rpm"}],"collectionURL":"https://catalog.redhat.com/software/containers/","cpes":["cpe:/a:redhat:workload_availability_far:0.4::el8"]},{"vendor":"Red Hat","product":"Fence Agents Remediation 0.4 for RHEL 8","packageName":"workload-availability/fence-agents-remediation-rhel8-operator","defaultStatus":"affected","versions":[{"version":"v0.4.1-22","status":"unaffected","lessThan":"*","versionType":"rpm"}],"collectionURL":"https://catalog.redhat.com/software/containers/","cpes":["cpe:/a:redhat:workload_availability_far:0.4::el8"]}],"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"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/5xxx/CVE-2024-5651.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-5651","state":"PUBLISHED","datePublished":"2024-08-12T05:46:16.035Z","dateUpdated":"2026-02-25T20:31:25.618Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2024-06-05T09:57:33.499Z"},"containers":{"cna":{"title":"Fence-agents-remediation: fence agent command line options leads to remote code execution","descriptions":[{"lang":"en","value":"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."}],"affected":[{"packageName":"fence-agents-remediation","defaultStatus":"affected","versions":[{"version":"0.4.0","status":"affected","lessThan":"0.4.1-22","versionType":"semver"}],"collectionURL":"https://github.com/medik8s/fence-agents-remediation"},{"vendor":"Red Hat","product":"Fence Agents Remediation 0.4 for RHEL 8","packageName":"workload-availability/fence-agents-remediation-operator-bundle","defaultStatus":"affected","versions":[{"version":"v0.4.1-22","status":"unaffected","lessThan":"*","versionType":"rpm"}],"collectionURL":"https://catalog.redhat.com/software/containers/","cpes":["cpe:/a:redhat:workload_availability_far:0.4::el8"]},{"vendor":"Red Hat","product":"Fence Agents Remediation 0.4 for RHEL 8","packageName":"workload-availability/fence-agents-remediation-rhel8-operator","defaultStatus":"affected","versions":[{"version":"v0.4.1-22","status":"unaffected","lessThan":"*","versionType":"rpm"}],"collectionURL":"https://catalog.redhat.com/software/containers/","cpes":["cpe:/a:redhat:workload_availability_far:0.4::el8"]}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:5453","name":"RHSA-2024:5453","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-5651","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2290540","name":"RHBZ#2290540","tags":["issue-tracking","x_refsource_REDHAT"]}],"metrics":[{"other":{"content":{"value":"Important","namespace":"https://access.redhat.com/security/updates/classification/"},"type":"Red Hat severity rating"}},{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","description":"Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"redhat","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateUpdated":"2026-02-25T20:31:25.618Z"},"datePublic":"2024-08-12T05:28:54.268Z","x_redhatCweChain":"CWE-94: Improper Control of Generation of Code ('Code Injection')","workarounds":[{"lang":"en","value":"Do not allow unprivileged users create FenceAgentsRemediation and FenceAgentsRemediationTemplate resources."}],"timeline":[{"lang":"en","time":"2024-06-05T00:00:00.000Z","value":"Reported to Red Hat."},{"lang":"en","time":"2024-08-12T05:28:54.268Z","value":"Made public."}],"credits":[{"lang":"en","value":"This issue was discovered by Thibault Guittet (Red Hat)."}],"x_generator":{"engine":"cvelib 1.8.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-08-13T20:15:45.156124Z","id":"CVE-2024-5651","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-13T20:16:05.719Z"}}]}}}