CVE-2022-1227 Podman publishes a malicious image to public registries

High 8.8 Published Updated

Attackers can escalate privileges and access host filesystems via malicious images when users run podman top, requiring patches for Podman.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-1227?

CVE-2022-1227 is a high-severity vulnerability in Fedoraproject Fedora, published on 29 Apr 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A privilege escalation flaw was found in Podman. This flaw allows an attacker to publish a malicious image to a public registry. Once this image is downloaded by a potential victim, the vulnerability is triggered after a user runs the 'podman top' command. This action gives the attacker access to the host filesystem, leading to information disclosure or denial of service.

Weakness: CWE-269, CWE-281

Which versions are affected by CVE-2022-1227?

5 open source packages ship an affected version, including github.com/containers/psgo and github.com/containers/podman/v3. It affects 16 products.

PackageAffectedFixed in
github.com/containers/psgo GoAll versions1.7.2
github.com/containers/psgo GoAll versions1.7.2
github.com/containers/psgo GoAll versions1.7.2
github.com/containers/podman/v3 GoAll versions3.4
github.com/containers/podman/v3 GoAll versions3.4
Linux distribution packages (35)
buildah AlmaLinux:8All versions1.19.9-3.module_el8.6.0+2876+9ed4eae2
buildah-tests AlmaLinux:8All versions1.19.9-3.module_el8.6.0+2876+9ed4eae2
cockpit-podman AlmaLinux:8All versions29-2.module_el8.6.0+2876+9ed4eae2
conmon AlmaLinux:8All versions2:2.0.26-1.module_el8.6.0+2876+9ed4eae2
container-selinux AlmaLinux:8All versions2:2.178.0-2.module_el8.6.0+2876+9ed4eae2
containernetworking-plugins AlmaLinux:8All versions0.9.1-1.module_el8.6.0+2876+9ed4eae2
containers-common AlmaLinux:8All versions1:1.2.4-1.module_el8.6.0+2876+9ed4eae2
crit AlmaLinux:8All versions3.15-1.module_el8.6.0+2876+9ed4eae2
criu AlmaLinux:8All versions3.15-1.module_el8.6.0+2876+9ed4eae2
crun AlmaLinux:8All versions0.18-3.module_el8.6.0+2876+9ed4eae2
fuse-overlayfs AlmaLinux:8All versions1.4.0-2.module_el8.6.0+2876+9ed4eae2
libslirp AlmaLinux:8All versions4.3.1-1.module_el8.6.0+2876+9ed4eae2
libslirp-devel AlmaLinux:8All versions4.3.1-1.module_el8.6.0+2876+9ed4eae2
oci-seccomp-bpf-hook AlmaLinux:8All versions1.2.0-3.module_el8.6.0+2876+9ed4eae2
podman AlmaLinux:8All versions3.0.1-9.module_el8.6.0+2886+bfcd65b6
podman-catatonit AlmaLinux:8All versions3.0.1-9.module_el8.6.0+2886+bfcd65b6
podman-docker AlmaLinux:8All versions3.0.1-9.module_el8.6.0+2886+bfcd65b6
podman-plugins AlmaLinux:8All versions3.0.1-9.module_el8.6.0+2886+bfcd65b6
podman-remote AlmaLinux:8All versions3.0.1-9.module_el8.6.0+2886+bfcd65b6
podman-tests AlmaLinux:8All versions3.0.1-9.module_el8.6.0+2886+bfcd65b6
python3-criu AlmaLinux:8All versions3.15-1.module_el8.6.0+2876+9ed4eae2
runc AlmaLinux:8All versions1.0.0-73.rc95.module_el8.6.0+2876+9ed4eae2
skopeo AlmaLinux:8All versions1:1.2.4-1.module_el8.6.0+2876+9ed4eae2
skopeo-tests AlmaLinux:8All versions1:1.2.4-1.module_el8.6.0+2876+9ed4eae2
slirp4netns AlmaLinux:8All versions1.1.8-1.module_el8.6.0+2876+9ed4eae2
toolbox AlmaLinux:8All versions0.0.99.3-1.module_el8.6.0+2876+9ed4eae2
toolbox-tests AlmaLinux:8All versions0.0.99.3-1.module_el8.6.0+2876+9ed4eae2
udica AlmaLinux:8All versions0.2.4-1.module_el8.6.0+2876+9ed4eae2
buildah Red Hat:enterprise_linux:8::appstreamAll versions0:1.19.9-3.module+el8.6.0+14874+64436299
buildah-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.19.9-3.module+el8.6.0+14874+64436299
buildah-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:1.19.9-3.module+el8.6.0+14874+64436299
buildah-tests Red Hat:enterprise_linux:8::appstreamAll versions0:1.19.9-3.module+el8.6.0+14874+64436299
buildah-tests-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.19.9-3.module+el8.6.0+14874+64436299
cockpit-podman Red Hat:enterprise_linux:8::appstreamAll versions0:29-2.module+el8.6.0+14874+64436299
conmon Red Hat:enterprise_linux:8::appstreamAll versions2:2.0.26-1.module+el8.6.0+14874+64436299

Products include Fedoraproject Fedora, Podman Project Podman, Psgo Project Psgo, Redhat Developer Tools, Redhat Enterprise Linux, Redhat Enterprise Linux Eus and 10 more.

How do I fix CVE-2022-1227?

Upgrade github.com/containers/psgo to 1.7.2 or later.

Is CVE-2022-1227 being exploited?

There is no known exploitation of CVE-2022-1227 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALSA-2022:2143, AZL-9656, DEBIAN-CVE-2022-1227, GHSA-66vw-v2x9-hw75, GO-2022-0558, RHSA-2022:2143 and 5 more.

Is CVE-2022-1227 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free