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

exploitDog

github логотип

GHSA-2cgq-h8xw-2v5j

Опубликовано: 30 апр. 2024
Источник: github
Github: Прошло ревью
CVSS3: 7.2

Описание

CRI-O vulnerable to an arbitrary systemd property injection

Impact

On CRI-O, it looks like an arbitrary systemd property can be injected via a Pod annotation:

--- apiVersion: v1 kind: Pod metadata: name: poc-arbitrary-systemd-property-injection annotations: # I believe that ExecStart with an arbitrary command works here too, # but I haven't figured out how to marshalize the ExecStart struct to gvariant string. org.systemd.property.SuccessAction: "'poweroff-force'" spec: containers: - name: hello image: [quay.io/podman/hello](http://quay.io/podman/hello)

This means that any user who can create a pod with an arbitrary annotation may perform an arbitrary action on the host system.

Tested with CRI-O v1.24 on minikube. I didn't test the latest v1.29 because it is incompatible with minikube: https://github.com/kubernetes/minikube/pull/18367

Thanks to Cédric Clerget (GitHub ID @cclerget) for finding out that CRI-O just passes pod annotations to OCI annotations: https://github.com/opencontainers/runc/pull/3923#discussion_r1532292536

CRI-O has to filter out annotations that have the prefix "org.systemd.property."

See also:

Workarounds

Unfortunately, the only workarounds would involve an external mutating webhook to disallow these annotations

References

Пакеты

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

github.com/cri-o/cri-o

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

>= 1.29.0, <= 1.29.3

1.29.4

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

github.com/cri-o/cri-o

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

>= 1.28.0, <= 1.28.5

1.28.6

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

github.com/cri-o/cri-o

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

<= 1.27.5

1.27.6

EPSS

Процентиль: 65%
0.00505
Низкий

7.2 High

CVSS3

Дефекты

CWE-77

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

CVSS3: 7.2
ubuntu
больше 1 года назад

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.

CVSS3: 7.2
redhat
больше 1 года назад

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.

CVSS3: 7.2
nvd
больше 1 года назад

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.

CVSS3: 7.2
msrc
больше 1 года назад

Описание отсутствует

CVSS3: 7.2
debian
больше 1 года назад

A flaw was found in cri-o, where an arbitrary systemd property can be ...

EPSS

Процентиль: 65%
0.00505
Низкий

7.2 High

CVSS3

Дефекты

CWE-77