# CVE-2022-24778: Incorrect Authorization in imgcrypt

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 2.26% (percentile 84, 2026-11-26)
- **CWE:** CWE-863
- **Aliases:** GHSA-8v99-48m9-c8pm, GO-2021-0412
- **Published:** 2022-03-25T17:20:11.000Z
- **Modified:** 2026-06-17T04:32:30.040Z

## Who should check

- Projects that depend on Go package github.com/containerd/imgcrypt (\< 1.1.4)
- Anyone running containerd imgcrypt \< 1.1.4

## 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

- Go `github.com/containerd/imgcrypt`: affected \< 1.1.4; fixed 1.1.4 (osv)
- containerd imgcrypt: \< 1.1.4 (cvelist)

## Mitigation

- Upgrade github.com/containerd/imgcrypt to 1.1.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/containerd/imgcrypt/security/advisories/GHSA-8v99-48m9-c8pm>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZFTJR5CR5EOYDVOSBZEMLBHLJRTPJPUA/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TAHAAOOA3KZJC2I5WHCR3XVBJBNWTWUE/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4SJUNSC7YZLA745EMKWK2GKEV57GE52K/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-24778>
- patch: <https://github.com/containerd/imgcrypt/commit/6fdd9818a4d8142107b7ecd767d839c9707700d9>
- exploit: <https://github.com/containerd/imgcrypt/issues/69>
- other: <https://github.com/containerd/imgcrypt/releases/tag/v1.1.4>
- other: <https://github.com/containerd/imgcrypt>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4SJUNSC7YZLA745EMKWK2GKEV57GE52K>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TAHAAOOA3KZJC2I5WHCR3XVBJBNWTWUE>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZFTJR5CR5EOYDVOSBZEMLBHLJRTPJPUA>
- other: <https://pkg.go.dev/vuln/GO-2021-0412>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-24778>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-8v99-48m9-c8pm> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2021-0412> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-24778> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-24778>
