Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-6x2m-w449-qwx7

Опубликовано: 15 мар. 2022
Источник: github
Github: Прошло ревью
CVSS3: 8.8

Описание

Code Injection in CRI-O

Impact

A flaw introduced in CRI-O version 1.19 which an attacker can use to bypass the safeguards and set arbitrary kernel parameters on the host. As a result, anyone with rights to deploy a pod on a Kubernetes cluster that uses the CRI-O runtime can abuse the kernel.core_pattern kernel parameter to achieve container escape and arbitrary code execution as root on any node in the cluster.

Patches

The patches will be present in 1.19.6, 1.20.7, 1.21.6, 1.22.3, 1.23.2, 1.24.0

Workarounds

  • Users can set manage_ns_lifecycle to false, which causes the sysctls to be configured by the OCI runtime, which typically filter these cases. This option is available in 1.20 and 1.19. Newer versions don't have this option.
  • An admission webhook could be created to deny pods that specify a + in the sysctl value of a pod.
  • A PodSecurityPolicy [deprecated] could be created, specifying all sysctls as forbidden like so:
apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: sysctl-psp spec: forbiddenSysctls: - "*"

However, this option will not work if any sysctls are required by any pods in the cluster.

Credits

Credit for finding this vulnerability goes to John Walker and Manoj Ahuje of Crowdstrike. The CRI-O community deeply thanks them for the report.

For more information

If you have any questions or comments about this advisory:

Пакеты

Наименование

github.com/cri-o/cri-o

go
Затронутые версииВерсия исправления

>= 1.19.0, < 1.19.6

1.19.6

Наименование

github.com/cri-o/cri-o

go
Затронутые версииВерсия исправления

>= 1.20.0, < 1.20.7

1.20.7

Наименование

github.com/cri-o/cri-o

go
Затронутые версииВерсия исправления

>= 1.21.0, < 1.21.6

1.21.6

Наименование

github.com/cri-o/cri-o

go
Затронутые версииВерсия исправления

>= 1.22.0, < 1.22.3

1.22.3

Наименование

github.com/cri-o/cri-o

go
Затронутые версииВерсия исправления

>= 1.23.0, < 1.23.2

1.23.2

EPSS

Процентиль: 96%
0.27007
Средний

8.8 High

CVSS3

Дефекты

CWE-94

Связанные уязвимости

CVSS3: 8.8
ubuntu
больше 3 лет назад

A flaw was found in CRI-O in the way it set kernel options for a pod. This issue allows anyone with rights to deploy a pod on a Kubernetes cluster that uses the CRI-O runtime to achieve a container escape and arbitrary code execution as root on the cluster node, where the malicious pod was deployed.

CVSS3: 8.8
redhat
больше 3 лет назад

A flaw was found in CRI-O in the way it set kernel options for a pod. This issue allows anyone with rights to deploy a pod on a Kubernetes cluster that uses the CRI-O runtime to achieve a container escape and arbitrary code execution as root on the cluster node, where the malicious pod was deployed.

CVSS3: 8.8
nvd
больше 3 лет назад

A flaw was found in CRI-O in the way it set kernel options for a pod. This issue allows anyone with rights to deploy a pod on a Kubernetes cluster that uses the CRI-O runtime to achieve a container escape and arbitrary code execution as root on the cluster node, where the malicious pod was deployed.

CVSS3: 8.8
debian
больше 3 лет назад

A flaw was found in CRI-O in the way it set kernel options for a pod. ...

oracle-oval
больше 3 лет назад

ELSA-2022-9229: cri-o security update (IMPORTANT)

EPSS

Процентиль: 96%
0.27007
Средний

8.8 High

CVSS3

Дефекты

CWE-94