Live threats

All CVEs / Linuxfoundation

CVE-2022-24778Linuxfoundation Imgcrypt

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.3%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Mar 25, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-863
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

The imgcrypt library provides API exensions for containerd to support encrypted container images and implements the ctd-decoder command line tool for use by containerd to decrypt encrypted container images. The imgcrypt function `CheckAuthorization` is supposed to check whether the current used is authorized to access an encrypted image and prevent the user from running an image that another user previously decrypted on the same system. In versions prior to 1.1.4, a failure occurs when an image with a ManifestList is used and the architecture of the local host is not the first one in the ManifestList. Only the first architecture in the list was tested, which may not have its layers available locally since it could not be run on the host architecture. Therefore, the verdict on unavailable layers was 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. A patch has been applied to imgcrypt 1.1.4. Workarounds may include usage of different namespaces for each remote user.

Original NVD text.

What to do

  1. Apply the vendor's security update for Imgcrypt.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/containerd/imgcrypt < 1.1.4 1.1.4 go get github.com/containerd/imgcrypt@v1.1.4
Go github.com/containerd/imgcrypt < 1.1.4 1.1.4 go get github.com/containerd/imgcrypt@v1.1.4

Per OSV / GitHub Advisories (GHSA-8v99-48m9-c8pm, GO-2021-0412). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
linuxfoundationimgcrypt< 1.1.4
fedoraprojectfedora34
fedoraprojectfedora35
fedoraprojectfedora36

Official sources

References

Links published by the sources. Open them with care.