Denial of Service (DoS) Affecting github.com/docker/distribution/registry/api/v2 package, versions <2.8.2-beta.1


0.0
medium

Snyk CVSS

    Attack Complexity High
    Availability High

    Threat Intelligence

    EPSS 0.05% (15th percentile)
Expand this section
NVD
6.5 medium
Expand this section
SUSE
7.5 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMDOCKERDISTRIBUTIONREGISTRYAPIV2-5885037
  • published 10 May 2023
  • disclosed 9 May 2023
  • credit josegomezr

How to fix?

Upgrade github.com/docker/distribution/registry/api/v2 to version 2.8.2-beta.1 or higher.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) due to improper validation of the value passed to the n parameter in the /v2/_catalog endpoint. Exploiting this vulnerability is possible by sending a crafted malicious request to the /v2/_catalog API endpoint, which results in an allocation of a massive string array and excessive use of memory.