{"id":"EUVD-2024-1167","revision":null,"records":[{"revision":"9bcc0be0642d4313a7e68903dfafc588","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-29903","aliases":[],"title":"Cosign vulnerable to machine-wide denial of service via malicious artifacts","description":"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.","state":0,"publishedAt":"2024-04-10T22:30:50.89+00:00","modifiedAt":"2024-08-02T01:17:58.6+00:00","affected":[{"ecosystem":"Vendor product","name":"cosign","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"sigstore\",\n                    \"product\": \"cosign\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.2.4\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H","score":4.2,"severity":"MEDIUM"}],"references":["https://github.com/sigstore/cosign/security/advisories/GHSA-95pr-fxf5-86gv","https://github.com/sigstore/cosign/commit/629f5f8fa672973503edde75f84dcd984637629e","https://github.com/sigstore/cosign/blob/14795db16417579fac0c00c11e166868d7976b61/pkg/cosign/verify.go#L948-L955","https://github.com/sigstore/cosign/blob/286a98a4a99c1b2f32f84b0d560e324100312280/pkg/oci/remote/signatures.go#L56-L70","https://github.com/sigstore/cosign/releases/tag/v2.2.4"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-29903","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-29903","identifiers":["CVE-2024-29903"]},"retained":false,"historicalAffected":[]},{"revision":"4d2b883c85544d168ac00eb1a1af5966","observedAt":"2026-11-15T01:53:10.058+00:00","statement":{"source":"euvd","id":"EUVD-2024-1167","aliases":["CVE-2024-29903","GHSA-95pr-fxf5-86gv"],"title":"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 machin…","description":"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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H","score":4.2,"severity":null}],"references":["https://github.com/sigstore/cosign/security/advisories/GHSA-95pr-fxf5-86gv","https://github.com/sigstore/cosign/commit/629f5f8fa672973503edde75f84dcd984637629e","https://github.com/sigstore/cosign/blob/14795db16417579fac0c00c11e166868d7976b61/pkg/cosign/verify.go#L948-L955","https://github.com/sigstore/cosign/blob/286a98a4a99c1b2f32f84b0d560e324100312280/pkg/oci/remote/signatures.go#L56-L70","https://github.com/sigstore/cosign/releases/tag/v2.2.4"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-1167","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Apr 10, 2024, 10:30:50 PM","dateUpdated":"Aug 2, 2024, 1:17:58 AM"},"relatedAdvisories":[{"id":"openSUSE-SU-2024:13863-1","title":"cosign-2.2.4-1.1 on GA media","vulnerabilityIds":["CVE-2024-29902","CVE-2024-29903"]},{"id":"RHEA-2024:4022","title":"Red Hat Enhancement Advisory: Red Hat OpenShift Pipelines Client tkn for 1.15.0 release","vulnerabilityIds":["CVE-2023-45288","CVE-2024-28110","CVE-2024-28180","CVE-2024-29902","CVE-2024-29903"]},{"id":"SUSE-SU-2024:1486-2","title":"Security update for cosign","vulnerabilityIds":["CVE-2024-29902","CVE-2024-29903"]},{"id":"WID-SEC-W-2024-1707","title":"Red Hat Advanced Cluster Security for Kubernetes: Mehrere Schwachstellen ermöglichen Offenlegung von Informationen","vulnerabilityIds":["CVE-2024-28849","CVE-2024-29902","CVE-2024-29903"]},{"id":"RHSA-2024:4836","title":"Red Hat Security Advisory: RHACS 4.5 enhancement and security update","vulnerabilityIds":["CVE-2024-28849","CVE-2024-29902","CVE-2024-29903"]},{"id":"SUSE-SU-2024:1486-1","title":"Security update for cosign","vulnerabilityIds":["CVE-2024-29902","CVE-2024-29903"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2024-1167","identifiers":["EUVD-2024-1167","CVE-2024-29903","GHSA-95pr-fxf5-86gv"]},"retained":false,"historicalAffected":[]},{"revision":"b7aa642fccf643beaa2f9087d2b8917c","observedAt":"2026-10-24T23:17:34.532+00:00","statement":{"source":"nvd","id":"CVE-2024-29903","aliases":[],"title":"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 machin…","description":"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.","state":0,"publishedAt":"2024-04-10T23:15:07.13+00:00","modifiedAt":"2026-06-17T07:23:20.263+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H","score":4.2,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/sigstore/cosign/blob/14795db16417579fac0c00c11e166868d7976b61/pkg/cosign/verify.go#L948-L955","https://github.com/sigstore/cosign/blob/286a98a4a99c1b2f32f84b0d560e324100312280/pkg/oci/remote/signatures.go#L56-L70","https://github.com/sigstore/cosign/commit/629f5f8fa672973503edde75f84dcd984637629e","https://github.com/sigstore/cosign/releases/tag/v2.2.4","https://github.com/sigstore/cosign/security/advisories/GHSA-95pr-fxf5-86gv"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-29903","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-770"],"productCriteria":["cpe:2.3:a:sigstore:cosign:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2024-04-10T23:15:07.130","lastModified":"2026-06-17T07:23:20.263"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2024-29903","identifiers":["CVE-2024-29903"]},"retained":false,"historicalAffected":[]},{"revision":"b3efeec6236c4bf7b4322987a5b92e51","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-95pr-fxf5-86gv","aliases":["BIT-cosign-2024-29903","CVE-2024-29903","GO-2024-2719"],"title":"Cosign malicious artifacts can cause machine-wide DoS","description":"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.  \n\nAs an example, these lines demonstrate the problem:\n\nhttps://github.com/sigstore/cosign/blob/286a98a4a99c1b2f32f84b0d560e324100312280/pkg/oci/remote/signatures.go#L56-L70 \n\nThis `Get()` method gets the manifest of the image, allocates a slice equal to the length of the layers in the manifest, loops through the layers and adds a new signature to the slice.\n\nThe exact issue is Cosign allocates excessive memory on the lines that creates a slice of the same length as the manifests. \n\n## Remediation\n\nUpdate to the latest version of Cosign, where the number of attestations, signatures and manifests has been limited to a reasonable value.\n\n## Cosign PoC\n\nIn the case of this API (also referenced above):\n\nhttps://github.com/sigstore/cosign/blob/286a98a4a99c1b2f32f84b0d560e324100312280/pkg/oci/remote/signatures.go#L56-L70\n\n… The first line can contain a length that is safe for the system and will not throw a runtime panic or be blocked by other safety mechanisms. For the sake of argument, let’s say that the length of `m, err := s.Manifest()` is the max allowed (by the machine without throwing OOM panics) manifests minus 1. When Cosign then allocates a new slice on this line: `signatures := make([]oci.Signature, 0, len(m.Layers))`, Cosign will allocate more memory than is available and the machine will be denied of service, causing Cosign and all other services on the machine to be unavailable.\n\nTo illustrate the issue here, we run a modified version of `TestSignedImageIndex()` in `pkg/oci/remote`:\n\nhttps://github.com/sigstore/cosign/blob/14795db16417579fac0c00c11e166868d7976b61/pkg/oci/remote/index_test.go#L31-L57\n\nHere, `wantLayers` is the number of manifests from these lines:\n\nhttps://github.com/sigstore/cosign/blob/286a98a4a99c1b2f32f84b0d560e324100312280/pkg/oci/remote/signatures.go#L56-L60\n\nTo test this, we want to make `wantLayers` high enough to not cause a memory on its own but still trigger the machine-wide OOM when a slice gets create with the same length. On my local machine, it would take hours to create a slice of layers that fulfils that criteria, so instead I modify the Cosign production code to reflect a long list of manifests:\n\n```golang\n// Get implements oci.Signatures\nfunc (s *sigs) Get() ([]oci.Signature, error) {\n        m, err := s.Manifest()\n        if err != nil {\n                return nil, err\n        }\n        // Here we imitate a long list of manifests\n        ms := make([]byte, 2600000000) // imitate a long list of manifests\n        signatures := make([]oci.Signature, 0, len(ms))\n        panic(\"Done\")\n        //signatures := make([]oci.Signature, 0, len(m.Layers))\n        for _, desc := range m.Layers {\n```\n\nWith this modified code, if we can cause an OOM without triggering the `panic(\"Done\")`, we have succeeded.","state":0,"publishedAt":"2024-04-11T17:15:46+00:00","modifiedAt":"2026-09-10T03:50:00.260032+00:00","affected":[{"ecosystem":"Go","name":"github.com/sigstore/cosign","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"2.2.3"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/sigstore/cosign/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.2.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/sigstore/cosign/security/advisories/GHSA-95pr-fxf5-86gv","https://nvd.nist.gov/vuln/detail/CVE-2024-29903","https://github.com/sigstore/cosign/commit/629f5f8fa672973503edde75f84dcd984637629e","https://github.com/sigstore/cosign","https://github.com/sigstore/cosign/blob/14795db16417579fac0c00c11e166868d7976b61/pkg/cosign/verify.go#L948-L955","https://github.com/sigstore/cosign/blob/286a98a4a99c1b2f32f84b0d560e324100312280/pkg/oci/remote/signatures.go#L56-L70","https://github.com/sigstore/cosign/releases/tag/v2.2.4"],"sourceUrl":"https://github.com/advisories/GHSA-95pr-fxf5-86gv","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-95pr-fxf5-86gv","identifiers":["GHSA-95pr-fxf5-86gv","BIT-cosign-2024-29903","CVE-2024-29903","GO-2024-2719"]},"retained":false,"historicalAffected":[]},{"revision":"ded41f1c912647749efe193f2e1a5429","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2024-2719","aliases":["BIT-cosign-2024-29903","CVE-2024-29903","GHSA-95pr-fxf5-86gv"],"title":"Cosign malicious artifacts can cause machine-wide DoS in github.com/sigstore/cosign","description":"Cosign malicious artifacts can cause machine-wide DoS in github.com/sigstore/cosign","state":0,"publishedAt":"2024-06-05T15:10:52+00:00","modifiedAt":"2026-02-04T02:35:06.535922+00:00","affected":[{"ecosystem":"Go","name":"github.com/sigstore/cosign","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/sigstore/cosign/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.2.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/sigstore/cosign/security/advisories/GHSA-95pr-fxf5-86gv","https://nvd.nist.gov/vuln/detail/CVE-2024-29903","https://github.com/sigstore/cosign/commit/629f5f8fa672973503edde75f84dcd984637629e","https://github.com/sigstore/cosign/blob/14795db16417579fac0c00c11e166868d7976b61/pkg/cosign/verify.go#L948-L955","https://github.com/sigstore/cosign/blob/286a98a4a99c1b2f32f84b0d560e324100312280/pkg/oci/remote/signatures.go#L56-L70","https://github.com/sigstore/cosign/releases/tag/v2.2.4"],"sourceUrl":"https://osv.dev/vulnerability/GO-2024-2719","license":"OSV · upstream source license applies","key":"osv:GO-2024-2719","identifiers":["GO-2024-2719","BIT-cosign-2024-29903","CVE-2024-29903","GHSA-95pr-fxf5-86gv"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-16T19:49:13.1105307+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T19:49:13.1105307+00:00","lastSuccessAt":"2026-11-16T19:49:13.4533812+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:49:13.453382+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-e09c5477ba50bf2254e63f220cd9c2cef8568b339276623f33b4dca70420aa16","complete":true,"records":426144,"lastAttemptAt":"2026-11-16T19:45:16.1599213+00:00","lastSuccessAt":"2026-11-16T19:45:15.8431897+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:45:16.1599213+00:00","snapshotPublishedAt":"2026-11-16T19:27:36+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b72699d4314c4ae59a44f2a112632c6a","complete":true,"records":13831,"lastAttemptAt":"2026-11-16T19:50:25.5906483+00:00","lastSuccessAt":"2026-11-16T19:50:25.585+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:50:25.585+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13884,"expectedIdentifiers":13884,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-16T19:49:13.1105307+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T19:49:13.1105307+00:00","lastSuccessAt":"2026-11-16T19:49:13.454543+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:49:13.4545436+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-18f9549cc6dd4c31a2f2ad096749b50a","complete":false,"records":13843,"lastAttemptAt":"2026-11-16T19:50:24.6419003+00:00","lastSuccessAt":"2026-11-16T19:50:24.638+00:00","error":"110 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T19:50:24.638+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13774,"expectedIdentifiers":13884,"failedIdentifiers":110},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T19:49:12.9411292+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:49:12.9411292+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T19:45:17.7082288+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:45:17.7082288+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T19:49:13.0618281+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:49:13.0618281+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-d5fa623aa60e2b62f884ac48fe978b3d571f7aff90dc5b8ac0737f208ea29f11","complete":true,"records":232543,"lastAttemptAt":"2026-11-16T19:49:12.77932+00:00","lastSuccessAt":"2026-11-16T19:49:11.8138233+00:00","error":null,"lastVerifiedAt":"2026-11-16T19:49:12.77932+00:00","snapshotPublishedAt":"2026-11-16T19:33:28+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}