Skip to content
OpenAdvisories
Medium · 6.5 CVE-2023-2253 EUVD-2023-1561GHSA-hqxw-f8mx-cpmwGO-2023-1772

distribution catalog API endpoint can lead to OOM via malicious user input

Published Jun 6, 2023 · Updated Jan 7, 2025 · Assigned by redhat

Description

A flaw was found in the `/v2/_catalog` endpoint in distribution/distribution, which accepts a parameter to control the maximum number of records returned (query string: `n`). This vulnerability allows a malicious user to submit an unreasonably large value for `n,` causing the allocation of a massive string array, possibly causing a denial of service through excessive use of memory.

Affected products

VendorProductAffectedFixed
— distribution/distribution NA —

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
Debian 14 docker-registry 2.8.2+ds1-1 —
Debian 13 docker-registry 2.8.2+ds1-1 —
Debian 12 docker-registry 2.8.2+ds1-1 —
Debian 11 docker-registry 2.7.1+ds2-7+deb11u1 DSA-5414-1
Debian 10 docker-registry 2.6.2~ds1-2+deb10u1 DLA-3473-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS docker-registry 2.7.1+ds2-7ubuntu0.3 USN-6336-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS docker-registry 2.8.0+ds1-4ubuntu0.1~esm2 USN-6336-1
Ubuntu Pro 18.04 LTS docker-registry 2.6.2~ds1-1ubuntu0.1~esm1 USN-6336-1
Ubuntu Pro 16.04 LTS docker-registry 2.3.0~ds1-1ubuntu0.1~esm1 USN-6336-1
ReleasePackageFixed inAdvisory
SLES 15 SP4 distribution 2.8.1-150400.9.18.1 SUSE-SU-2023:2298-1, SUSE-SU-2023:2154-1
SLES 12 docker-distribution 2.6.2-13.9.1 SUSE-SU-2023:2153-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed distribution-registry 2.8.2-1.1 openSUSE-SU-2024:12926-1
openSUSE Leap 15.4 distribution 2.8.1-150400.9.18.1 SUSE-SU-2023:2298-1, SUSE-SU-2023:2154-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) cert-manager 1.11.2-14 —
Azure Linux 2 (CBL-Mariner) helm 3.13.2-1 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling aactl 0.4.12-r7 —
Wolfi rolling argocd-image-updater 0.17.0-r1 —
Wolfi rolling bom 0.6.0-r0 —
Wolfi rolling kpt 1.0.0_beta31-r5 —
Wolfi rolling kubernetes-dashboard 2.7.0-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/distribution/distribution < 2.8.2-beta.1+incompatible 2.8.2-beta.1+incompatible GO-2023-1772
Go github.com/docker/distribution < 2.8.2-beta.1 2.8.2-beta.1 GHSA-hqxw-f8mx-cpmw

Advisories 9

References