cve.bz

CVE-2023-46737 sigstore cosign: Infinite Loop

5.3 mediumExploit referenceEPSS 0.7%Fix available

Medium (5.3) in sigstore cosign. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/sigstore/cosign 1.13.2.

On this page
Cosign is a sigstore signing tool for OCI containers. Cosign is susceptible to a denial of service by an attacker controlled registry. An attacker who controls a remote registry can return a high number of attestations and/or signatures to Cosign and cause Cosign to enter a long loop resulting in an endless data attack. The root cause is that Cosign loops through all attestations fetched from the remote registry in pkg/cosign.FetchAttestations. The attacker needs to compromise the registry or make a request to a registry they control. When doing so, the attacker must return a high number of attestations in the response to Cosign. The result will be that the attacker can cause Cosign to go into a long or infinite loop that will prevent other users from verifying their data. In Kyvernos case, an attacker whose privileges are limited to making requests to the cluster can make a request with an image reference to their own registry, trigger the infinite loop and deny other users from completing their admission requests. Alternatively, the attacker can obtain control of the registry used by an organization and return a high number of attestations instead the expected number of attestations. The issue can be mitigated rather simply by setting a limit to the limit of attestations that Cosign will loop through. The limit does not need to be high to be within the vast majority of use cases and still prevent the endless data attack. This issue has been patched in version 2.2.1 and users are advised to upgrade.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
0.7% (unchanged from 0.7% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-09-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-46737 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-46737?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-46737?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-46737 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
sigstore:cosignbefore 2.2.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vfp6-jrw2-99g9Gogithub.com/sigstore/cosign<1.13.21.13.2
GHSA-vfp6-jrw2-99g9Gogithub.com/sigstore/cosign/v2<2.2.12.2.1
GO-2023-2181Gogithub.com/sigstore/cosignall versionsno fix published
GO-2023-2181Gogithub.com/sigstore/cosign/v2<2.2.12.2.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSELinux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Basesystem 15 SP5cosign2.2.1-150400.3.14.1SUSE-SU-2023:4870-1
openSUSELeap 15.4, Leap 15.5cosign2.2.1-150400.3.14.1SUSE-SU-2023:4870-1
openSUSETumbleweedcosign2.2.1-1.1openSUSE-SU-2024:13402-1
Alpinev3.19, v3.20, v3.21 and 3 morecosign2.2.1-r0ALPINE-CVE-2023-46737

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

The security flaw identified in the cosign package is considered a low-severity issue due to its limited impact and specific conditions required for exploitation. The vulnerability triggers an infinite loop condition, resulting in a denial of service. However, the flaw does not lead to unauthorized access, data exposure, or compromise of critical business processes. Additionally, it does not involve remote code execution and can be mitigated without causing significant long-term impact on the system's security.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
OpenShift Pipelinesopenshift-pipelines-clientAffected
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-central-db-rhel8Fix deferred
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-main-rhel8Fix deferred
Red Hat Advanced Cluster Security 4advanced-cluster-security/rhacs-central-db-rhel8Fix deferred
Red Hat Advanced Cluster Security 4advanced-cluster-security/rhacs-main-rhel8Fix deferred
Red Hat Advanced Cluster Security 4advanced-cluster-security/rhacs-rhel8-operatorFix deferred
Red Hat Advanced Cluster Security 4advanced-cluster-security/rhacs-roxctl-rhel8Fix deferred
Red Hat OpenShift Container Platform 4openshift-security-profiles-operator-containerAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-46737.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON