CVE-2023-46737
CVE-2023-46737 · Possible endless data attack from attacker-controlled registry in cosign
CVSS 3.1 · Low · EPSS 0.7% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- cosignNo fix published
- cosign Alpine 3.19Update to 2.2.1-r0
- cosign Alpine 3.20Update to 2.2.1-r0
- cosign Alpine 3.21Update to 2.2.1-r0
- and 3 more
Check the installed version:
apk list -I -o cosignAssess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- openSUSE-SU-2024:13402-1 · openSUSE Tumbleweed ·
- SUSE-SU-2023:4870-1 · openSUSE Leap 15.4, openSUSE Leap 15.5, SUSE Linux Enterprise Module for Basesystem 15 SP4, SUSE Linux Enterprise Module for Basesystem 15 SP5 ·
Stack: system
Affected products and versions
cosign
- Versions
- < 2.2.1: Affected
No fix published
cosign Alpine 3.19
- Affected ranges
- ECOSYSTEM: < 2.2.1-r0
Update to 2.2.1-r0
cosign Alpine 3.20
- Affected ranges
- ECOSYSTEM: < 2.2.1-r0
Update to 2.2.1-r0
cosign Alpine 3.21
- Affected ranges
- ECOSYSTEM: < 2.2.1-r0
Update to 2.2.1-r0
cosign Alpine 3.22
- Affected ranges
- ECOSYSTEM: < 2.2.1-r0
Update to 2.2.1-r0
cosign Alpine 3.23
- Affected ranges
- ECOSYSTEM: < 2.2.1-r0
Update to 2.2.1-r0
cosign Alpine 3.24
- Affected ranges
- ECOSYSTEM: < 2.2.1-r0
Update to 2.2.1-r0