{"id":"CVE-2024-29903","published":"2024-04-10T22:30:50Z","modified":"2024-08-02T01:17:58Z","title":"Cosign vulnerable to machine-wide denial of service via malicious artifacts","vendor":"sigstore","product":"cosign","tier":"tail","description":{"text":"Cosign provides code signing and transparency for containers and binaries. Prior to version 2.2.4, maliciously-crafted software artifacts can cause denial of service of the machine running Cosign thereby impacting all services on the machine. The root cause is that Cosign creates slices based on the number of signatures, manifests or attestations in untrusted artifacts. As such, the untrusted artifact can control the amount of memory that Cosign allocates. The exact issue is Cosign allocates excessive memory on the lines that creates a slice of the same length as the manifests. Version 2.2.4 contains a patch for the vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00851,"percentile":0.59092,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/sigstore/cosign/security/advisories/GHSA-95pr-fxf5-86gv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sigstore/cosign/commit/629f5f8fa672973503edde75f84dcd984637629e","tags":["x_refsource_MISC"]},{"url":"https://github.com/sigstore/cosign/blob/14795db16417579fac0c00c11e166868d7976b61/pkg/cosign/verify.go#L948-L955","tags":["x_refsource_MISC"]},{"url":"https://github.com/sigstore/cosign/blob/286a98a4a99c1b2f32f84b0d560e324100312280/pkg/oci/remote/signatures.go#L56-L70","tags":["x_refsource_MISC"]},{"url":"https://github.com/sigstore/cosign/releases/tag/v2.2.4","tags":["x_refsource_MISC"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":11.82},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"sigstore","affectedVersions":[{"vendor":"sigstore","product":"cosign","versions":["< 2.2.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-03T15:22:56.624321Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/sigstore/cosign","vulnerableRanges":["<=2.2.3","all versions"],"patched":[],"from":["GHSA-95pr-fxf5-86gv","GO-2024-2719"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/sigstore/cosign/v2","vulnerableRanges":["<2.2.4"],"patched":["2.2.4"],"from":["GHSA-95pr-fxf5-86gv","GO-2024-2719"],"provenance":"source"}],"summary":{"text":"Cosign, the code signing and transparency tool for containers and binaries, is vulnerable before version 2.2.4 because it allocates memory for slices sized by the number of signatures, manifests, or attestations in an untrusted artifact, with no limits. An attacker who can supply a maliciously crafted software artifact to Cosign, with user interaction and high-complexity conditions, can exhaust memory and deny service to the whole machine, affecting every service running on it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:58Z"},"euvd":{"id":"EUVD-2024-1167","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sigstore-cosign-cve-2024-29902","children":[{"from":"CVE-2024-29903","to":"CVE-2026-39395","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["cmd/cosign/cli/verify/verify_blob_attestation.go"],"commits":["https://github.com/sigstore/cosign/commit/629f5f8fa672973503edde75f84dcd984637629e","https://github.com/sigstore/cosign/commit/f1ad3ee952313be5d74a49d67ba0aa8d0d5e351f"],"basis":"shared function","functions":["Exec"]}]}],"packageHistory":[{"cve":"CVE-2023-46737","published":"2023-11-07","fixed":"2.2.1","kev":false,"link":{"from":"CVE-2023-46737","to":"CVE-2024-29903","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/sigstore/cosign/v2","fromFixed":"2.2.1","toFixed":"2.2.4","daysApart":155}]}},{"cve":"CVE-2024-29902","published":"2024-04-10","fixed":"2.2.4","kev":false},{"cve":"CVE-2024-29903","published":"2024-04-10","fixed":"2.2.4","kev":false},{"cve":"CVE-2026-22703","published":"2026-01-10","fixed":"2.6.2","kev":false},{"cve":"CVE-2026-39395","published":"2026-04-07","fixed":"2.6.3","kev":false}],"package":"Go:github.com/sigstore/cosign/v2"}}