Incorrect Authorization in imgcrypt
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 2 fixed, 4 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-863.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| backstage | imgcrypt | before 1.1.4 | 1.1.4 | Patch available | CNA |
| — | github.com/containerd/imgcrypt (Go) | before 1.1.4 | 1.1.4 | Patch available | GHSA-8v99-48m9-c8pm |
- imgcrypt Vendorbackstage Affected before 1.1.4 Fixed in 1.1.4 Patch available CNA
- github.com/containerd/imgcrypt (Go) Vendor— Affected before 1.1.4 Fixed in 1.1.4 Patch available GHSA-8v99-48m9-c8pm
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:linuxfoundation:imgcrypt:*:*:*:*:*:*:*:* | before 1.1.4 | Vulnerable | backstage |
| cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 34 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
- cpe:2.3:a:linuxfoundation:imgcrypt:*:*:*:*:*:*:*:* Versions before 1.1.4 Vulnerable ·backstage
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
Remediation
- Fix · CNA imgcrypt (containerd) Fixed in 1.1.4
- Fix · GHSA-8v99-48m9-c8pm github.com/containerd/imgcrypt (Go) Fixed in 1.1.4 Advisory →
Red Hat 4 advisories
- RHSA-2022:8827 Released 2022-12-06 · Red Hat rating LowRHACS 3.73 enhancement and security update
- RHACS 3.73 for RHEL 8 advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-scanner-rhel8
- RHSA-2022:5070 Released 2022-08-10 · Red Hat rating ModerateOpenShift Container Platform 4.11.0 extras and security update
- Red Hat OpenShift Container Platform 4.11 openshift4/cloud-event-proxy-rhel8, openshift4/kubernetes-nmstate-rhel8-operator, openshift4/ose-cloud-event-proxy +1
- RHSA-2022:4956 Released 2022-06-09 · Red Hat rating ImportantRed Hat Advanced Cluster Management 2.5 security updates, images, and bug fixes
- Red Hat Advanced Cluster Management for Kubernetes 2.5 for RHEL 8 rhacm2/acm-cluster-proxy-rhel8, rhacm2/acm-governance-policy-addon-controller-rhel8, rhacm2/acm-grafana-rhel8 +47
Show 1 more Red Hat advisories
- RHSA-2022:1476 Released 2022-04-21 · Red Hat rating ModerateRed Hat Advanced Cluster Management 2.4.3 security updates and bug fixes
- Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8 rhacm2/acm-grafana-rhel8, rhacm2/acm-must-gather-rhel8, rhacm2/acm-operator-bundle +47
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet |
| Red Hat Advanced Cluster Security 3 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet |
| Red Hat Openshift Sandboxed Containers | Affected | No fix planned: Out of support scope |
| RHACS 3.73 for RHEL 8 | Fixed | RHSA-2022:8827 |
| Red Hat OpenShift Container Platform 4.11 | Fixed | RHSA-2022:5070 |
Not affected: 6 products
- OpenShift API for Data Protection
- RHACS 3.73 for RHEL 8
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 4.11
- Red Hat OpenStack Platform 16.2
Timeline
- 2026-10-02 Threatist record created from CVE-2022-24778
- 2026-10-03 Alias added: GHSA-8v99-48m9-c8pm
References
Patch 2
Advisory 5
Other 5
- https://github.com/containerd/imgcrypt
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4SJUNSC7YZLA745EMKWK2GKEV57GE52K
- https://lists.fedoraproject.org/archives/list/[email protected]/message/TAHAAOOA3KZJC2I5WHCR3XVBJBNWTWUE
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ZFTJR5CR5EOYDVOSBZEMLBHLJRTPJPUA
- https://pkg.go.dev/vuln/GO-2021-0412
Sources
- CVE-2022-24778 · CVE Program
- CVE-2022-24778 · NVD
- FIRST EPSS
- GHSA-8v99-48m9-c8pm · GitHub Advisory Database · CC BY 4.0
- CVE-2022-24778 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences