CVE-2024-29903
cosign: Malicious artifects can cause machine-wide denial of service
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-770
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | cosign | <2.2.4 | 2.2.4 |
| Go | github.com/sigstore/cosign | <=2.2.3 | No fix yet |
| Go | github.com/sigstore/cosign/v2 | <2.2.4 | 2.2.4 |
Open a package to see all its vulnerabilities.
Operating systems · 47 fixes
SUSE Linux Enterprise 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.5 | cosign | 2.2.4-150400.3.20.1 | SUSE-SU-2024:1486-1 |
| 15.6 | cosign | 2.2.4-150400.3.20.1 | SUSE-SU-2024:1486-2 |
chainguard 1 release · 24 packages
| Release | Package | Fixed in |
|---|---|---|
| gitsign | 0.10.1-r2 | |
| apko | 0.14.0-r6 | |
| wolfictl | 0.15.18-r1 | |
| ko-fips | 0.15.2-r4 | |
| ko | 0.15.2-r6 | |
| chainctl | 0.2.59-r0 |
18 more rows
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | cosign | 2.2.4-1.1 | openSUSE-SU-2024:13863-1 |
wolfi 1 release · 20 packages
| Release | Package | Fixed in |
|---|---|---|
| gitsign | 0.10.1-r2 | |
| apko | 0.14.0-r6 | |
| wolfictl | 0.15.18-r1 | |
| ko | 0.15.2-r6 | |
| vexctl | 0.2.6-r7 | |
| tekton-chains | 0.20.1-r3 |
14 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-29903
- github.com https://github.com/sigstore/cosign
- github.com https://github.com/sigstore/cosign/blob/14795db16417579fac0c00c11e166868d7976b61/pkg/cosign/verify.go#L948-L955
- github.com https://github.com/sigstore/cosign/blob/286a98a4a99c1b2f32f84b0d560e324100312280/pkg/oci/remote/signatures.go#L56-L70
- github.com https://github.com/sigstore/cosign/commit/629f5f8fa672973503edde75f84dcd984637629e
- github.com https://github.com/sigstore/cosign/releases/tag/v2.2.4
- github.com https://github.com/sigstore/cosign/security/advisories/GHSA-95pr-fxf5-86gv
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-29903
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-29903
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.