cr8escape: New Vulnerability in CRI-O Container Engine Discovered by CrowdStrike (CVE-2022-0811)
A flaw introduced in CRI-O version 1.19 allowed anyone able to deploy a pod to bypass the safeguards that restrict which kernel parameters a container may set, and to set arbitrary parameters on the host. By abusing the kernel.core_pattern parameter an attacker could escape the container and execute code as root on any node in the cluster.
crowdstrike.com
Published on crowdstrike.com
{{media:0}} Blog
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a flaw in how CRI-O passed pod-supplied sysctl values to the pinns utility, allowing a crafted value to inject extra options and set arbitrary kernel parameters on the host.
Impact
An attacker with pod deployment rights could escape the container and gain root on the host, then run malware, exfiltrate data and move laterally across pods; the text notes the CVE score is 8.8 and that many platforms use CRI-O by default.
What the attacker needed
Rights to deploy a pod; cluster uses CRI-O 1.19 or later
The fix
CRI-O was patched and users were told to upgrade immediately; interim mitigations included blocking pods whose sysctl values contain '+' or '=', forbidding all sysctls via PodSecurityPolicy, or pointing pinns_path at a wrapper that strips the '-s' option.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Containers are meant to be isolated boxes on a shared machine, and the operating system lets each box change only a small set of safe settings. This bug let someone who could start a container change a dangerous system-wide setting instead, so they could break out of the box and run commands as the machine's administrator. The container engine CRI-O was patched.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.