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

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.

Check my go.sum

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
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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: Go (6).

PackageFixed In
github.com/containers/podman Go · Affected: All versionsRange-based data available
go.podman.io/podman/v6 Go · Affected: All versions6.0.0
github.com/containers/podman/v2 Go · Affected: All versionsRange-based data available
github.com/containers/podman/v4 Go · Affected: All versionsRange-based data available
github.com/containers/podman/v3 Go · Affected: All versionsRange-based data available
github.com/containers/podman/v5 Go · Affected: 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). 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

CVSS Score
7.5

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.44%
EPSS percentile: 29.8

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

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

Related CVEs

  • CVE-2026-94603
    CRITICAL

    Podman: The `podman run` command can be instructed to disable almost all sandboxing by image annotation

  • CVE-2024-11218
    HIGH

    Buildah allows build breakout using malicious Containerfiles and concurrent builds

  • CVE-2026-108262
    HIGH

    DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885

  • CVE-2026-130007
    HIGH

    k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum