SecurityContext

CVE-2022-24778: imgcrypt - Authorization Bypass

  • Cve: CVE-2022-24778
  • Name: imgcrypt - Authorization Bypass
  • 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.
  • Impact: Attackers can run encrypted images without proper authorization, potentially leading to unauthorized access or execution of container images.
  • Remediation: Update to version 1.1.4 or later.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.02718
  • Epss percentile: 0.86395
  • Assignee: [email protected]
  • Published at: 2022-03-25T18:15:22Z
  • Age in days: 1705
  • Modified at: 2026-06-17T04:32:30Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 7
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-24778
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-863Incorrect Authorization

Public exploits

UrlSourceAdded date
https://github.com/containerd/imgcrypt/issues/69nvd2022-03-25

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/containerd/imgcrypt/commit/6fdd9818a4d8142107b7ecd767d839c9707700d9Patch, Third Party Advisory
https://github.com/containerd/imgcrypt/issues/69Exploit, Issue Tracking, Patch, Third Party Advisory
https://github.com/containerd/imgcrypt/security/advisories/GHSA-8v99-48m9-c8pmPatch, Third Party Advisory
https://github.com/containerd/imgcrypt/releases/tag/v1.1.4Release Notes, Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4SJUNSC7YZLA745EMKWK2GKEV57GE52K/
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/ZFTJR5CR5EOYDVOSBZEMLBHLJRTPJPUA/

Products

ProductAffectedPlatform boundSourcesUrl
linuxfoundation:imgcrypt< 1.1.4nonvd/v1/products/linuxfoundation/imgcrypt
fedoraproject:fedora= 36, = 35, = 34nonvd/v1/products/fedoraproject/fedora

Projects

RepositoryLink kindsIndexedUrl
containerd/imgcryptcommit, fix, issues, package, releases, security_advisoryyes/v1/repositories/containerd/imgcrypt

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-03-25
  • Remote: yes
  • Exposed hosts: 49161
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports