CVE-2022-24778
published high CVSS 3.1 · 7.5Incorrect Authorization in imgcrypt
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| containerd | — | imgcrypt< 1.1.4 | Affected | Not stated | GitHub_M |
| Ubuntu | bionic | containerd | Advisory build | 1.5.9-0ubuntu1~18.04.2 | USN-5776-1 |
| Ubuntu | bionic | golang-github-containerd-containerd-dev | Advisory build | 1.5.9-0ubuntu1~18.04.2 | USN-5776-1 |
| Ubuntu | focal | containerd | Advisory build | 1.5.9-0ubuntu1~20.04.6 | USN-5776-1 |
| Ubuntu | focal | golang-github-containerd-containerd-dev | Advisory build | 1.5.9-0ubuntu1~20.04.6 | USN-5776-1 |
| Ubuntu | jammy | containerd | Advisory build | 1.5.9-0ubuntu3.1 | USN-5776-1 |
| Ubuntu | jammy | golang-github-containerd-containerd-dev | Advisory build | 1.5.9-0ubuntu3.1 | USN-5776-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| containerd | imgcrypt | < 1.1.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-863 CWE-863: Incorrect Authorization
References
7- https://github.com/containerd/imgcrypt/commit/6fdd9818a4d8142107b7ecd767d839c9707700d9
- https://github.com/containerd/imgcrypt/issues/69
- https://github.com/containerd/imgcrypt/releases/tag/v1.1.4
- https://github.com/containerd/imgcrypt/security/advisories/GHSA-8v99-48m9-c8pm
- FEDORA-2022-d86c15bfb7 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4SJUNSC7YZLA745EMKWK2GKEV57GE52K/
- FEDORA-2022-de0f8beeb0 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TAHAAOOA3KZJC2I5WHCR3XVBJBNWTWUE/
- FEDORA-2022-5f746c8e5b https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZFTJR5CR5EOYDVOSBZEMLBHLJRTPJPUA/
Provider assertions
3GitHub_M · cna
Incorrect Authorization in imgcrypt
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- cc381f54b9fdccd41c885c0d0e9dec2282a8aea23e23d1b46c2fe1a0d1f1386a
- Ingested
- 23 Sep 2026, 07:58:57 UTC
- Source record
- Official CVE record