CVE-2026-57231: Podman: Malformed Image can trick podman run into leaking host environment variables into the container

Published Jun 26, 2026
·
Updated

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 Software

3 affected components
Podman Podman>1.8.1<=5.8.4
Podman Project Podman>=1.8.1<5.8.4
Podman Project Podman=6.0.0-rc1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.8.4
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.0.0
  3. Configuration

    Ensure container images do not define environment variables as just a key (no value), and do not use '*' to cause Podman to pass all host variables into the container.

    Podman environment variable specification in container image = Do not use an asterisk (*) to pass all host variables; avoid image env entries that contain only a key with no value

Event History

Jun 26, 2026
CVE Published
via MITRE·04:29 PM
Data Sourced
via MITRE·04:29 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·05:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-57231?

The severity of CVE-2026-57231 is rated high with a score of 7.5.

2

How do I fix CVE-2026-57231?

To fix CVE-2026-57231, upgrade Podman to version 5.8.5 or later.

3

What type of issue is CVE-2026-57231?

CVE-2026-57231 is classified as an information leak vulnerability.

4

What versions of Podman are affected by CVE-2026-57231?

Podman versions from 1.8.1 to 5.8.4 are affected by CVE-2026-57231.

5

How does CVE-2026-57231 affect the host environment?

CVE-2026-57231 can lead to the leaking of host environment variables into the container due to malformed images.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2026-57231 - Podman: Malformed Image can trick podman run into leaking host environment variables into the container - SecAlerts