Vulnerability · Published Nov 17, 2021 · Assigned by GitHub_M

CVE-2021-41190Clarify Content-Type handling in OCI spec

Low 3.0

In plain English

A low-severity type confusion in distribution-spec from opencontainers. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.0Low
Exploit odds (30 days)2.2%top 17.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

The OCI Distribution Spec project defines an API protocol to facilitate and standardize the distribution of content. In the OCI Distribution Specification version 1.0.0 and prior, the Content-Type header alone was used to determine the type of document during push and pull operations. Documents that contain both “manifests” and “layers” fields could be interpreted as either a manifest or an index in the absence of an accompanying Content-Type header. If a Content-Type header changed between two pulls of the same digest, a client may interpret the resulting content differently. The OCI Distribution Specification has been updated to require that a mediaType value present in a manifest or index match the Content-Type header used during the push and pull operations. Clients pulling from a registry may distrust the Content-Type header and reject an ambiguous document that contains both “manifests” and “layers” fields or “manifests” and “config” fields if they are unable to update to version 1.0.1 of the spec.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20containerd1.5.8-r0ALPINE-CVE-2021-41190
Alpine:v3.21containerd1.5.8-r0ALPINE-CVE-2021-41190
Alpine:v3.22containerd1.5.8-r0ALPINE-CVE-2021-41190
Alpine:v3.23containerd1.5.8-r0ALPINE-CVE-2021-41190
Alpine:v3.24containerd1.5.8-r0ALPINE-CVE-2021-41190
Alpine:v3.20docker20.10.11-r0ALPINE-CVE-2021-41190
Alpine:v3.21docker20.10.11-r0ALPINE-CVE-2021-41190
Alpine:v3.22docker20.10.11-r0ALPINE-CVE-2021-41190
Alpine:v3.23docker20.10.11-r0ALPINE-CVE-2021-41190
Alpine:v3.24docker20.10.11-r0ALPINE-CVE-2021-41190
Alpine:v3.20podman3.4.4-r0ALPINE-CVE-2021-41190
Alpine:v3.21podman3.4.4-r0ALPINE-CVE-2021-41190
Alpine:v3.22podman3.4.4-r0ALPINE-CVE-2021-41190
Alpine:v3.23podman3.4.4-r0ALPINE-CVE-2021-41190
Alpine:v3.24podman3.4.4-r0ALPINE-CVE-2021-41190
Alpine:v3.20singularity3.8.5-r0ALPINE-CVE-2021-41190
Alpine:v3.21singularity3.8.5-r0ALPINE-CVE-2021-41190
Alpine:v3.22singularity3.8.5-r0ALPINE-CVE-2021-41190
Alpine:v3.23singularity3.8.5-r0ALPINE-CVE-2021-41190
Alpine:v3.24singularity3.8.5-r0ALPINE-CVE-2021-41190
Alpine:v3.20skopeo1.5.2-r0ALPINE-CVE-2021-41190
Alpine:v3.21skopeo1.5.2-r0ALPINE-CVE-2021-41190
Alpine:v3.22skopeo1.5.2-r0ALPINE-CVE-2021-41190
Alpine:v3.23skopeo1.5.2-r0ALPINE-CVE-2021-41190
Alpine:v3.24skopeo1.5.2-r0ALPINE-CVE-2021-41190
Gogithub.com/opencontainers/distribution-spec1.0.1GHSA-mc8v-mgrf-8f4m
Rocky Linux:8cockpit-podman0:53-1.module+el8.7.0+1078+e72fcd4fRLSA-2022:7457
Rocky Linux:8conmon2:2.1.4-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux:8container-selinux2:2.189.0-1.module+el8.7.0+1076+9b1c11c1RLSA-2022:7457
Rocky Linux:8container-selinux2:2.189.0-1.module+el8.6.0+1054+50b00ff4RLSA-2022:7457
Rocky Linux:8containernetworking-plugins1:1.1.1-3.module+el8.6.0+1054+50b00ff4RLSA-2022:7457
Rocky Linux:8containernetworking-plugins1:1.1.1-3.module+el8.7.0+1078+e72fcd4fRLSA-2022:7457
Rocky Linux:8criu0:3.15-3.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux:8criu0:3.15-3.module+el8.5.0+710+4c471e88RLSA-2022:7457
Rocky Linux:8criu0:3.15-3.module+el8.6.0+1054+50b00ff4RLSA-2022:7457
Rocky Linux:8crun0:1.5-1.module+el8.6.0+1054+50b00ff4RLSA-2022:7457
Rocky Linux:8crun0:1.5-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux:8fuse-overlayfs0:1.9-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux:8fuse-overlayfs0:1.9-1.module+el8.6.0+1054+50b00ff4RLSA-2022:7457
Rocky Linux:8libslirp0:4.4.0-1.module+el8.6.0+1054+50b00ff4RLSA-2022:7457
Rocky Linux:8libslirp0:4.4.0-1.module+el8.5.0+710+4c471e88RLSA-2022:7457
Rocky Linux:8libslirp0:4.4.0-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux:8oci-seccomp-bpf-hook0:1.2.6-1.module+el8.6.0+1054+50b00ff4RLSA-2022:7457
Rocky Linux:8oci-seccomp-bpf-hook0:1.2.6-1.module+el8.7.0+1078+e72fcd4fRLSA-2022:7457
Rocky Linux:8runc1:1.1.4-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux:8slirp4netns0:1.2.0-2.module+el8.6.0+1054+50b00ff4RLSA-2022:7457
Rocky Linux:8slirp4netns0:1.2.0-2.module+el8.7.0+1078+e72fcd4fRLSA-2022:7457
Rocky Linux:8toolbox0:0.0.99.3-0.6.module+el8.7.0+1078+e72fcd4fRLSA-2022:7457
Rocky Linux:8toolbox0:0.0.99.3-0.6.module+el8.6.0+1054+50b00ff4RLSA-2022:7457
Rocky Linux:8udica0:0.2.6-3.module+el8.6.0+971+69b94bafRLSA-2022:7457
Rocky Linux:8udica0:0.2.6-3.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Ubuntu:22.04:LTScontainerd1.5.9-0ubuntu1UBUNTU-CVE-2021-41190

Affected products (as reported)

VendorProductVersions
opencontainers distribution-spec < 1.0.1

Weakness: CWE-843 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:N

References