{"answers":{"affected":"3 open source packages ship an affected version, including github.com/containers/storage. It affects 4 products.","exploited":"There is no known exploitation of CVE-2021-20291 in the wild and no public exploit code.","fix":"Upgrade github.com/containers/storage to 1.28.1 or later.","what":"CVE-2021-20291 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 1 Apr 2021. 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-2021-20291 and fix it if it is affected.\n\nWhat it is: CVE-2021-20291 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 1 Apr 2021. 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-2021-20291 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/containers/storage (Go): affected all versions; fixed in 1.28.1\n- github.com/containers/storage (Go): affected all versions; fixed in 1.28.1\n- github.com/containers/storage (Go): affected all versions; fixed in 1.28.1\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-2021-20291/ (Markdown: https://insights.sbomify.com/CVE-2021-20291/index.md)","id":"CVE-2021-20291","markdown":"https://insights.sbomify.com/CVE-2021-20291/index.md","name":"CVE-2021-20291","record":{"aliases":["ALBA-2022:0348","AZL-44580","DEBIAN-CVE-2021-20291","GHSA-7qw8-847f-pggm","GO-2021-0100","RHBA-2022:0348","RHSA-2021:1150","UBUNTU-CVE-2021-20291"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go container storage library","requires_auth":"none","summary":"An attacker can cause a Denial of Service by crafting a malicious container image that triggers a deadlock in the containers/storage library during layer unpacking.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"openshift_container_platform","vendor":"redhat"},{"product":"storage","vendor":"storage_project"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-667","name":"Improper Locking"}],"description":"A deadlock vulnerability was found in 'github.com/containers/storage' in versions before 1.28.1. When a container image is processed, each layer is unpacked using `tar`. If one of those layers is not a valid `tar` archive this causes an error leading to an unexpected situation where the code indefinitely waits for the tar unpacked stream, which never finishes. An attacker could use this vulnerability to craft a malicious image, which when downloaded and stored by an application using containers/storage, would then cause a deadlock leading to a Denial of Service (DoS).","ecosystems":["AlmaLinux:8","Go","Red Hat:enterprise_linux:8::appstream","Red Hat:openshift:4.7::el7","Red Hat:openshift:4.7::el8"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Improper Locking in github.com/containers/storage","id":"CVE-2021-20291","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"fedoraproject:fedora","products":["fedoraproject:fedora","redhat:enterprise_linux","redhat:openshift_container_platform"],"type":"denial_of_service","year":"2021"},"n_packages":115,"n_references":6,"next":{"headline":"Use after free in kernel","id":"CVE-2021-20292"},"packages":[{"ecosystem":"Go","fixed":["1.28.1"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/storage","purl":null,"source":"GHSA-7qw8-847f-pggm"},{"ecosystem":"Go","fixed":["1.28.1"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/storage","purl":"pkg:golang/github.com/containers/storage","source":"GHSA-7qw8-847f-pggm"},{"ecosystem":"Go","fixed":["1.28.1"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/storage","purl":"pkg:golang/github.com/containers/storage","source":"GO-2021-0100"},{"ecosystem":"AlmaLinux:8","fixed":["1.19.9-1.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"buildah","purl":"pkg:rpm/almalinux/buildah","source":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["1.19.9-1.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"buildah-tests","purl":"pkg:rpm/almalinux/buildah-tests","source":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["29-2.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"cockpit-podman","purl":"pkg:rpm/almalinux/cockpit-podman","source":"ALBA-2022:0348"},{"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":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["2:2.0.26-1.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"conmon","purl":"pkg:rpm/almalinux/conmon","source":"ALBA-2022:0348"},{"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":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["2:2.167.0-1.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"container-selinux","purl":"pkg:rpm/almalinux/container-selinux","source":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["0.9.1-1.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"containernetworking-plugins","purl":"pkg:rpm/almalinux/containernetworking-plugins","source":"ALBA-2022:0348"},{"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":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.2.4-1.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"containers-common","purl":"pkg:rpm/almalinux/containers-common","source":"ALBA-2022:0348"},{"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":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["3.15-1.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"crit","purl":"pkg:rpm/almalinux/crit","source":"ALBA-2022:0348"},{"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":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["3.15-1.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"criu","purl":"pkg:rpm/almalinux/criu","source":"ALBA-2022:0348"},{"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":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["0.18-2.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"crun","purl":"pkg:rpm/almalinux/crun","source":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["1.4.0-2.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"fuse-overlayfs","purl":"pkg:rpm/almalinux/fuse-overlayfs","source":"ALBA-2022:0348"},{"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":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["4.3.1-1.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"libslirp","purl":"pkg:rpm/almalinux/libslirp","source":"ALBA-2022:0348"},{"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":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["4.3.1-1.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"libslirp-devel","purl":"pkg:rpm/almalinux/libslirp-devel","source":"ALBA-2022:0348"},{"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":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["1.2.0-3.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"oci-seccomp-bpf-hook","purl":"pkg:rpm/almalinux/oci-seccomp-bpf-hook","source":"ALBA-2022:0348"},{"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":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.1-7.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/almalinux/podman","source":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.1-7.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"podman-catatonit","purl":"pkg:rpm/almalinux/podman-catatonit","source":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.1-7.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"podman-docker","purl":"pkg:rpm/almalinux/podman-docker","source":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.1-7.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"podman-plugins","purl":"pkg:rpm/almalinux/podman-plugins","source":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.1-7.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"podman-remote","purl":"pkg:rpm/almalinux/podman-remote","source":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.1-7.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"podman-tests","purl":"pkg:rpm/almalinux/podman-tests","source":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["3.15-1.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"python3-criu","purl":"pkg:rpm/almalinux/python3-criu","source":"ALBA-2022:0348"},{"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":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.0-72.rc92.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"runc","purl":"pkg:rpm/almalinux/runc","source":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.2.4-1.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"skopeo","purl":"pkg:rpm/almalinux/skopeo","source":"ALBA-2022:0348"},{"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":"ALBA-2022:0348"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.2.4-1.module_el8.5.0+2614+87221ce8"],"introduced":["0"],"last_affected":[],"package":"skopeo-tests","purl":"pkg:rpm/almalinux/skopeo-tests","source":"ALBA-2022:0348"},{"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":"ALBA-2022:0348"}],"prev":{"headline":"Missing authorization in smart proxy openscap","id":"CVE-2021-20290"},"products":["containers/storage"],"published":"2021-04-01","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":"ALBA"},{"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":"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"An attacker can cause a Denial of Service by crafting a malicious container image that triggers a deadlock in the containers/storage library during layer unpacking.","url":"https://insights.sbomify.com/CVE-2021-20291/"}