Skip to content
OpenAdvisories

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Red Hat Openshift Pipelines 1 openshift-pipelines-client +1 1.15.0-11496.el8 RHEA-2024:4022
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
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

References