Description
Cosign provides code signing and transparency for containers and binaries. Prior to version 2.2.4, a remote image with a malicious attachment can cause denial of service of the host machine running Cosign. This can impact other services on the machine that rely on having memory available such as a Redis database which can result in data loss. It can also impact the availability of other services on the machine that will not be available for the duration of the machine denial. The root cause of this issue is that Cosign reads the attachment from a remote image entirely into memory without checking the size of the attachment first. As such, a large attachment can make Cosign read a large attachment into memory; If the attachments size is larger than the machine has memory available, the machine will be denied of service. The Go runtime will make a SigKill after a few seconds of system-wide denial. This issue can allow a supply-chain escalation from a compromised registry to the Cosign user: If an attacher has compromised a registry or the account of an image vendor, they can include a malicious attachment and hurt the image consumer. 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 Tumbleweed | teleport | 15.2.4-1.1 | openSUSE-SU-2024:13903-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-88jx-383q-w4qc |
| Go | github.com/sigstore/cosign | all versions | — | GO-2024-2718 |
| Go | github.com/sigstore/cosign/v2 | < 2.2.4 | 2.2.4 | GHSA-88jx-383q-w4qc |
Advisories 6
- 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:13903-1 teleport-15.2.4-1.1 on GA media 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-88jx-383q-w4qc
- https://github.com/sigstore/cosign/commit/629f5f8fa672973503edde75f84dcd984637629e
- https://github.com/google/go-containerregistry/blob/a0658aa1d0cc7a7f1bcc4a3af9155335b6943f40/pkg/v1/remote/layer.go#L36-L40
- https://github.com/sigstore/cosign/blob/9bc3ee309bf35d2f6e17f5d23f231a3d8bf580bc/pkg/oci/remote/remote.go#L228-L239
- https://github.com/sigstore/cosign/releases/tag/v2.2.4