CVE-2024-29902
Cosign vulnerable to system-wide denial of service via malicious attachments
Also known as BIT-cosign-2024-29902, GHSA-88jx-383q-w4qc, GO-2024-2718
Mitigation
- Upgrade github.com/sigstore/cosign/v2 to 2.2.4 or later.
Who should check
- Projects that depend on Go package github.com/sigstore/cosign (<= 2.2.3)
- Projects that depend on Go package github.com/sigstore/cosign/v2 (< 2.2.4)
- Anyone running sigstore cosign < 2.2.4
Vulnerability facts
- Affected
- github.com/sigstore/cosign <= 2.2.3; github.com/sigstore/cosign/v2 < 2.2.4
- Fixed in
- 2.2.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 4.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: High
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.83% chance of exploitation in 30 days (percentile 55, 2026-11-26)
- CWE
- CWE-770
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/sigstore/cosign | <= 2.2.3 | — | osv |
| Go github.com/sigstore/cosign/v2 | < 2.2.4 | 2.2.4 | osv |
| sigstore cosign | < 2.2.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-29902. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-29902.md Affected: github.com/sigstore/cosign <= 2.2.3; github.com/sigstore/cosign/v2 < 2.2.4 Fixed in: 2.2.4 Steps: 1. Search this machine and project for github.com/sigstore/cosign (Go), github.com/sigstore/cosign/v2 (Go), sigstore cosign: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- 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/sigstore/cosign
FAQ
Is CVE-2024-29902 being exploited?
There is no confirmed exploitation: CVE-2024-29902 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.83% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-29902?
Medium: CVSS 4.2 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2024-29902?
github.com/sigstore/cosign <= 2.2.3; github.com/sigstore/cosign/v2 < 2.2.4.
Is there a fix for CVE-2024-29902?
Yes. Fixed in 2.2.4. Upgrade github.com/sigstore/cosign/v2 to 2.2.4 or later.
How do I check if I'm affected by CVE-2024-29902?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.