CVE-2024-29903 Cosign vulnerable to machine-wide denial of service via malicious artifacts
Attackers can cause machine-wide denial of service in Cosign by submitting malicious artifacts that trigger excessive memory allocation.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-29903?
CVE-2024-29903 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.
Official 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.
Weakness: CWE-770
Which versions are affected by CVE-2024-29903?
7 open source packages ship an affected version, including github.com/sigstore/cosign, cosign and github.com/sigstore/cosign/v2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/sigstore/cosign Go | All versions | None |
github.com/sigstore/cosign Go | All versions to 2.2.3 | None |
github.com/sigstore/cosign Go | All versions to 2.2.3 | None |
cosign Bitnami | All versions | 2.2.4 |
github.com/sigstore/cosign/v2 Go | All versions | 2.2.4 |
github.com/sigstore/cosign/v2 Go | All versions | 2.2.4 |
1 more packages
github.com/sigstore/cosign/v2 Go | All versions | 2.2.4 |
Products include Sigstore Cosign.
How do I fix CVE-2024-29903?
Upgrade to a fixed version.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-29903 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29903 exists.
Other vulnerabilities in sigstore cosign
- CVE-2022-35929 False positive signature verification in cosign
- CVE-2026-22703 Cosign verification accepts any valid Rekor entry under certain conditions
- CVE-2022-36056 Vulnerabilities with blob verification in sigstore cosign
- CVE-2026-39395 Cosign's verify-blob-attestation reports false positive when payload parsing fails
- CVE-2024-29902 Cosign vulnerable to system-wide denial of service via malicious attachments
Sources
Also known as BIT-cosign-2024-29903, CLEANSTART-2026-TU54613, GHSA-95pr-fxf5-86gv, GO-2024-2719.