Every CVE Search/ Get API key

CVE-2023-2253

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

6.5 MediumFix available

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

0.94%Up 0.9 points since Jun 7, 2023
90%50%10%1%

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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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:

[1] faulty commit

Record
GHSA-hqxw-f8mx-cpmw
CVSS 3.1
7.5 HighCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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:

[1] faulty commit

Record
GHSA-hqxw-f8mx-cpmw
CVSS 3.1
7.5 HighCVSS: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 MediumCVSS: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: identity header when getting layers
  • Parse http forbidden 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

Affected packages
PackageAffectedFixed
github.com/docker/distribution
Go
before 2.8.2-beta.1
2.8.2-beta.1
cert-manager
Azure Linux:2
before 1.11.2-14
1.11.2-14
helm
Azure Linux:2
before 3.13.2-1
3.13.2-1
docker-registry
Debian:12
before 2.8.2+ds1-1
2.8.2+ds1-1
docker-registry
Debian:13
before 2.8.2+ds1-1
2.8.2+ds1-1
docker-registry
Debian:14
before 2.8.2+ds1-1
2.8.2+ds1-1
docker-registry
Debian:10
before 2.6.2~ds1-2+deb10u1, plus listed versions
2.6.2~ds1-2
2.6.2~ds1-2+deb10u1
docker-registry
Debian: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/distribution
Go
before 2.8.2-beta.1+incompatible
2.8.2-beta.1+incompatible
docker-registry
Mageia:8
before 2.8.2-1.mga8
2.8.2-1.mga8
Show 10 moreShow less
Affected packages
PackageAffectedFixed
docker-distribution
SUSE:Linux Enterprise Module for Containers 12
before 2.6.2-13.9.1
2.6.2-13.9.1
distribution
SUSE:Linux Enterprise Module for Containers 15 SP4
before 2.8.1-150400.9.18.1
2.8.1-150400.9.18.1
distribution
openSUSE:Leap 15.4
before 2.8.1-150400.9.18.1
2.8.1-150400.9.18.1
distribution
SUSE:Linux Enterprise Module for Containers 15 SP4
before 2.8.2-150400.9.21.1
2.8.2-150400.9.21.1
distribution
openSUSE:Leap 15.4
before 2.8.2-150400.9.21.1
2.8.2-150400.9.21.1
docker-registry
Ubuntu: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-registry
Ubuntu: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-registry
Ubuntu: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-registry
Ubuntu: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-registry
openSUSE:Tumbleweed
before 2.8.2-1.1
2.8.2-1.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 17 moreShow less
MoveEnter Open