Mitigating CVE-2022-0811: Arbitrary code execution affecting CRI-O
Blog post from Sysdig
CVE-2022-0811, also known as cr8escape, is a high-severity vulnerability affecting CRI-O container engines from version 1.19 onwards, which can lead to arbitrary code execution by exploiting a flaw in the pinns utility that sets kernel parameters without proper validation. This vulnerability impacts any infrastructure relying on these engines, including Kubernetes and OpenShift, allowing adversaries to potentially gain remote control of servers. A patch has been released to address the issue, and it is crucial to apply it immediately to mitigate risks. Additionally, tools like Falco and Open Policy Agent (OPA) can help detect and prevent exploitation attempts by monitoring suspicious activities and enforcing security policies at the pod level. PodSecurityPolicy is deprecated, so OPA is recommended for maintaining security compliance by blocking deployments with unsafe configurations.