CVE-2026-57231

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

Published Jun 26, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A malformed image that defines an environment variable with only a key (and no value) can cause the Podman runtime to copy that variable from the host into the container. If the variable name is an asterisk (*), Podman will copy every host environment variable into the container’s environment. This allows a malicious image to exfiltrate all environment variables that are set in the session where the container is launched, potentially exposing secrets such as API tokens, passwords, or other sensitive data. The weakness is a combination of CWE-200 (Information Exposure), CWE-668 (Improper Access Control), and CWE-914.

Affected Systems

The vulnerability affects the Podman container tool family from release 1.8.1 through 5.8.4. Versions 5.8.4 and 6.0.0 contain the fix. The affected product is Podman, as distributed by the Podman Container Tools organization.

Risk and Exploitability

The CVSS score of 7.5 reflects a high impact to confidentiality when the flaw is exploited. The EPSS score is < 1%, indicating a very low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a local attacker who controls the image registry or otherwise can supply images to the host; by crafting an image with a key-only or * environment variable, the attacker can cause Podman to leak host environment data into the container. The exploit requires no additional privileges beyond the ability to run podman with the malicious image.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Podman to v5.8.4 or newer, such as v6.0.0, to apply the fix.
  • Avoid pulling or running images from untrusted registries; validate image provenance before use.
  • Ensure that sensitive environment variables are unset or cleared in the host session prior to launching containers to prevent accidental leakage.

Generated by OpenCVE AI on July 1, 2026 at 12:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4hq8-gpf5-8p68 Podman: Malformed Image can trick podman run into leaking host environment variables into the container
History
Type Values Removed Values Added
First Time appeared Podman-container-tools
Podman-container-tools podman
Vendors & Products Podman-container-tools
Podman-container-tools podman
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Podman: Malformed Image can trick podman run into leaking host environment variables into the container
Weaknesses CWE-200
CWE-668
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-668

    Exposure of Resource to Wrong Sphere

  • CWE-914

    Improper Control of Dynamically-Identified Variables

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 27, 2026, 2:41 AM
Reserved
Jun 24, 2026, 2:21 AM
Status
Analyzed
Published
Jun 26, 2026, 5:16 PM
Modified
Oct 25, 2026, 5:10 PM
Severity
Important
Public date
Jun 26, 2026, 4:29 PM