CVE-2023-2253
distribution catalog API endpoint can lead to OOM via malicious user input
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
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.
- Record
CVE-2023-2253- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-475, CWE-770
- Updated
- 2026-11-02
CVE List
6.5
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.
- Record
CVE-2023-2253- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-475
- Updated
- 2026-11-02
EUVDEUVD-2023-1561
6.5
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.
- Record
EUVD-2023-1561- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-hqxw-f8mx-cpmw
7.5
distribution catalog API endpoint can lead to OOM via malicious user input
Impact
Systems that run distribution built after a specific commit running on memory-restricted environments can suffer from denial of service by a crafted malicious /v2/_catalog API endpoint request.
Patches
Upgrade to at least 2.8.2-beta.1 if you are running v2.8.x release. If you use the code from the main branch, update at least to the commit after f55a6552b006a381d9167e328808565dd2bf77dc.
Workarounds
There is no way to work around this issue without patching. Restrict access to the affected API endpoint: see the recommendations section.
References
/v2/_catalog endpoint accepts a parameter to control the maximum amount of records returned (query string: n).
When not given the default n=100 is used. The server trusts that n has an acceptable value, however when using a
maliciously large value, it allocates an array/slice of n of strings before filling the slice with data.
This behaviour was introduced ~7yrs ago [1].
Recommendation
The /v2/_catalog endpoint was designed specifically to do registry syncs with search or other API systems. Such an endpoint would create a lot of load on the backend system, due to overfetch required to serve a request in certain implementations.
Because of this, we strongly recommend keeping this API endpoint behind heightened privilege and avoiding leaving it exposed to the internet.
For more information
If you have any questions or comments about this advisory:
- Open an issue in distribution repository
- Email us at [email protected]
[1] faulty commit
- Record
GHSA-hqxw-f8mx-cpmw- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-475, CWE-770
- Updated
- 2026-11-02
OSVAZL-27020
6.5
CVE-2023-2253 affecting package cert-manager for versions less than 1.11.2-14
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.
- Record
AZL-27020- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVAZL-27027
6.5
CVE-2023-2253 affecting package helm for versions less than 3.13.2-1
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.
- Record
AZL-27027- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 11 moreShow less
OSV
6.5
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.
- Record
CVE-2023-2253- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-2253
6.5
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.
- Record
DEBIAN-CVE-2023-2253- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGHSA-hqxw-f8mx-cpmw
7.5
distribution catalog API endpoint can lead to OOM via malicious user input
Impact
Systems that run distribution built after a specific commit running on memory-restricted environments can suffer from denial of service by a crafted malicious /v2/_catalog API endpoint request.
Patches
Upgrade to at least 2.8.2-beta.1 if you are running v2.8.x release. If you use the code from the main branch, update at least to the commit after f55a6552b006a381d9167e328808565dd2bf77dc.
Workarounds
There is no way to work around this issue without patching. Restrict access to the affected API endpoint: see the recommendations section.
References
/v2/_catalog endpoint accepts a parameter to control the maximum amount of records returned (query string: n).
When not given the default n=100 is used. The server trusts that n has an acceptable value, however when using a
maliciously large value, it allocates an array/slice of n of strings before filling the slice with data.
This behaviour was introduced ~7yrs ago [1].
Recommendation
The /v2/_catalog endpoint was designed specifically to do registry syncs with search or other API systems. Such an endpoint would create a lot of load on the backend system, due to overfetch required to serve a request in certain implementations.
Because of this, we strongly recommend keeping this API endpoint behind heightened privilege and avoiding leaving it exposed to the internet.
For more information
If you have any questions or comments about this advisory:
- Open an issue in distribution repository
- Email us at [email protected]
[1] faulty commit
- Record
GHSA-hqxw-f8mx-cpmw- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-475, CWE-770
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-2253
6.5
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.
- Record
UBUNTU-CVE-2023-2253- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGO-2023-1772 No score
Memory exhaustion in github.com/distribution/distribution
Systems that run distribution built after a specific commit running on memory-restricted environments can suffer from denial of service by a crafted malicious /v2/_catalog API endpoint request.
- Record
GO-2023-1772- Updated
- 2026-11-02
OSVMGASA-2023-0207 No score
Updated docker-docker-registry packages fix security vulnerability
Denail of service through excessive use of memory. (CVE-2023-2253)
- Record
MGASA-2023-0207- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12926-1 No score
distribution-registry-2.8.2-1.1 on GA media
These are all security issues fixed in the distribution-registry-2.8.2-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12926-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:2153-1 No score
Security update for docker-distribution
This update for docker-distribution fixes the following issues:
- CVE-2023-2253: Catalog Endpoint can lead to OOM by user input (bsc#1207705).
- Record
SUSE-SU-2023:2153-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:2154-1 No score
Security update for distribution
This update for distribution fixes the following issues:
- CVE-2023-2253: Fixed possible DoS via a crafted malicious /v2/_catalog API endpoint request (bsc#1207705).
- Record
SUSE-SU-2023:2154-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:2298-1 No score
Security update for distribution
This update for distribution fixes the following issues:
Update to verison 2.8.2:
- Revert registry/client: set
Accept: identityheader when getting layers - Parse
httpforbidden as denied - Fix CVE-2023-2253 runaway allocation on /v2/_catalog (bsc#1207705)
- Fix panic in inmemory driver
- update to go1.19.9
- Add code to handle pagination of parts. Fixes max layer size of 10GB bug
- Dockerfile: fix filenames of artifacts
- Record
SUSE-SU-2023:2298-1- Updated
- 2026-11-02
OSVUSN-6336-1 No score
docker-registry vulnerabilities
It was discovered that Docker Registry incorrectly handled certain crafted input, A remote attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 16.04 LTS. (CVE-2017-11468)
It was discovered that Docker Registry incorrectly handled certain crafted input. An attacker could possibly use this issue to cause a denial of service. (CVE-2023-2253)
- Record
USN-6336-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/docker/distributionGo |
before 2.8.2-beta.1 | 2.8.2-beta.1 |
cert-managerAzure Linux:2 |
before 1.11.2-14 | 1.11.2-14 |
helmAzure Linux:2 |
before 3.13.2-1 | 3.13.2-1 |
docker-registryDebian:12 |
before 2.8.2+ds1-1 | 2.8.2+ds1-1 |
docker-registryDebian:13 |
before 2.8.2+ds1-1 | 2.8.2+ds1-1 |
docker-registryDebian:14 |
before 2.8.2+ds1-1 | 2.8.2+ds1-1 |
docker-registryDebian:10 |
before 2.6.2~ds1-2+deb10u1, plus listed versions 2.6.2~ds1-2 |
2.6.2~ds1-2+deb10u1 |
docker-registryDebian:11 |
before 2.7.1+ds2-7+deb11u1, plus listed versions 2.7.1+ds2-7 |
2.7.1+ds2-7+deb11u1 |
github.com/distribution/distributionGo |
before 2.8.2-beta.1+incompatible | 2.8.2-beta.1+incompatible |
docker-registryMageia:8 |
before 2.8.2-1.mga8 | 2.8.2-1.mga8 |
Show 10 moreShow less
| Package | Affected | Fixed |
|---|---|---|
docker-distributionSUSE:Linux Enterprise Module for Containers 12 |
before 2.6.2-13.9.1 | 2.6.2-13.9.1 |
distributionSUSE:Linux Enterprise Module for Containers 15 SP4 |
before 2.8.1-150400.9.18.1 | 2.8.1-150400.9.18.1 |
distributionopenSUSE:Leap 15.4 |
before 2.8.1-150400.9.18.1 | 2.8.1-150400.9.18.1 |
distributionSUSE:Linux Enterprise Module for Containers 15 SP4 |
before 2.8.2-150400.9.21.1 | 2.8.2-150400.9.21.1 |
distributionopenSUSE:Leap 15.4 |
before 2.8.2-150400.9.21.1 | 2.8.2-150400.9.21.1 |
docker-registryUbuntu:Pro:16.04:LTS |
before 2.3.0~ds1-1ubuntu0.1~esm1, plus listed versions 2.1.1~ds1-42.1.1~ds1-4ubuntu12.3.0~ds1-1 |
2.3.0~ds1-1ubuntu0.1~esm1 |
docker-registryUbuntu:Pro:18.04:LTS |
before 2.6.2~ds1-1ubuntu0.1~esm1, plus listed versions 2.6.2~ds1-1 |
2.6.2~ds1-1ubuntu0.1~esm1 |
docker-registryUbuntu:20.04:LTS |
before 2.7.1+ds2-7ubuntu0.3, plus listed versions 2.6.2~ds1-22.7.1~ds1-22.7.1~ds1-32.7.1~ds1-42.7.1+ds2-52.7.1+ds2-72.7.1+ds2-7ubuntu0.12.7.1+ds2-7ubuntu0.2 |
2.7.1+ds2-7ubuntu0.3 |
docker-registryUbuntu:Pro:22.04:LTS |
before 2.8.0+ds1-4ubuntu0.1~esm2, plus listed versions 2.7.1+ds2-7build22.8.0+ds1-42.8.0+ds1-4ubuntu0.1~esm1 |
2.8.0+ds1-4ubuntu0.1~esm2 |
distribution-registryopenSUSE:Tumbleweed |
before 2.8.2-1.1 | 2.8.2-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-2253 is a medium vulnerability (CVSS 6.5) in Redhat Openshift Api For Data Protection, published May 9, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.94%, the 61st percentile. Fixed in github.com/docker/distribution 2.8.2-beta.1.
References
bugzilla.redhat.com/show_bug.cgi?id=2189886
lists.debian.org/debian-lts-announce/2023/06/msg00035.html
github.com/distribution/distribution/security/advisories/GHSA-hqxw-f8mx-cpmw
github.com/distribution/distribution/commit/f55a6552b006a381d9167e328808565dd2bf77dc
nvd.nist.gov/vuln/detail/CVE-2023-2253
github.com/advisories/GHSA-hqxw-f8mx-cpmw
Show 17 moreShow less
security-tracker.debian.org/tracker/CVE-2023-2253
github.com/distribution/distribution
advisories.mageia.org/MGASA-2023-0207.html
bugs.mageia.org/show_bug.cgi?id=32017
debian.org/security/2023/dsa-5414
suse.com/support/update/announcement/2023/suse-su-20232153-1
bugzilla.suse.com/1207705
suse.com/security/cve/CVE-2023-2253
suse.com/support/update/announcement/2023/suse-su-20232154-1
suse.com/support/update/announcement/2023/suse-su-20232298-1
bugzilla.suse.com/1210428
ubuntu.com/security/CVE-2023-2253
github.com/distribution/distribution/commit/521ea3d973cb0c7089ebbcdd4ccadc34be941f54
openwall.com/lists/oss-security/2023/05/09/1
ubuntu.com/security/notices/USN-6336-1
cve.org/CVERecord?id=CVE-2023-2253
ubuntu.com/security/CVE-2017-11468