GHSA-4hq8-gpf5-8p68

Suggest an improvement
Source
https://github.com/advisories/GHSA-4hq8-gpf5-8p68
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-4hq8-gpf5-8p68/GHSA-4hq8-gpf5-8p68.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4hq8-gpf5-8p68
Aliases
Published
2026-09-24T19:40:20Z
Modified
2026-09-24T20:00:05Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Podman: Malformed Image can trick podman run into leaking host environment variables into the container
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-200"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-09-24T19:40:20Z",
    "nvd_published_at":  "2026-06-26T17:16:34Z",
    "severity":  "HIGH"
}
References

Affected packages

Go
github.com/containers/podman/v5

Package

Name
github.com/containers/podman/v5
View open source insights on deps.dev
Purl
pkg:golang/github.com/containers/podman/v5

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
5.8.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-4hq8-gpf5-8p68/GHSA-4hq8-gpf5-8p68.json"
go.podman.io/podman/v6

Package

Name
go.podman.io/podman/v6
View open source insights on deps.dev
Purl
pkg:golang/go.podman.io/podman/v6

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
6.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-4hq8-gpf5-8p68/GHSA-4hq8-gpf5-8p68.json"
github.com/containers/podman/v4

Package

Name
github.com/containers/podman/v4
View open source insights on deps.dev
Purl
pkg:golang/github.com/containers/podman/v4

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
4.9.5

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-4hq8-gpf5-8p68/GHSA-4hq8-gpf5-8p68.json"
github.com/containers/podman/v3

Package

Name
github.com/containers/podman/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/containers/podman/v3

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
3.4.7

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-4hq8-gpf5-8p68/GHSA-4hq8-gpf5-8p68.json"
github.com/containers/podman/v2

Package

Name
github.com/containers/podman/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/containers/podman/v2

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
2.2.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-4hq8-gpf5-8p68/GHSA-4hq8-gpf5-8p68.json"
github.com/containers/podman

Package

Name
github.com/containers/podman
View open source insights on deps.dev
Purl
pkg:golang/github.com/containers/podman

Affected ranges

Type
SEMVER
Events
Introduced
1.8.1

Database specific

last_known_affected_version_range
"< 5.8.4"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-4hq8-gpf5-8p68/GHSA-4hq8-gpf5-8p68.json"