CVEfocus › CVE database › CVE-2022-24778

CVE-2022-24778Incorrect Authorization in imgcrypt

CVSS 7.5 HighEPSS 2.3% (higher than 84% of CVEs)Published 2022-03-25Updated 2025-04-22Assigner: GitHub_M

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.

CWE-863

What to do

Fixed builds are available from Go, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10containerdNot affected
vulnerable_code_not_present
Ubuntu 22.04containerdFixed1.5.9-0ubuntu3.1UBUNTU-CVE-2022-24778
Ubuntu 20.04containerdFixed1.5.9-0ubuntu1~20.04.6UBUNTU-CVE-2022-24778
Ubuntu 18.04containerdFixed1.5.9-0ubuntu1~18.04.2UBUNTU-CVE-2022-24778
Ubuntu 16.04containerdFix pendingUBUNTU-CVE-2022-24778
Go librarygithub.com/containerd/imgcryptFixed1.1.4GHSA-8v99-48m9-c8pm

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.