CVE-2022-24778
Incorrect Authorization in imgcrypt
Also known as GHSA-8v99-48m9-c8pm, GO-2021-0412
Mitigation
- Upgrade github.com/containerd/imgcrypt to 1.1.4 or later.
Who should check
- Projects that depend on Go package github.com/containerd/imgcrypt (< 1.1.4)
- Anyone running containerd imgcrypt < 1.1.4
Vulnerability facts
- Affected
- github.com/containerd/imgcrypt < 1.1.4
- Fixed in
- 1.1.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 2.26% chance of exploitation in 30 days (percentile 84, 2026-11-26)
- CWE
- CWE-863
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/containerd/imgcrypt | < 1.1.4 | 1.1.4 | osv |
| containerd imgcrypt | < 1.1.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-24778. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-24778.md Affected: github.com/containerd/imgcrypt < 1.1.4 Fixed in: 1.1.4 Steps: 1. Search this machine and project for github.com/containerd/imgcrypt (Go), containerd imgcrypt: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://github.com/containerd/imgcrypt/security/advisories/GHSA-8v99-48m9-c8pm
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZFTJR5CR5EOYDVOSBZEMLBHLJRTPJPUA/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TAHAAOOA3KZJC2I5WHCR3XVBJBNWTWUE/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4SJUNSC7YZLA745EMKWK2GKEV57GE52K/
- https://nvd.nist.gov/vuln/detail/CVE-2022-24778
Exploits and PoCs
Other
- https://github.com/containerd/imgcrypt/releases/tag/v1.1.4
- https://github.com/containerd/imgcrypt
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4SJUNSC7YZLA745EMKWK2GKEV57GE52K
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TAHAAOOA3KZJC2I5WHCR3XVBJBNWTWUE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZFTJR5CR5EOYDVOSBZEMLBHLJRTPJPUA
- https://pkg.go.dev/vuln/GO-2021-0412
FAQ
Is CVE-2022-24778 being exploited?
There is no confirmed exploitation: CVE-2022-24778 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.26% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-24778?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2022-24778?
github.com/containerd/imgcrypt < 1.1.4.
Is there a fix for CVE-2022-24778?
Yes. Fixed in 1.1.4. Upgrade github.com/containerd/imgcrypt to 1.1.4 or later.
How do I check if I'm affected by CVE-2022-24778?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.