PT-2024-23123 · Cosign+1 · Cosign+1

Adamkorcz

·

Published

2024-04-10

·

Updated

2025-01-09

·

CVE-2024-29902

CVSS v3.1

5.9

Medium

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Cosign versions prior to 2.2.4
Description Cosign provides code signing and transparency for containers and binaries. A remote image with a malicious attachment can cause denial of service of the host machine running Cosign, impacting other services on the machine that rely on having memory available, such as a Redis database, which can result in data loss. 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. This 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.
Recommendations Update to version 2.2.4 or later, which limits the number of attachments and includes a patch for the vulnerability. As a temporary workaround, consider restricting the size of attachments that can be read into memory to prevent denial of service. Additionally, an environment variable can override the default value for the number of attachments.

Exploit

Fix

DoS

Allocation of Resources Without Limits

Weakness Enumeration

Related Identifiers

BIT-COSIGN-2024-29902
CVE-2024-29902
GHSA-88JX-383Q-W4QC
GO-2024-2718
OPENSUSE-SU-2024:13863-1
OPENSUSE-SU-2024:13903-1
OPENSUSE-SU-2024_1486-1
OPENSUSE-SU-2024_1486-2
SUSE-SU-2024:1486-1
SUSE-SU-2024:1486-2
SUSE-SU-2024_1486-1
SUSE-SU-2024_1486-2

Affected Products

Cosign
Suse