Cosign vulnerable to system-wide denial of service via malicious attachments
Published Apr 10, 2024
5.9
MEDIUMCVSS 3.1
EPSS 0.66%
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
-
- Version < 2.2.4StatusaffectedConstraints-
- Version
-
- Version 0.1.0StatusaffectedConstraints<2.2.4
- Version
OpenShift-Pipelines-1.15-RHEL-8
openshift-pipelines-client-0:1.15.0-11496.el8
Fixed · RHEA-2024:4022
Red Hat Advanced Cluster Security 4.5
advanced-cluster-security/rhacs-central-db-rhel8:4.5.0-2
Fixed · RHSA-2024:4836
Red Hat Advanced Cluster Security 4.5
advanced-cluster-security/rhacs-collector-rhel8:4.5.0-2
Fixed · RHSA-2024:4836
Red Hat Advanced Cluster Security 4.5
advanced-cluster-security/rhacs-collector-slim-rhel8:4.5.0-2
Fixed · RHSA-2024:4836
Red Hat Advanced Cluster Security 4.5
advanced-cluster-security/rhacs-main-rhel8:4.5.0-3
Fixed · RHSA-2024:4836
Red Hat Advanced Cluster Security 4.5
advanced-cluster-security/rhacs-operator-bundle:4.5.0-3
Fixed · RHSA-2024:4836
Red Hat Advanced Cluster Security 4.5
advanced-cluster-security/rhacs-rhel8-operator:4.5.0-2
Fixed · RHSA-2024:4836
Red Hat Advanced Cluster Security 4.5
advanced-cluster-security/rhacs-roxctl-rhel8:4.5.0-2
Fixed · RHSA-2024:4836
Red Hat Advanced Cluster Security 4.5
advanced-cluster-security/rhacs-scanner-db-rhel8:4.5.0-2
Fixed · RHSA-2024:4836
Red Hat Advanced Cluster Security 4.5
advanced-cluster-security/rhacs-scanner-db-slim-rhel8:4.5.0-2
Fixed · RHSA-2024:4836
Red Hat Advanced Cluster Security 4.5
advanced-cluster-security/rhacs-scanner-rhel8:4.5.0-2
Fixed · RHSA-2024:4836
Red Hat Advanced Cluster Security 4.5
advanced-cluster-security/rhacs-scanner-slim-rhel8:4.5.0-2
Fixed · RHSA-2024:4836
Red Hat Advanced Cluster Security 4.5
advanced-cluster-security/rhacs-scanner-v4-db-rhel8:4.5.0-2
Fixed · RHSA-2024:4836
Red Hat Advanced Cluster Security 4.5
advanced-cluster-security/rhacs-scanner-v4-rhel8:4.5.0-3
Fixed · RHSA-2024:4836
Red Hat Advanced Cluster Security 3
advanced-cluster-security/rhacs-main-rhel8
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| OpenShift-Pipelines-1.15-RHEL-8 | openshift-pipelines-client-0:1.15.0-11496.el8 | Fixed | RHEA-2024:4022 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-central-db-rhel8:4.5.0-2 | Fixed | RHSA-2024:4836 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-collector-rhel8:4.5.0-2 | Fixed | RHSA-2024:4836 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-collector-slim-rhel8:4.5.0-2 | Fixed | RHSA-2024:4836 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-main-rhel8:4.5.0-3 | Fixed | RHSA-2024:4836 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-operator-bundle:4.5.0-3 | Fixed | RHSA-2024:4836 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-rhel8-operator:4.5.0-2 | Fixed | RHSA-2024:4836 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-roxctl-rhel8:4.5.0-2 | Fixed | RHSA-2024:4836 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-scanner-db-rhel8:4.5.0-2 | Fixed | RHSA-2024:4836 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-scanner-db-slim-rhel8:4.5.0-2 | Fixed | RHSA-2024:4836 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-scanner-rhel8:4.5.0-2 | Fixed | RHSA-2024:4836 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-scanner-slim-rhel8:4.5.0-2 | Fixed | RHSA-2024:4836 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-scanner-v4-db-rhel8:4.5.0-2 | Fixed | RHSA-2024:4836 |
| Red Hat Advanced Cluster Security 4.5 | advanced-cluster-security/rhacs-scanner-v4-rhel8:4.5.0-3 | Fixed | RHSA-2024:4836 |
| Red Hat Advanced Cluster Security 3 | advanced-cluster-security/rhacs-main-rhel8 | Not affected | n/a |
github.com/sigstore/cosign
Go
Introduced 0 Fixed not fixedgithub.com/sigstore/cosign/v2
Go
Introduced 0 Fixed 2.2.4
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/sigstore/cosign | 0 | not fixed |
| Go | github.com/sigstore/cosign/v2 | 0 | 2.2.4 |
Remediation
No remediation recorded yet.
References (10)
- https://access.redhat.com/security/cve/CVE-2024-29902 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2274508 Issue Tracking
- https://github.com/advisories/GHSA-88jx-383q-w4qc Advisory
- https://github.com/google/go-containerregistry/blob/a0658aa1d0cc7a7f1bcc4a3af9155335b6943f40/pkg/v1/remote/layer.go#L36-L40 x_refsource_MISCProduct
- https://github.com/sigstore/cosign/blob/9bc3ee309bf35d2f6e17f5d23f231a3d8bf580bc/pkg/oci/remote/remote.go#L228-L239 x_refsource_MISCProduct
- https://github.com/sigstore/cosign/commit/629f5f8fa672973503edde75f84dcd984637629e x_refsource_MISCPatch
- https://github.com/sigstore/cosign/releases/tag/v2.2.4 x_refsource_MISCRelease Notes
- https://github.com/sigstore/cosign/security/advisories/GHSA-88jx-383q-w4qc x_refsource_CONFIRMVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-29902
- https://www.cve.org/CVERecord?id=CVE-2024-29902
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2024-29902 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2274508 | Issue Tracking | |
| https://github.com/advisories/GHSA-88jx-383q-w4qc | Advisory | |
| https://github.com/google/go-containerregistry/blob/a0658aa1d0cc7a7f1bcc4a3af9155335b6943f40/pkg/v1/remote/layer.go#L36-L40 | x_refsource_MISCProduct | |
| https://github.com/sigstore/cosign/blob/9bc3ee309bf35d2f6e17f5d23f231a3d8bf580bc/pkg/oci/remote/remote.go#L228-L239 | x_refsource_MISCProduct | |
| https://github.com/sigstore/cosign/commit/629f5f8fa672973503edde75f84dcd984637629e | x_refsource_MISCPatch | |
| https://github.com/sigstore/cosign/releases/tag/v2.2.4 | x_refsource_MISCRelease Notes | |
| https://github.com/sigstore/cosign/security/advisories/GHSA-88jx-383q-w4qc | x_refsource_CONFIRMVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-29902 | ||
| https://www.cve.org/CVERecord?id=CVE-2024-29902 |
Change history (0)
No recorded changes yet.