All vulnerabilities

Servers and applications

CVE-2026-57231

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

Severity
High 7.5
Published
24 Jun 2026
Last changed
25 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
5.8.4
Exploit chance
0.4% in the next 30 daysHigher than 38% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Information exposure (CWE-200)Exposure of a resource to the wrong sphere (CWE-668)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Also known as
GHSA-4hq8-gpf5-8p68
Sources
NVD, Project advisories (GitHub)

Description

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.

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.

From podman-container-tools/podman's security advisory.

Workarounds

Do not run untrusted images. Before running an image consider inspecting the config with podman image inspect --format '{{.Config.Env}}' and check for any variables that do not have a value assigned.

Workarounds as given by podman-container-tools/podman's security advisory.

Affected software

SoftwareAffected versions
PodmanServers and applications · cpe:a:podman_project:podman
  • From 1.8.1 before 5.8.4
  • Version 6.0.0-rc1
PodmanServers and applications · github:podman-container-tools/podman
  • From 1.8.1 before 5.8.4

About Podman

daemonless OCI-compliant container runtime

From Wikidata, CC0 1.0.
Developers who used it in the past year
11.1%Stack Overflow Developer Survey 2025, 2025
GitHub stars
33,281GitHub, 15 Nov 2026
Forks
3,458GitHub, 15 Nov 2026
Latest release
v6.2.0GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
Developer
Matt HeonWikidata
License
Apache Software License 2.0Wikidata
Written in
GoWikidata
First published on GitHub
1 Nov 2017GitHub

Release lines

ReleaseLatestSecurity fixes
6.16.1.4Yes
6.06.0.2Ended 12 Aug 2026
5.85.8.10Ended 26 Sept 2026
5.75.7.1Ended 12 Feb 2026
5.65.6.2Ended 11 Nov 2025
5.55.5.2Ended 15 Aug 2025

From endoflife.date.

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-57231
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-57231
  • GitHub Advisory Database https://github.com/advisories/GHSA-4hq8-gpf5-8p68
  • github.com https://github.com/podman-container-tools/podman/security/advisories/GHSA-4hq8-gpf5-8p68