# CVE-2024-29902: Cosign vulnerable to system-wide denial of service via malicious attachments

- Priority: **Routine**
- Reason: Not severe (CVSS 4.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-04-10 · Modified: 2024-08-02
- Aliases: CGA-2f25-wrc6-cfm3, CGA-2jcq-755r-73jj, CGA-2qx4-fvr9-78wq, CGA-3pxr-8pwc-vhr7, CGA-4m2x-c258-2hqp, CGA-4wvx-qpw4-xv28, CGA-4xhw-vxgf-fq43, CGA-5m2m-mmjh-pqgw, CGA-5v6h-j87g-j3w7, CGA-5vq6-4cqv-pv6c, CGA-5wg8-qrf6-6jvv, CGA-64r8-9x3r-4qjm, CGA-7c9w-wh9r-4vpp, CGA-7vvq-w78w-7gfp, CGA-86p6-7p43-h7f2, CGA-884x-pjwj-4573, CGA-9872-fwc7-qmc5, CGA-9g39-348w-qr2h, CGA-c5r8-hmw8-69h7, CGA-c8rc-3r38-rc2c, CGA-cchm-g878-77xr, CGA-cqrj-mjxv-54cx, CGA-f79q-wf5m-c57j, CGA-fgj2-vhqf-4fmf, CGA-fhqm-2g6g-9c48, CGA-frjc-m4rg-2jrp, CGA-frmq-69h5-g74c, CGA-g4qp-qmm8-cpjj, CGA-ggj5-9rj9-h8vf, CGA-gpm2-57w8-9g4x, CGA-j8mx-wmq6-g5pr, CGA-m2x3-6xm5-fmgf, CGA-mp2w-2mx8-3ggm, CGA-pqq3-w4cw-h58v, CGA-q78g-3vwp-84cr, CGA-qw75-f8vw-qgr8, CGA-qxjj-vmmm-hjp7, CGA-rqgg-cqgr-rv9r, CGA-rxq8-mjx9-524g, CGA-vr83-jq8h-v9gc, CGA-xmcx-59mq-qx68, CGA-xxhf-6pfx-qxf4, GHSA-88jx-383q-w4qc, BIT-cosign-2024-29902, GO-2024-2718, CGA-44v5-8fvh-26fr, CGA-4hh2-2gjr-675p, CGA-4rj4-mrw5-vphh, CGA-4wg8-jwjx-33hf, CGA-5499-3qvf-f4jg, CGA-6m32-5f45-q3x8, CGA-74pw-8g93-4c2p, CGA-c94c-wgfc-gv69, CGA-cchv-44j7-5xr4, CGA-f354-v8px-8r5m, CGA-hxch-v8v5-rr6q, CGA-hxq9-g9p5-pjj6, CGA-p9wr-6497-vfjj, CGA-rjx8-v7xf-6fqm, CGA-rwqf-553w-8xxx, CGA-w564-5p3j-8gvq, CGA-x593-89p5-phvj, CGA-xp6m-vh9g-8v8q
- Record: https://cvemate.com/vulnerability/CVE-2024-29902 · JSON: https://cvemate.com/vulnerability/CVE-2024-29902/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.658%, percentile 52.899%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 54)

- chainguard aactl (Chainguard): \< 0.4.12-r10
- chainguard apko (Chainguard): \< 0.14.0-r6
- chainguard chainctl (Chainguard): \< 0.2.59-r0
- chainguard docker-credential-cgr (Chainguard): \< 0.2.59-r0
- chainguard falcoctl (Chainguard): \< 0.7.3-r7
- chainguard falcoctl-fips (Chainguard): \< 0.7.3-r8
- chainguard flux-source-controller (Chainguard): \< 1.2.5-r1
- chainguard gitsign (Chainguard): \< 0.10.1-r2
- chainguard goreleaser (Chainguard): \< 1.26.0-r0
- chainguard ko (Chainguard): \< 0.15.2-r6
- chainguard ko-fips (Chainguard): \< 0.15.2-r4
- chainguard kubescape (Chainguard): \< 3.0.8-r2
- chainguard melange (Chainguard): \< 0.6.11-r1
- chainguard neuvector-sigstore-interface (Chainguard): \< 0\_git20240520-r1
- chainguard policy-controller (Chainguard): \< 0.9.0-r0
- chainguard policy-controller-fips (Chainguard): \< 0.9.0-r0
- chainguard policy-controller-tester (Chainguard): \< 0.9.0-r0
- chainguard policy-controller-tester-fips (Chainguard): \< 0.9.0-r0
- chainguard skaffold (Chainguard): \< 2.11.1-r1
- chainguard slsa-verifier (Chainguard): \< 2.5.1-r4

## References

- <https://github.com/sigstore/cosign/security/advisories/GHSA-88jx-383q-w4qc>
- <https://github.com/sigstore/cosign/commit/629f5f8fa672973503edde75f84dcd984637629e>
- <https://github.com/google/go-containerregistry/blob/a0658aa1d0cc7a7f1bcc4a3af9155335b6943f40/pkg/v1/remote/layer.go#L36-L40>
- <https://github.com/sigstore/cosign/blob/9bc3ee309bf35d2f6e17f5d23f231a3d8bf580bc/pkg/oci/remote/remote.go#L228-L239>
- <https://github.com/sigstore/cosign/releases/tag/v2.2.4>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29902.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-29902>
- <https://github.com/sigstore/cosign>

---

Data as of 2026-12-05T08:49:19.416Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
