Loading...
Skip to main content

CVE-2026-57231 — Vulnerability in github.com/containers/podman —...

HIGH

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

Published September 24, 2026Updated October 1, 2026Source: osv

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 (18 days ago).
  • Last revised October 1, 2026 — 7 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update go.podman.io/podman/v6 to 6.0.0 or later
go get go.podman.io/podman/v6@v6.0.0
Go
Update github.com/containers/podman/v5 to 5.8.4 or later
go get github.com/containers/podman/v5@v5.8.4

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: go (6).

PackageEcosystemAffectedFixed In
github.com/containers/podman
go
All versionsRange-based data available
go.podman.io/podman/v6
go
All versions6.0.0
github.com/containers/podman/v2
go
All versionsRange-based data available
github.com/containers/podman/v4
go
All versionsRange-based data available
github.com/containers/podman/v3
go
All versionsRange-based data available
github.com/containers/podman/v5
go
All versions5.8.4

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-200
    Information ExposureMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

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). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-57231 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-4hq8-gpf5-8p68
GO-2026-6594

Related CVEs

  • CVE-2026-107809
    HIGH

    Nginx-UI AuthRequired token cookie fallback enables CSRF against management APIs

  • CVE-2024-11218
    HIGH

    Buildah allows build breakout using malicious Containerfiles and concurrent builds

  • CVE-2026-107813
    HIGH

    Nginx UI: Incomplete fix of CVE-2026-84315 - the api/cluster router was not - wrapped in RequireSecureSession, so those sensitive mutations run without OTP step-up

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies