{"answers":{"affected":"2 open source packages ship an affected version, including github.com/opencontainers/image-spec.","exploited":"There is no known exploitation of GHSA-77vh-xpmg-72qh in the wild and no public exploit code.","fix":"Upgrade github.com/opencontainers/image-spec to 1.0.2 or later.","what":"GHSA-77vh-xpmg-72qh is an unsafe deserialization vulnerability in github.com/opencontainers/image-spec, 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-77vh-xpmg-72qh and fix it if it is affected.\n\nWhat it is: GHSA-77vh-xpmg-72qh is an unsafe deserialization vulnerability in github.com/opencontainers/image-spec, 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-77vh-xpmg-72qh in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/opencontainers/image-spec (Go): affected all versions; fixed in 1.0.2\n- github.com/opencontainers/image-spec (Go): affected all versions; fixed in 1.0.2\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-77vh-xpmg-72qh/ (Markdown: https://insights.sbomify.com/GHSA-77vh-xpmg-72qh/index.md)","id":"GHSA-77vh-xpmg-72qh","markdown":"https://insights.sbomify.com/GHSA-77vh-xpmg-72qh/index.md","name":"GHSA-77vh-xpmg-72qh","record":{"aliases":[],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"OCI Image Specification","requires_auth":"none","summary":"Ambiguous OCI manifest and index documents can be misinterpreted, potentially leading to security bypasses or code execution during deserialization.","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\nIn the OCI Image Specification version 1.0.1 and prior, manifest and index documents are not self-describing and documents with a single digest could be interpreted as either a manifest or an index.\n\n### Patches\nThe Image Specification will be updated to recommend that both manifest and index documents contain a `mediaType` field to identify the type of document.\nRelease [v1.0.2](https://github.com/opencontainers/image-spec/releases/tag/v1.0.2) includes these updates.\n\n### Workarounds\nSoftware attempting to deserialize an ambiguous document may reject the document if it contains both “manifests” and “layers” fields or “manifests” and “config” fields.\n\n### References\nhttps://github.com/opencontainers/distribution-spec/security/advisories/GHSA-mc8v-mgrf-8f4m\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in https://github.com/opencontainers/image-spec\n* Email us at [security@opencontainers.org](mailto:security@opencontainers.org)\n* https://github.com/opencontainers/image-spec/commits/v1.0.2","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":"Clarify `mediaType` handling","id":"GHSA-77vh-xpmg-72qh","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"deserialization","year":"2021"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["1.0.2"],"introduced":["0"],"last_affected":[],"package":"github.com/opencontainers/image-spec","purl":null,"source":"GHSA-77vh-xpmg-72qh"},{"ecosystem":"Go","fixed":["1.0.2"],"introduced":["0"],"last_affected":[],"package":"github.com/opencontainers/image-spec","purl":"pkg:golang/github.com/opencontainers/image-spec","source":"GHSA-77vh-xpmg-72qh"}],"products":null,"published":"2021-11-18","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Ambiguous OCI manifest and index documents can be misinterpreted, potentially leading to security bypasses or code execution during deserialization.","url":"https://insights.sbomify.com/GHSA-77vh-xpmg-72qh/"}