Improper Authorization Affecting github.com/containerd/imgcrypt/images/encryption package, versions <1.1.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.48% (76th percentile)

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 IDSNYK-GOLANG-GITHUBCOMCONTAINERDIMGCRYPTIMAGESENCRYPTION-2434277
  • published27 Mar 2022
  • disclosed27 Mar 2022
  • creditDimitar Dimitrov

Introduced: 27 Mar 2022

CVE-2022-24778  (opens in a new tab)
CWE-285  (opens in a new tab)

How to fix?

Upgrade github.com/containerd/imgcrypt/images/encryption to version 1.1.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Authorization. When an image with a ManifestList is used, only the first architecture in the list is tested which may not have its layers available locally since it could not be run on the host architecture. This could lead to the verdict that the image could be run, anticipating that image run failure would occur later due to the layers not being available. However, this verdict to allow the image to run enabled other architectures in the ManifestList to run an image without providing keys if that image had previously been decrypted.

CVSS Scores

version 3.1