CVE-2024-29903
CVE-2024-29903 · Cosign vulnerable to machine-wide denial of service via malicious artifacts
CVSS 4.2 · Medium · EPSS 0.9%
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- cosignNo fix published
Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- RHEA-2024:4022 · Red Hat openshift pipelines 1.15 el8 ·
- SUSE-SU-2024:1486-2 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Basesystem 15 SP6 ·
- openSUSE-SU-2024:13863-1 · openSUSE Tumbleweed ·
- SUSE-SU-2024:1486-1 · openSUSE Leap 15.5, SUSE Linux Enterprise Module for Basesystem 15 SP5 ·
Affected products and versions
cosign
- Versions
- < 2.2.4: Affected
No fix published
Original sources
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2024-29903