VDB

CVE-2022-24778

CVE-2022-24778 PUBLISHED CVSS 7.5 HIGH

Incorrect Authorization in imgcrypt

Reported by github_m · Published March 25, 2022

github.com/containerd/imgcrypt/images/encryption is fixed in 1.1.4 (Go Modules)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
github.com/containerd/imgcrypt/images/encryptionGo Modules1.1.4

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected products

VendorProductVersions
containerdimgcrypt< 1.1.4
github.comcontainerd/imgcrypt/images/encryption0
containerdimgcrypt0
github.comcontainerd/imgcrypt0

Timeline

  • Mar 25, 2022 CVE Published
  • Mar 26, 2022 EPSS Score (30 in total, the first dated here)
  • Apr 22, 2025 CVE Updated
  • Mar 17, 2026 Security Advisory
  • Jul 2, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-24778
vulnetix vdb fixes CVE-2022-24778

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-24778/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›