CVE-2024-3154 Cri-o: arbitrary command injection via pod annotation
Attackers can execute arbitrary commands on the host by injecting systemd properties via pod annotations in CRI-O.
- 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-3154?
CVE-2024-3154 is a high-severity command injection vulnerability in Red Hat OpenShift Container Platform 3.11, published on 26 Apr 2024. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
A flaw was found in cri-o, where an arbitrary systemd property can be injected via a Pod annotation. Any user who can create a pod with an arbitrary annotation may perform an arbitrary action on the host system.
Weakness: CWE-77
Which versions are affected by CVE-2024-3154?
7 open source packages ship an affected version, including github.com/cri-o/cri-o.
| Package | Affected | Fixed in |
|---|---|---|
github.com/cri-o/cri-o Go | All versions | 1.27.6, 1.28.6, 1.29.4 |
github.com/cri-o/cri-o Go | All versions | 1.27.6 |
github.com/cri-o/cri-o Go | All versions | 1.27.6 |
github.com/cri-o/cri-o Go | From 1.28.0 | 1.28.6 |
github.com/cri-o/cri-o Go | From 1.28.0 | 1.28.6 |
github.com/cri-o/cri-o Go | From 1.29.0 | 1.29.4 |
1 more packages
github.com/cri-o/cri-o Go | From 1.29.0 | 1.29.4 |
Linux distribution packages (7)
cri-o Red Hat:openshift:4.13::el8 | All versions | 0:1.26.5-16.2.rhaos4.13.git67e2a9d.el8 |
cri-o-debuginfo Red Hat:openshift:4.13::el8 | All versions | 0:1.26.5-16.2.rhaos4.13.git67e2a9d.el8 |
cri-o-debugsource Red Hat:openshift:4.13::el8 | All versions | 0:1.26.5-16.2.rhaos4.13.git67e2a9d.el8 |
cri-o Red Hat:openshift:4.13::el9 | All versions | 0:1.26.5-16.2.rhaos4.13.git67e2a9d.el9 |
cri-o-debuginfo Red Hat:openshift:4.13::el9 | All versions | 0:1.26.5-16.2.rhaos4.13.git67e2a9d.el9 |
cri-o-debugsource Red Hat:openshift:4.13::el9 | All versions | 0:1.26.5-16.2.rhaos4.13.git67e2a9d.el9 |
grype openSUSE:Tumbleweed | All versions | 0.80.1-1.1 |
How do I fix CVE-2024-3154?
Upgrade github.com/cri-o/cri-o to a fixed version for your release line: 1.27.6, 1.28.6 or 1.29.4.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-3154 being exploited?
There is no known exploitation of CVE-2024-3154 in the wild and no public exploit code.
Sources
Also known as AZL-42307, GHSA-2cgq-h8xw-2v5j, GO-2024-2791, OESA-2024-1671, OESA-2024-1675, OESA-2024-1688 and 2 more.