CVE-2026-57231
Podman: Malformed Image can trick podman run into leaking host environment variables into the container
Also known as GHSA-4hq8-gpf5-8p68, GO-2026-6594
Mitigation
- Upgrade github.com/containers/podman/v5 to 5.8.4 or later.
- Upgrade go.podman.io/podman/v6 to 6.0.0 or later.
Who should check
- Projects that depend on Go package github.com/containers/podman/v5 (< 5.8.4)
- Projects that depend on Go package go.podman.io/podman/v6 (< 6.0.0)
- Projects that depend on Go package github.com/containers/podman/v4 (<= 4.9.5)
- Projects that depend on Go package github.com/containers/podman/v3 (<= 3.4.7)
- Projects that depend on Go package github.com/containers/podman/v2 (<= 2.2.1)
- Projects that depend on Go package github.com/containers/podman (>= 1.8.1)
- Projects that depend on Go package github.com/containers/libpod (>= 1.8.1)
- Anyone running podman-container-tools podman >= 1.8.1, < 5.8.4
Vulnerability facts
- Affected
- github.com/containers/podman/v5 < 5.8.4; go.podman.io/podman/v6 < 6.0.0; github.com/containers/podman/v4 <= 4.9.5; github.com/containers/podman/v3 <= 3.4.7; github.com/containers/podman/v2 <= 2.2.1; github.com/containers/podman >= 1.8.1; github.com/containers/libpod >= 1.8.1
- Fixed in
- 5.8.4, 6.0.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.43% chance of exploitation in 30 days (percentile 29, 2026-11-26)
- CWE
- CWE-200, CWE-668
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/containers/podman/v5 | < 5.8.4 | 5.8.4 | osv |
| Go go.podman.io/podman/v6 | < 6.0.0 | 6.0.0 | osv |
| Go github.com/containers/podman/v4 | <= 4.9.5 | — | osv |
| Go github.com/containers/podman/v3 | <= 3.4.7 | — | osv |
| Go github.com/containers/podman/v2 | <= 2.2.1 | — | osv |
| Go github.com/containers/podman | >= 1.8.1 | — | osv |
| Go github.com/containers/libpod | >= 1.8.1 | — | osv |
| podman-container-tools podman | >= 1.8.1, < 5.8.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-57231. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-57231.md Affected: github.com/containers/podman/v5 < 5.8.4; go.podman.io/podman/v6 < 6.0.0; github.com/containers/podman/v4 <= 4.9.5; github.com/containers/podman/v3 <= 3.4.7; github.com/containers/podman/v2 <= 2.2.1; github.com/containers/podman >= 1.8.1; github.com/containers/libpod >= 1.8.1 Fixed in: 5.8.4, 6.0.0 Steps: 1. Search this machine and project for github.com/containers/podman/v5 (Go), go.podman.io/podman/v6 (Go), github.com/containers/podman/v4 (Go), github.com/containers/podman/v3 (Go), github.com/containers/podman/v2 (Go), github.com/containers/podman (Go): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-57231 being exploited?
There is no confirmed exploitation: CVE-2026-57231 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.43% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-57231?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-57231?
github.com/containers/podman/v5 < 5.8.4; go.podman.io/podman/v6 < 6.0.0; github.com/containers/podman/v4 <= 4.9.5; github.com/containers/podman/v3 <= 3.4.7; github.com/containers/podman/v2 <= 2.2.1; github.com/containers/podman >= 1.8.1; github.com/containers/libpod >= 1.8.1.
Is there a fix for CVE-2026-57231?
Yes. Fixed in 5.8.4, 6.0.0. Upgrade github.com/containers/podman/v5 to 5.8.4 or later. Upgrade go.podman.io/podman/v6 to 6.0.0 or later.
How do I check if I'm affected by CVE-2026-57231?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.