{"answers":{"affected":"7 open source packages ship an affected version, including github.com/sigstore/cosign, cosign and github.com/sigstore/cosign/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29902 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2024-29902 is a medium-severity denial of service vulnerability in sigstore cosign, published on 10 Apr 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-29902 and fix it if it is affected.\n\nWhat it is: CVE-2024-29902 is a medium-severity denial of service vulnerability in sigstore cosign, published on 10 Apr 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29902 exists.\n\nAffected packages and fixed versions:\n- github.com/sigstore/cosign (Go): affected all versions; no fix listed\n- github.com/sigstore/cosign (Go): affected all versions up to 2.2.3; no fix listed\n- github.com/sigstore/cosign (Go): affected all versions up to 2.2.3; no fix listed\n- cosign (Bitnami): affected all versions; fixed in 2.2.4\n- github.com/sigstore/cosign/v2 (Go): affected all versions; fixed in 2.2.4\n- github.com/sigstore/cosign/v2 (Go): affected all versions; fixed in 2.2.4\n- github.com/sigstore/cosign/v2 (Go): affected all versions; fixed in 2.2.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-2024-29902/ (Markdown: https://insights.sbomify.com/CVE-2024-29902/index.md)","id":"CVE-2024-29902","markdown":"https://insights.sbomify.com/CVE-2024-29902/index.md","name":"CVE-2024-29902","record":{"aliases":["BIT-cosign-2024-29902","CLEANSTART-2026-TB62502","GHSA-88jx-383q-w4qc","GO-2024-2718"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Cosign code signing tool","requires_auth":"high_privilege","summary":"Attackers can cause host machine denial of service by providing maliciously large attachments in remote images, impacting system availability and other services.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cosign","vendor":"sigstore"}],"cvss":{"score":4.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"description":"Cosign provides code signing and transparency for containers and binaries. Prior to version 2.2.4, a remote image with a malicious attachment can cause denial of service of the host machine running Cosign. This can impact other services on the machine that rely on having memory available such as a Redis database which can result in data loss. It can also impact the availability of other services on the machine that will not be available for the duration of the machine denial. The root cause of this issue is that Cosign reads the attachment from a remote image entirely into memory without checking the size of the attachment first. As such, a large attachment can make Cosign read a large attachment into memory; If the attachments size is larger than the machine has memory available, the machine will be denied of service. The Go runtime will make a SigKill after a few seconds of system-wide denial. This issue can allow a supply-chain escalation from a compromised registry to the Cosign user: If an attacher has compromised a registry or the account of an image vendor, they can include a malicious attachment and hurt the image consumer. Version 2.2.4 contains a patch for the vulnerability.","ecosystems":["Bitnami","Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Cosign vulnerable to system-wide denial of service via malicious attachments","id":"CVE-2024-29902","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":7,"n_references":5,"next":{"headline":"Cosign vulnerable to machine-wide denial of service via malicious artifacts","id":"CVE-2024-29903"},"packages":[{"ecosystem":"Bitnami","fixed":["2.2.4"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:bitnami/cosign","source":"BIT-cosign-2024-29902"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/sigstore/cosign","purl":"pkg:golang/github.com/sigstore/cosign","source":"GO-2024-2718"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.2.3"],"package":"github.com/sigstore/cosign","purl":null,"source":"GHSA-88jx-383q-w4qc"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.2.3"],"package":"github.com/sigstore/cosign","purl":"pkg:golang/github.com/sigstore/cosign","source":"GHSA-88jx-383q-w4qc"},{"ecosystem":"Go","fixed":["2.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/sigstore/cosign/v2","purl":null,"source":"GHSA-88jx-383q-w4qc"},{"ecosystem":"Go","fixed":["2.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/sigstore/cosign/v2","purl":"pkg:golang/github.com/sigstore/cosign/v2","source":"GHSA-88jx-383q-w4qc"},{"ecosystem":"Go","fixed":["2.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/sigstore/cosign/v2","purl":"pkg:golang/github.com/sigstore/cosign/v2","source":"GO-2024-2718"}],"prev":{"headline":"@workos-inc/authkit-nextjs session replay vulnerability","id":"CVE-2024-29901"},"products":["cosign"],"published":"2024-04-10","related":[{"cvss_score":7.1,"headline":"False positive signature verification in cosign","id":"CVE-2022-35929","kev_date_added":null,"published":"2022-08-04"},{"cvss_score":5.5,"headline":"Cosign verification accepts any valid Rekor entry under certain conditions","id":"CVE-2026-22703","kev_date_added":null,"published":"2026-01-10"},{"cvss_score":5.5,"headline":"Vulnerabilities with blob verification in sigstore cosign","id":"CVE-2022-36056","kev_date_added":null,"published":"2022-09-14"},{"cvss_score":4.3,"headline":"Cosign's verify-blob-attestation reports false positive when payload parsing fails","id":"CVE-2026-39395","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":4.2,"headline":"Cosign vulnerable to machine-wide denial of service via malicious artifacts","id":"CVE-2024-29903","kev_date_added":null,"published":"2024-04-10"},{"cvss_score":3.7,"headline":"Cosign Certificate Chain Expiry Validation Issue Allows Issuing Certificate Expiry to Be Overlooked","id":"CVE-2026-24122","kev_date_added":null,"published":"2026-02-19"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["sigstore"]},"summary":"Attackers can cause host machine denial of service by providing maliciously large attachments in remote images, impacting system availability and other services.","url":"https://insights.sbomify.com/CVE-2024-29902/"}