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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | containerd | 1.5.8-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.21 | containerd | 1.5.8-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.22 | containerd | 1.5.8-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.23 | containerd | 1.5.8-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.24 | containerd | 1.5.8-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.20 | docker | 20.10.11-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.21 | docker | 20.10.11-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.22 | docker | 20.10.11-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.23 | docker | 20.10.11-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.24 | docker | 20.10.11-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.20 | podman | 3.4.4-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.21 | podman | 3.4.4-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.22 | podman | 3.4.4-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.23 | podman | 3.4.4-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.24 | podman | 3.4.4-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.20 | singularity | 3.8.5-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.21 | singularity | 3.8.5-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.22 | singularity | 3.8.5-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.23 | singularity | 3.8.5-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.24 | singularity | 3.8.5-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.20 | skopeo | 1.5.2-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.21 | skopeo | 1.5.2-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.22 | skopeo | 1.5.2-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.23 | skopeo | 1.5.2-r0 | ALPINE-CVE-2021-41190 |
| Alpine:v3.24 | skopeo | 1.5.2-r0 | ALPINE-CVE-2021-41190 |
| Go | github.com/opencontainers/distribution-spec | 1.0.1 | GHSA-mc8v-mgrf-8f4m |
| Rocky Linux:8 | cockpit-podman | 0:53-1.module+el8.7.0+1078+e72fcd4f | RLSA-2022:7457 |
| Rocky Linux:8 | conmon | 2:2.1.4-1.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7457 |
| Rocky Linux:8 | container-selinux | 2:2.189.0-1.module+el8.7.0+1076+9b1c11c1 | RLSA-2022:7457 |
| Rocky Linux:8 | container-selinux | 2:2.189.0-1.module+el8.6.0+1054+50b00ff4 | RLSA-2022:7457 |
| Rocky Linux:8 | containernetworking-plugins | 1:1.1.1-3.module+el8.6.0+1054+50b00ff4 | RLSA-2022:7457 |
| Rocky Linux:8 | containernetworking-plugins | 1:1.1.1-3.module+el8.7.0+1078+e72fcd4f | RLSA-2022:7457 |
| Rocky Linux:8 | criu | 0:3.15-3.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7457 |
| Rocky Linux:8 | criu | 0:3.15-3.module+el8.5.0+710+4c471e88 | RLSA-2022:7457 |
| Rocky Linux:8 | criu | 0:3.15-3.module+el8.6.0+1054+50b00ff4 | RLSA-2022:7457 |
| Rocky Linux:8 | crun | 0:1.5-1.module+el8.6.0+1054+50b00ff4 | RLSA-2022:7457 |
| Rocky Linux:8 | crun | 0:1.5-1.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7457 |
| Rocky Linux:8 | fuse-overlayfs | 0:1.9-1.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7457 |
| Rocky Linux:8 | fuse-overlayfs | 0:1.9-1.module+el8.6.0+1054+50b00ff4 | RLSA-2022:7457 |
| Rocky Linux:8 | libslirp | 0:4.4.0-1.module+el8.6.0+1054+50b00ff4 | RLSA-2022:7457 |
| Rocky Linux:8 | libslirp | 0:4.4.0-1.module+el8.5.0+710+4c471e88 | RLSA-2022:7457 |
| Rocky Linux:8 | libslirp | 0:4.4.0-1.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7457 |
| Rocky Linux:8 | oci-seccomp-bpf-hook | 0:1.2.6-1.module+el8.6.0+1054+50b00ff4 | RLSA-2022:7457 |
| Rocky Linux:8 | oci-seccomp-bpf-hook | 0:1.2.6-1.module+el8.7.0+1078+e72fcd4f | RLSA-2022:7457 |
| Rocky Linux:8 | runc | 1:1.1.4-1.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7457 |
| Rocky Linux:8 | slirp4netns | 0:1.2.0-2.module+el8.6.0+1054+50b00ff4 | RLSA-2022:7457 |
| Rocky Linux:8 | slirp4netns | 0:1.2.0-2.module+el8.7.0+1078+e72fcd4f | RLSA-2022:7457 |
| Rocky Linux:8 | toolbox | 0:0.0.99.3-0.6.module+el8.7.0+1078+e72fcd4f | RLSA-2022:7457 |
| Rocky Linux:8 | toolbox | 0:0.0.99.3-0.6.module+el8.6.0+1054+50b00ff4 | RLSA-2022:7457 |
| Rocky Linux:8 | udica | 0:0.2.6-3.module+el8.6.0+971+69b94baf | RLSA-2022:7457 |
| Rocky Linux:8 | udica | 0:0.2.6-3.module+el8.7.0+1077+0e4f03d4 | RLSA-2022:7457 |
| Ubuntu:22.04:LTS | containerd | 1.5.9-0ubuntu1 | UBUNTU-CVE-2021-41190 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/opencontainers/distribution-spec/security/advisories/GHSA-mc8v-mgrf-8f4m x_refsource_CONFIRM
- https://github.com/opencontainers/distribution-spec/commit/ac28cac0557bcd3084714ab09f9f2356fe504923 x_refsource_MISC
- [oss-security] 20211119 CVE-2021-41190 OCI distribution and image spec: "content-type" confusion mailing-list, x_refsource_MLIST
- FEDORA-2021-d250fc2622 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-6dc68dbe4d vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-79ba5abef6 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-eb2742b148 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-3dda301691 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-aacef7fa15 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-62352983b4 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-6789ed60f2 vendor-advisory, x_refsource_FEDORA