Loading advisory.
Loading advisory.
Podman: Malformed Image can trick podman run into leaking host environment variables into the container
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.
Published 2026-06-26 16:29 UTC · Modified 2026-10-01 20:55 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/containers/podman/v5 | Go | < 5.8.4 | 5.8.4 | go get github.com/containers/podman/v5@v5.8.4 |
| go.podman.io/podman/v6 | Go | < 6.0.0 | 6.0.0 | go get go.podman.io/podman/v6@v6.0.0 |
| github.com/containers/podman/v4 | Go | <= 4.9.5 all versions | No patch yet | No command until a fix exists. |
| github.com/containers/podman/v3 | Go | <= 3.4.7 all versions | No patch yet | No command until a fix exists. |
| github.com/containers/podman/v2 | Go | <= 2.2.1 all versions | No patch yet | No command until a fix exists. |
| github.com/containers/podman | Go | >= 1.8.1 all versions | No patch yet | No command until a fix exists. |
| github.com/containers/libpod | Go | >= 1.8.1 | No patch yet | No command until a fix exists. |
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.
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.
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
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.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.004 on 2026-11-24 to 0.004 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.004 | first score | v2026.06.15 |
| 2026-11-26 | 0.004 | 0.004 | v2026.06.15 |