{"answers":{"affected":"5 open source packages ship an affected version, including github.com/containerd/containerd.","exploited":"There is no known exploitation of GHSA-5j5w-g665-5m35 in the wild and no public exploit code.","fix":"Upgrade github.com/containerd/containerd to a fixed version for your release line: 1.4.12 or 1.5.8.","what":"GHSA-5j5w-g665-5m35 is an unsafe deserialization vulnerability in github.com/containerd/containerd, published on 18 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-5j5w-g665-5m35 and fix it if it is affected.\n\nWhat it is: GHSA-5j5w-g665-5m35 is an unsafe deserialization vulnerability in github.com/containerd/containerd, published on 18 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-5j5w-g665-5m35 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/containerd/containerd (Go): affected all versions; fixed in 1.4.12, 1.5.8\n- github.com/containerd/containerd (Go): affected all versions; fixed in 1.4.12\n- github.com/containerd/containerd (Go): affected all versions; fixed in 1.4.12\n- github.com/containerd/containerd (Go): affected from 1.5.0; fixed in 1.5.8\n- github.com/containerd/containerd (Go): affected from 1.5.0; fixed in 1.5.8\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/GHSA-5j5w-g665-5m35/ (Markdown: https://insights.sbomify.com/GHSA-5j5w-g665-5m35/index.md)","id":"GHSA-5j5w-g665-5m35","markdown":"https://insights.sbomify.com/GHSA-5j5w-g665-5m35/index.md","name":"GHSA-5j5w-g665-5m35","record":{"aliases":["GO-2022-0360"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"container runtime","requires_auth":"none","summary":"Ambiguous OCI manifest parsing allows attackers to bypass digest verification, potentially leading to code execution or security bypass in containerd.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nIn the OCI Distribution Specification version 1.0.0 and prior and in the OCI Image Specification version 1.0.1 and prior, manifest and index documents are ambiguous without an accompanying Content-Type HTTP header.  Versions of containerd prior to 1.4.12 and 1.5.8 treat the Content-Type header as trusted and deserialize the document according to that header.  If the Content-Type header changed between pulls of the same ambiguous document (with the same digest), the document may be interpreted differently, meaning that the digest alone is insufficient to unambiguously identify the content of the image.\n\n### Patches\n\nThis issue has been fixed in containerd 1.4.12 and 1.5.8.  Image pulls for manifests that contain a “manifests” field or indices which contain a “layers” field are rejected.\n\n### Workarounds\n\nEnsure you only pull images from trusted sources.\n\n### References\n\nhttps://github.com/opencontainers/distribution-spec/security/advisories/GHSA-mc8v-mgrf-8f4m\nhttps://github.com/opencontainers/image-spec/security/advisories/GHSA-77vh-xpmg-72qh\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [containerd](https://github.com/containerd/containerd/issues/new/choose)\n* Email us at [security@containerd.io](mailto:security@containerd.io)","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Ambiguous OCI manifest parsing","id":"GHSA-5j5w-g665-5m35","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"deserialization","year":"2021"},"n_packages":5,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["1.4.12","1.5.8"],"introduced":["0","1.5.0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"GO-2022-0360"},{"ecosystem":"Go","fixed":["1.4.12"],"introduced":["0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":null,"source":"GHSA-5j5w-g665-5m35"},{"ecosystem":"Go","fixed":["1.4.12"],"introduced":["0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"GHSA-5j5w-g665-5m35"},{"ecosystem":"Go","fixed":["1.5.8"],"introduced":["1.5.0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":null,"source":"GHSA-5j5w-g665-5m35"},{"ecosystem":"Go","fixed":["1.5.8"],"introduced":["1.5.0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"GHSA-5j5w-g665-5m35"}],"products":null,"published":"2021-11-18","related":[],"sources":[{"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"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Ambiguous OCI manifest parsing allows attackers to bypass digest verification, potentially leading to code execution or security bypass in containerd.","url":"https://insights.sbomify.com/GHSA-5j5w-g665-5m35/"}