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

exploitDog

github логотип

GHSA-4hq8-gpf5-8p68

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

Описание

Podman: Malformed Image can trick podman run into leaking host environment variables into the container

Summary

An container image that contains a environment variable with just a key and no value can trick podman into passing that variable from the host into the container. This is made worse by the fact that using an asterisk (*) will cause podman to pass all host variables into the container. So essentially a malicious image can exfiltrate all podman environment variables that are set in the session from where the container is launched.

Details

podman run allows --env VAR1 or --env VAR* which will read the variable values from the current environment and then passes them into the container. However because the same parsing logic was reused for the image config env section that means that an image variable could also gain access to that.

Patch

That image spec requires the env variables to be in the form of key=value, so to address this invalid formatted variables get rejected and the container will not run.

Fixed in https://github.com/podman-container-tools/podman/commit/6c431b73dbf8e4b20b778644d7a80caebdb75050

Workaround

Do not run untrusted images. Before running an image consider inspecting the config with podman image inspect --format '{{.Config.Env}}' <image> and check for any variables that do not have a value assigned.

Пакеты

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

github.com/containers/podman/v5

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

< 5.8.4

5.8.4

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

go.podman.io/podman/v6

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

< 6.0.0

6.0.0

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

github.com/containers/podman/v4

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

<= 4.9.5

Отсутствует

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

github.com/containers/podman/v3

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

<= 3.4.7

Отсутствует

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

github.com/containers/podman/v2

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

<= 2.2.1

Отсутствует

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

github.com/containers/podman

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

>= 1.8.1

Отсутствует

EPSS

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

7.5 High

CVSS3

Дефекты

CWE-200

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

CVSS3: 7.5
ubuntu
4 месяца назад

Podman is a tool for managing OCI containers and pods. From 1.8.1 until 5.8.4, a container image that contains a environment variable with just a key and no value can trick podman into passing that variable from the host into the container. This is made worse by the fact that using an asterisk (*) will cause podman to pass all host variables into the container. So essentially a malicious image can exfiltrate all podman environment variables that are set in the session from where the container is launched. This vulnerability is fixed in 5.8.4 and 6.0.0.

CVSS3: 7.5
redhat
4 месяца назад

Podman is a tool for managing OCI containers and pods. From 1.8.1 until 5.8.4, a container image that contains a environment variable with just a key and no value can trick podman into passing that variable from the host into the container. This is made worse by the fact that using an asterisk (*) will cause podman to pass all host variables into the container. So essentially a malicious image can exfiltrate all podman environment variables that are set in the session from where the container is launched. This vulnerability is fixed in 5.8.4 and 6.0.0.

CVSS3: 7.5
nvd
4 месяца назад

Podman is a tool for managing OCI containers and pods. From 1.8.1 until 5.8.4, a container image that contains a environment variable with just a key and no value can trick podman into passing that variable from the host into the container. This is made worse by the fact that using an asterisk (*) will cause podman to pass all host variables into the container. So essentially a malicious image can exfiltrate all podman environment variables that are set in the session from where the container is launched. This vulnerability is fixed in 5.8.4 and 6.0.0.

msrc
4 месяца назад

Podman: Malformed Image can trick podman run into leaking host environment variables into the container

CVSS3: 7.5
debian
4 месяца назад

Podman is a tool for managing OCI containers and pods. From 1.8.1 unti ...

EPSS

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

7.5 High

CVSS3

Дефекты

CWE-200