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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| sigstore | cosign | < 2.2.4 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Openshift Pipelines 1 | openshift-pipelines-client +1 | 1.15.0-11496.el8 | RHEA-2024:4022 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | cosign | 2.2.4-150400.3.20.1 | SUSE-SU-2024:1486-2 |
| SLES 15 SP5 | cosign | 2.2.4-150400.3.20.1 | SUSE-SU-2024:1486-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | cosign | 2.2.4-1.1 | openSUSE-SU-2024:13863-1 |
| openSUSE Leap 15.6 | cosign | 2.2.4-150400.3.20.1 | SUSE-SU-2024:1486-2 |
| openSUSE Leap 15.5 | cosign | 2.2.4-150400.3.20.1 | SUSE-SU-2024:1486-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | aactl | 0.4.12-r10 | — |
| Wolfi rolling | apko | 0.14.0-r6 | — |
| Wolfi rolling | falcoctl | 0.7.3-r7 | — |
| Wolfi rolling | flux-source-controller | 1.2.5-r1 | — |
| Wolfi rolling | gitsign | 0.10.1-r2 | — |
| Wolfi rolling | goreleaser | 1.26.0-r0 | — |
| Wolfi rolling | ko | 0.15.2-r6 | — |
| Wolfi rolling | kubescape | 3.0.8-r2 | — |
| Wolfi rolling | melange | 0.6.11-r1 | — |
| Wolfi rolling | neuvector-sigstore-interface | 0_git20240520-r1 | — |
| Wolfi rolling | policy-controller +1 | 0.9.0-r0 | — |
| Wolfi rolling | skaffold | 2.11.1-r1 | — |
| Wolfi rolling | slsa-verifier | 2.5.1-r4 | — |
| Wolfi rolling | spire-server | 1.9.4-r1 | — |
| Wolfi rolling | tekton-chains | 0.20.1-r3 | — |
| Wolfi rolling | tkn | 0.36.0-r3 | — |
| Wolfi rolling | vexctl | 0.2.6-r7 | — |
| Wolfi rolling | wolfictl | 0.15.18-r1 | — |
| Wolfi rolling | zarf | 0.33.0-r1 | — |
| Wolfi rolling | zot | 2.0.3-r3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/sigstore/cosign | <= 2.2.3 | — | GHSA-95pr-fxf5-86gv |
| Go | github.com/sigstore/cosign | all versions | — | GO-2024-2719 |
| Go | github.com/sigstore/cosign/v2 | < 2.2.4 | 2.2.4 | GHSA-95pr-fxf5-86gv |
Advisories 5
- RHEA-2024:4022 Red Hat Enhancement Advisory: Red Hat OpenShift Pipelines Client tkn for 1.15.0 release Red Hat Security Advisories (RHSA) · Oct 16, 2026
- SUSE-SU-2024:1486-2 Security update for cosign SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1486-1 Security update for cosign SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13863-1 cosign-2.2.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-1707 Red Hat Advanced Cluster Security for Kubernetes: Mehrere Schwachstellen ermöglichen Offenlegung von Informationen BSI CERT-Bund (WID) · Jul 24, 2024
References
- 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