distribution catalog API endpoint can lead to OOM via malicious user input
distribution/distribution
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/docker/distribution Go |
|
|
| github.com/distribution/distribution Go |
|
|
distribution/distribution
| Product | Affected | Fixed in |
|---|---|---|
| github.com/docker/distribution Go |
|
|
| github.com/distribution/distribution Go |
|
|
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.
From the CVE record · redhat
The /v2/_catalog endpoint accepts an unreasonably large value for its n query parameter. An attacker who can send a request to the endpoint can cause excessive memory allocation, potentially resulting in denial of service; no user interaction is required.
Operators using Go github.com/docker/distribution versions before 2.8.2-beta.1 or github.com/distribution/distribution versions before 2.8.2-beta.1+incompatible should check their installations.