Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2022-24778

Опубликовано: 25 мар. 2022
Источник: redhat
CVSS3: 7.4
EPSS Низкий

Описание

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.

A flaw was found in the imgcrypt library when checking the keys of an authorized user to access an encrypted image on systems where layers are not available and cannot run on the host architecture. This flaw allows an attacker to run an image without providing the previously decrypted keys.

Отчет

Only Fedora is using the affected codebase. Hence, marking other products as of Low impact as they are using an affected version of 'imgcrypt' as a transitive dependency.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
OpenShift API for Data Protectionoadp/oadp-velero-plugin-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rbac-query-proxy-containerFix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/endpoint-monitoring-rhel8-operatorAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multiclusterhub-repo-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multicluster-operators-channel-rhel9Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multicluster-operators-subscription-release-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multicluster-operators-subscription-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/prometheus-rhel8Fix deferred
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-scanner-rhel8Affected
Red Hat OpenShift Container Platform 4openshift4/oc-mirror-plugin-rhel9Not affected

Показывать по

Дополнительная информация

Статус:

Important
Дефект:
CWE-287->CWE-303
https://bugzilla.redhat.com/show_bug.cgi?id=2069368imgcrypt: Unauthorized access to encryted container image on a shared system due to missing check in CheckAuthorization() code path

EPSS

Процентиль: 56%
0.00333
Низкий

7.4 High

CVSS3

Связанные уязвимости

CVSS3: 7.5
ubuntu
почти 4 года назад

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

CVSS3: 7.5
nvd
почти 4 года назад

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 archite

CVSS3: 7.5
github
почти 4 года назад

Incorrect Authorization in imgcrypt

EPSS

Процентиль: 56%
0.00333
Низкий

7.4 High

CVSS3

Уязвимость CVE-2022-24778