Arbitrary Code Injection The advisory has been revoked - it doesn't affect any version of package fence-agents  (opens in a new tab)


Threat Intelligence

EPSS
1.38% (73rd 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 IDSNYK-UBUNTU2004-FENCEAGENTS-7676231
  • published10 Sept 2024
  • disclosed12 Aug 2024

Introduced: 12 Aug 2024

CVE-2024-5651  (opens in a new tab)
CWE-94  (opens in a new tab)

Amendment

The Ubuntu security team deemed this advisory irrelevant for Ubuntu:20.04.

NVD Description

Note: Versions mentioned in the description apply only to the upstream fence-agents package and not the fence-agents package as distributed by Ubuntu.

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.