CVE-2021-41190 Clarify Content-Type handling in OCI spec
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2021-41190?
CVE-2021-41190 is a low-severity vulnerability in Fedoraproject Fedora, published on 17 Nov 2021.
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.
Weakness: CWE-843
Which versions are affected by CVE-2021-41190?
8 open source packages ship an affected version, including github.com/docker/docker, github.com/moby/moby and github.com/opencontainers/distribution-spec. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
github.com/docker/docker Go | All versions | 20.10.11 |
github.com/docker/docker Go | All versions | 20.10.11 |
github.com/docker/docker Go | All versions | 20.10.11+incompatible |
github.com/moby/moby Go | All versions | 20.10.11 |
github.com/moby/moby Go | All versions | 20.10.11 |
github.com/moby/moby Go | All versions | 20.10.11+incompatible |
2 more packages
github.com/opencontainers/distribution-spec Go | All versions | 1.0.1 |
github.com/opencontainers/distribution-spec Go | All versions | 1.0.1 |
Linux distribution packages (23)
umoci SUSE:Enterprise Storage 7.1 | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Linux Enterprise Module for Basesystem 15 SP6 | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Linux Enterprise Server 15 SP5-LTSS | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Manager Proxy 4.3 | All versions | 0.5.0-150000.3.15.1 |
umoci SUSE:Manager Server 4.3 | All versions | 0.5.0-150000.3.15.1 |
singularity SUSE:Package Hub 15 SP3 | All versions | 3.8.5-bp153.2.10.1 |
singularity openSUSE:Leap 15.3 | All versions | 3.8.5-bp153.2.10.1 |
umoci openSUSE:Leap 15.6 | All versions | 0.5.0-150000.3.15.1 |
containerd openSUSE:Tumbleweed | All versions | 1.4.12-1.1 |
docker openSUSE:Tumbleweed | All versions | 20.10.11_ce-1.1 |
singularity openSUSE:Tumbleweed | All versions | 3.8.5-1.1 |
umoci openSUSE:Tumbleweed | All versions | 0.5.0-1.1 |
Products include Fedoraproject Fedora, Linuxfoundation Open Container Initiative Distribution Specification, Linuxfoundation Open Container Initiative Image Format Specification.
How do I fix CVE-2021-41190?
Upgrade github.com/docker/docker to a fixed version for your release line: 20.10.11 or 20.10.11+incompatible.
Is CVE-2021-41190 being exploited?
There is no known exploitation of CVE-2021-41190 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as AZL-44865, AZL-44925, CLEANSTART-2025-HQ55158, CLEANSTART-2026-NW72485, GHSA-mc8v-mgrf-8f4m, GHSA-xmmx-7jpf-fx42 and 9 more.