{"answers":{"affected":"5 open source packages ship an affected version, including github.com/containers/psgo and github.com/containers/podman/v3. It affects 16 products.","exploited":"There is no known exploitation of CVE-2022-1227 in the wild and no public exploit code.","fix":"Upgrade github.com/containers/psgo to 1.7.2 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2022-1227 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2022-1227 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/containers/psgo (Go): affected all versions; fixed in 1.7.2\n- github.com/containers/psgo (Go): affected all versions; fixed in 1.7.2\n- github.com/containers/psgo (Go): affected all versions; fixed in 1.7.2\n- github.com/containers/podman/v3 (Go): affected all versions; fixed in 3.4\n- github.com/containers/podman/v3 (Go): affected all versions; fixed in 3.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-1227/ (Markdown: https://insights.sbomify.com/CVE-2022-1227/index.md)","id":"CVE-2022-1227","markdown":"https://insights.sbomify.com/CVE-2022-1227/index.md","name":"CVE-2022-1227","record":{"aliases":["ALSA-2022:2143","AZL-9656","DEBIAN-CVE-2022-1227","GHSA-66vw-v2x9-hw75","GO-2022-0558","RHSA-2022:2143","RHSA-2022:2190","RHSA-2022:2263","RHSA-2022:5622","RLSA-2022:2143","UBUNTU-CVE-2022-1227"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"patch","impacts":["privilege_escalation","data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Podman container tool","requires_auth":"none","summary":"Attackers can escalate privileges and access host filesystems via malicious images when users run podman top, requiring patches for Podman.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"podman","vendor":"podman_project"},{"product":"psgo","vendor":"psgo_project"},{"product":"developer_tools","vendor":"redhat"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"enterprise_linux_eus","vendor":"redhat"},{"product":"enterprise_linux_for_ibm_z_systems","vendor":"redhat"},{"product":"enterprise_linux_for_power_little_endian","vendor":"redhat"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_server_aus","vendor":"redhat"},{"product":"enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions","vendor":"redhat"},{"product":"enterprise_linux_server_tus","vendor":"redhat"},{"product":"enterprise_linux_server_update_services_for_sap_solutions","vendor":"redhat"},{"product":"enterprise_linux_workstation","vendor":"redhat"},{"product":"openshift_container_platform","vendor":"redhat"},{"product":"quay","vendor":"redhat"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"},{"id":"CWE-281","name":"Improper Preservation of Permissions"}],"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.","ecosystems":["AlmaLinux:8","Go","Red Hat:enterprise_linux:8::appstream","Red Hat:openshift:4.6::el8","Red Hat:rhel_eus:8.4::appstream","Red Hat:rhel_extras_other:7","Rocky Linux:8"],"exploits":{"exploitdb":0,"first_seen":"2023-04-01","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-04-01T07:28:15Z","kind":"github_poc","ref":"https://github.com/LouisLiuNova/CVE-2022-1227_Exploit","stars":1,"title":"A script for exploiting CVE-2022-1227"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Podman publishes a malicious image to public registries","id":"CVE-2022-1227","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"fedoraproject:fedora","products":["fedoraproject:fedora","redhat:enterprise_linux","redhat:enterprise_linux_eus","redhat:enterprise_linux_for_ibm_z_systems","redhat:enterprise_linux_for_power_little_endian","redhat:enterprise_linux_server","redhat:enterprise_linux_server_aus","redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions","redhat:enterprise_linux_server_tus","redhat:enterprise_linux_workstation","redhat:openshift_container_platform"],"type":"privilege_escalation","year":"2022"},"n_packages":203,"n_references":4,"next":{"headline":"Opensea \u003c 1.0.3 - Admin+ Stored XSS","id":"CVE-2022-1228"},"packages":[{"ecosystem":"Go","fixed":["3.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v3","purl":null,"source":"GHSA-66vw-v2x9-hw75"},{"ecosystem":"Go","fixed":["3.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v3","purl":"pkg:golang/github.com/containers/podman/v3","source":"GHSA-66vw-v2x9-hw75"},{"ecosystem":"Go","fixed":["1.7.2"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/psgo","purl":null,"source":"GHSA-66vw-v2x9-hw75"},{"ecosystem":"Go","fixed":["1.7.2"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/psgo","purl":"pkg:golang/github.com/containers/psgo","source":"GHSA-66vw-v2x9-hw75"},{"ecosystem":"Go","fixed":["1.7.2"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/psgo","purl":"pkg:golang/github.com/containers/psgo","source":"GO-2022-0558"},{"ecosystem":"AlmaLinux:8","fixed":["1.19.9-3.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"buildah","purl":"pkg:rpm/almalinux/buildah","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["1.19.9-3.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"buildah-tests","purl":"pkg:rpm/almalinux/buildah-tests","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["29-2.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"cockpit-podman","purl":"pkg:rpm/almalinux/cockpit-podman","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["2:2.0.26-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"conmon","purl":"pkg:rpm/almalinux/conmon","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["2:2.178.0-2.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"container-selinux","purl":"pkg:rpm/almalinux/container-selinux","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["0.9.1-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"containernetworking-plugins","purl":"pkg:rpm/almalinux/containernetworking-plugins","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.2.4-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"containers-common","purl":"pkg:rpm/almalinux/containers-common","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["3.15-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"crit","purl":"pkg:rpm/almalinux/crit","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["3.15-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"criu","purl":"pkg:rpm/almalinux/criu","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["0.18-3.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"crun","purl":"pkg:rpm/almalinux/crun","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.0-2.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"fuse-overlayfs","purl":"pkg:rpm/almalinux/fuse-overlayfs","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["4.3.1-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"libslirp","purl":"pkg:rpm/almalinux/libslirp","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["4.3.1-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"libslirp-devel","purl":"pkg:rpm/almalinux/libslirp-devel","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["1.2.0-3.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"oci-seccomp-bpf-hook","purl":"pkg:rpm/almalinux/oci-seccomp-bpf-hook","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.1-9.module_el8.6.0+2886+bfcd65b6"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/almalinux/podman","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.1-9.module_el8.6.0+2886+bfcd65b6"],"introduced":["0"],"last_affected":[],"package":"podman-catatonit","purl":"pkg:rpm/almalinux/podman-catatonit","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.1-9.module_el8.6.0+2886+bfcd65b6"],"introduced":["0"],"last_affected":[],"package":"podman-docker","purl":"pkg:rpm/almalinux/podman-docker","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.1-9.module_el8.6.0+2886+bfcd65b6"],"introduced":["0"],"last_affected":[],"package":"podman-plugins","purl":"pkg:rpm/almalinux/podman-plugins","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.1-9.module_el8.6.0+2886+bfcd65b6"],"introduced":["0"],"last_affected":[],"package":"podman-remote","purl":"pkg:rpm/almalinux/podman-remote","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.1-9.module_el8.6.0+2886+bfcd65b6"],"introduced":["0"],"last_affected":[],"package":"podman-tests","purl":"pkg:rpm/almalinux/podman-tests","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["3.15-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"python3-criu","purl":"pkg:rpm/almalinux/python3-criu","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.0-73.rc95.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"runc","purl":"pkg:rpm/almalinux/runc","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.2.4-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"skopeo","purl":"pkg:rpm/almalinux/skopeo","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.2.4-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"skopeo-tests","purl":"pkg:rpm/almalinux/skopeo-tests","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["1.1.8-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"slirp4netns","purl":"pkg:rpm/almalinux/slirp4netns","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["0.0.99.3-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"toolbox","purl":"pkg:rpm/almalinux/toolbox","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["0.0.99.3-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"toolbox-tests","purl":"pkg:rpm/almalinux/toolbox-tests","source":"ALSA-2022:2143"},{"ecosystem":"AlmaLinux:8","fixed":["0.2.4-1.module_el8.6.0+2876+9ed4eae2"],"introduced":["0"],"last_affected":[],"package":"udica","purl":"pkg:rpm/almalinux/udica","source":"ALSA-2022:2143"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.19.9-3.module+el8.6.0+14874+64436299"],"introduced":["0"],"last_affected":[],"package":"buildah","purl":"pkg:rpm/redhat/buildah","source":"RHSA-2022:2143"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.19.9-3.module+el8.6.0+14874+64436299"],"introduced":["0"],"last_affected":[],"package":"buildah-debuginfo","purl":"pkg:rpm/redhat/buildah-debuginfo","source":"RHSA-2022:2143"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.19.9-3.module+el8.6.0+14874+64436299"],"introduced":["0"],"last_affected":[],"package":"buildah-debugsource","purl":"pkg:rpm/redhat/buildah-debugsource","source":"RHSA-2022:2143"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.19.9-3.module+el8.6.0+14874+64436299"],"introduced":["0"],"last_affected":[],"package":"buildah-tests","purl":"pkg:rpm/redhat/buildah-tests","source":"RHSA-2022:2143"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.19.9-3.module+el8.6.0+14874+64436299"],"introduced":["0"],"last_affected":[],"package":"buildah-tests-debuginfo","purl":"pkg:rpm/redhat/buildah-tests-debuginfo","source":"RHSA-2022:2143"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:29-2.module+el8.6.0+14874+64436299"],"introduced":["0"],"last_affected":[],"package":"cockpit-podman","purl":"pkg:rpm/redhat/cockpit-podman","source":"RHSA-2022:2143"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["2:2.0.26-1.module+el8.6.0+14874+64436299"],"introduced":["0"],"last_affected":[],"package":"conmon","purl":"pkg:rpm/redhat/conmon","source":"RHSA-2022:2143"}],"prev":{"headline":"Cross-site Scripting (XSS) in phpipam/phpipam","id":"CVE-2022-1226"},"products":["psgo"],"published":"2022-04-29","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["n/a"]},"summary":"Attackers can escalate privileges and access host filesystems via malicious images when users run podman top, requiring patches for Podman.","url":"https://insights.sbomify.com/CVE-2022-1227/"}