{"id":"CVE-2026-57231","aliases":["CVE-2026-57231","GHSA-4hq8-gpf5-8p68","GO-2026-6594"],"related":[],"kind":"vulnerability","state":"published","title":"Podman: Malformed Image can trick podman run into leaking host environment variables into the container","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nAn 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.\n\n## Details\n\npodman 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.\n\n## Patch\n\nThat 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.\n\nFixed in https://github.com/podman-container-tools/podman/commit/6c431b73dbf8e4b20b778644d7a80caebdb75050\n\n## Workaround\n\nDo 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Podman: Malformed Image can trick podman run into leaking host environment variables into the container in github.com/containers/libpod","format":"markdown","source":"go"},{"lang":"es","text":"Podman es una herramienta para gestionar contenedores OCI y pods. Desde la versión 1.8.1 hasta la 5.8.4, una imagen de contenedor que contiene una variable de entorno con solo una clave y sin valor puede engañar a Podman para que pase esa variable del host al contenedor. Esto se agrava por el hecho de que usar un asterisco (*) hará que Podman pase todas las variables del host al contenedor. Así, esencialmente, una imagen maliciosa puede exfiltrar todas las variables de entorno de Podman que están configuradas en la sesión desde donde se lanza el contenedor. Esta vulnerabilidad está corregida en las versiones 5.8.4 y 6.0.0.","source":"nvd"}],"published":"2026-06-26T16:29:02.092Z","modified":"2026-10-25T17:10:00.197Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-200","CWE-668"],"affected":[{"ranges":[{"version":">= 1.8.1, < 5.8.4","status":"affected"}],"vendor":"podman-container-tools","product":"podman","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.8.4"}],"ecosystem":"Go","package":"github.com/containers/podman/v5","purl":"pkg:golang/github.com/containers/podman/v5","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.0.0"}],"ecosystem":"Go","package":"go.podman.io/podman/v6","purl":"pkg:golang/go.podman.io/podman/v6","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"4.9.5"}],"ecosystem":"Go","package":"github.com/containers/podman/v4","purl":"pkg:golang/github.com/containers/podman/v4","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"3.4.7"}],"ecosystem":"Go","package":"github.com/containers/podman/v3","purl":"pkg:golang/github.com/containers/podman/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"2.2.1"}],"ecosystem":"Go","package":"github.com/containers/podman/v2","purl":"pkg:golang/github.com/containers/podman/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.8.1","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman","purl":"pkg:golang/github.com/containers/podman","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.8.1","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/libpod","purl":"pkg:golang/github.com/containers/libpod","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman","purl":"pkg:golang/github.com/containers/podman","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman/v2","purl":"pkg:golang/github.com/containers/podman/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman/v3","purl":"pkg:golang/github.com/containers/podman/v3","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman/v4","purl":"pkg:golang/github.com/containers/podman/v4","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.8.4"}],"ecosystem":"Go","package":"github.com/containers/podman/v5","purl":"pkg:golang/github.com/containers/podman/v5","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.0.0"}],"ecosystem":"Go","package":"go.podman.io/podman/v6","purl":"pkg:golang/go.podman.io/podman/v6","source":"go"},{"ranges":[{"status":"affected","introduced":"1.8.1","fixed":"5.8.4"},{"status":"affected","version":"6.0.0"}],"vendor":"podman_project","product":"podman","cpe":"cpe:2.3:a:podman_project:podman:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/podman-container-tools/podman/security/advisories/GHSA-4hq8-gpf5-8p68","tags":["advisory","patch","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/podman-container-tools/podman/commit/6c431b73dbf8e4b20b778644d7a80caebdb75050","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57231","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/podman-container-tools/podman","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/podman-container-tools/podman/releases/tag/v5.8.4","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/podman-container-tools/podman/releases/tag/v6.0.0","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-27T02:41:47.348Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-57231","url":"https://www.cve.org/CVERecord?id=CVE-2026-57231","licence":"CVE Terms of Use","modified":"2026-06-27T02:41:58.574Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4hq8-gpf5-8p68","url":"https://github.com/advisories/GHSA-4hq8-gpf5-8p68","licence":"CC-BY-4.0","modified":"2026-10-01T20:55:51.913Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6594","url":"https://pkg.go.dev/vuln/GO-2026-6594","licence":"CC-BY-4.0","modified":"2026-10-01T20:45:15.887Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-57231","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57231","licence":"Public domain","modified":"2026-10-25T17:10:00.197Z"}],"updatedAt":"2026-11-25T22:59:26.504Z","epss":{"score":0.00434,"percentile":0.29422,"date":"2026-11-30T12:00:22.000Z"}}