CVE-2026-57231 — Vulnerability in github.com/containers/podman
Podman: Malformed Image can trick podman run into leaking host environment variables into the container
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.44%). Schedule for your next planned update.
Does your project use an affected github.com/containers/podman version?
Paste your go.sum to check it for CVE-2026-57231 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published September 24, 2026 (63 days ago).
- Last revised October 1, 2026 — 7 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get go.podman.io/podman/v6@v6.0.0
go get github.com/containers/podman/v5@v5.8.4
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: Go (6).
| Package | Fixed In |
|---|---|
| github.com/containers/podman Go · Affected: All versions | Range-based data available |
| go.podman.io/podman/v6 Go · Affected: All versions | 6.0.0 |
| github.com/containers/podman/v2 Go · Affected: All versions | Range-based data available |
| github.com/containers/podman/v4 Go · Affected: All versions | Range-based data available |
| github.com/containers/podman/v3 Go · Affected: All versions | Range-based data available |
| github.com/containers/podman/v5 Go · Affected: All versions | 5.8.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-200Information ExposureMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/podman-container-tools/podman/security/advisories/GHSA-4hq8-gpf5-8p68WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-57231ADVISORY
- https://github.com/podman-container-tools/podman/commit/6c431b73dbf8e4b20b778644d7a80caebdb75050WEB
- https://github.com/podman-container-tools/podmanPACKAGE
- https://github.com/podman-container-tools/podman/releases/tag/v5.8.4WEB
- https://github.com/podman-container-tools/podman/releases/tag/v6.0.0WEB
Frequently Asked Questions
- What is CVE-2026-57231?
- Podman: Malformed Image can trick podman run into leaking host environment variables into the container. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-57231?
- CVE-2026-57231 affects github.com/containers/podman, go.podman.io/podman/v6 and github.com/containers/podman/v2 (and 3 more). It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-57231 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 29.8% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-94603CRITICAL
Podman: The `podman run` command can be instructed to disable almost all sandboxing by image annotation
- CVE-2024-11218HIGH
Buildah allows build breakout using malicious Containerfiles and concurrent builds
- CVE-2026-108262HIGH
DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885
- CVE-2026-130007HIGH
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution