CVE-2024-6840 Automation-controller: gain access to the k8s api server via job execution with container group

Medium 6.6 Published Updated

Attackers can escalate privileges to a service account by exploiting improper authorization in Ansible Automation Controller when service account tokens are automatically mounted.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-6840?

CVE-2024-6840 is a medium-severity missing authorization vulnerability in Red Hat Ansible Automation Platform 2.4 for RHEL 8, published on 12 Sep 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

An improper authorization flaw exists in the Ansible Automation Controller. This flaw allows an attacker using the k8S API server to send an HTTP request with a service account token mounted via `automountServiceAccountToken: true`, resulting in privilege escalation to a service account.

Weakness: CWE-285

Which versions are affected by CVE-2024-6840?

How do I fix CVE-2024-6840?

Apply the vendor's patch.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2024-6840 being exploited?

There is no known exploitation of CVE-2024-6840 in the wild and no public exploit code.

Sources

Also known as GHSA-64w6-7xrg-vmhg.

Is CVE-2024-6840 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free