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.
CVE-2023-2253 - Medium Severity Vulnerability
Vulnerable Libraries - github.com/docker/cli-v20.10.6+incompatible, github.com/docker/distribution-v2.7.1, github.com/Docker/Docker-v20.10.9+incompatible
github.com/docker/cli-v20.10.6+incompatible
The Docker CLI
Library home page: https://proxy.golang.org/github.com/docker/cli/@v/v20.10.6+incompatible.zip
Path to dependency file: /portainer-develop/portainer-develop/api/go.mod
Path to vulnerable library: /portainer-develop/portainer-develop/api/go.mod
Dependency Hierarchy: - :x: **github.com/docker/cli-v20.10.6+incompatible** (Vulnerable Library)
github.com/docker/distribution-v2.7.1
The toolkit to pack, ship, store, and deliver container content
Library home page: https://proxy.golang.org/github.com/docker/distribution/@v/v2.7.1+incompatible.zip
Path to dependency file: /portainer-develop/portainer-develop/api/go.mod
Path to vulnerable library: /portainer-develop/portainer-develop/api/go.mod
Dependency Hierarchy: - github.com/Docker/Docker-v20.10.9+incompatible (Root Library) - :x: **github.com/docker/distribution-v2.7.1** (Vulnerable Library)
github.com/Docker/Docker-v20.10.9+incompatible
Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Library home page: https://proxy.golang.org/github.com/!docker/!docker/@v/v20.10.9+incompatible.zip
Path to dependency file: /portainer-develop/portainer-develop/api/go.mod
Path to vulnerable library: /portainer-develop/portainer-develop/api/go.mod
Dependency Hierarchy: - :x: **github.com/Docker/Docker-v20.10.9+incompatible** (Vulnerable Library)
Found in HEAD commit: ec9d972edb7fb1ea028782bd0f770272d89e0c60
Found in base branch: main
Vulnerability Details
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.
Publish Date: 2023-06-06
URL: CVE-2023-2253
CVSS 3 Score Details (6.5)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://github.com/advisories/GHSA-hqxw-f8mx-cpmw
Release Date: 2023-04-24
Fix Resolution: v2.8.2
Step up your Open Source Security Game with Mend here