CVE-2024-29903 Cosign vulnerable to machine-wide denial of service via malicious artifacts

Medium 4.2 Published Updated

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.

PackageAffectedFixed in
github.com/sigstore/cosign GoAll versionsNone
github.com/sigstore/cosign GoAll versions to 2.2.3None
github.com/sigstore/cosign GoAll versions to 2.2.3None
cosign BitnamiAll versions2.2.4
github.com/sigstore/cosign/v2 GoAll versions2.2.4
github.com/sigstore/cosign/v2 GoAll versions2.2.4
1 more packages
github.com/sigstore/cosign/v2 GoAll versions2.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.

Sources

Also known as BIT-cosign-2024-29903, CLEANSTART-2026-TU54613, GHSA-95pr-fxf5-86gv, GO-2024-2719.

Is CVE-2024-29903 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free