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

Low 3.0 Published Updated
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.

PackageAffectedFixed in
github.com/docker/docker GoAll versions20.10.11
github.com/docker/docker GoAll versions20.10.11
github.com/docker/docker GoAll versions20.10.11+incompatible
github.com/moby/moby GoAll versions20.10.11
github.com/moby/moby GoAll versions20.10.11
github.com/moby/moby GoAll versions20.10.11+incompatible
2 more packages
github.com/opencontainers/distribution-spec GoAll versions1.0.1
github.com/opencontainers/distribution-spec GoAll versions1.0.1
Linux distribution packages (23)
umoci SUSE:Enterprise Storage 7.1All versions0.5.0-150000.3.15.1
umoci SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions0.5.0-150000.3.15.1
umoci SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions0.5.0-150000.3.15.1
umoci SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions0.5.0-150000.3.15.1
umoci SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSAll versions0.5.0-150000.3.15.1
umoci SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSSAll versions0.5.0-150000.3.15.1
umoci SUSE:Linux Enterprise Module for Basesystem 15 SP6All versions0.5.0-150000.3.15.1
umoci SUSE:Linux Enterprise Module for Basesystem 15 SP7All versions0.5.0-150000.3.15.1
umoci SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions0.5.0-150000.3.15.1
umoci SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions0.5.0-150000.3.15.1
umoci SUSE:Linux Enterprise Server 15 SP5-LTSSAll versions0.5.0-150000.3.15.1
umoci SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions0.5.0-150000.3.15.1
umoci SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions0.5.0-150000.3.15.1
umoci SUSE:Linux Enterprise Server for SAP Applications 15 SP5All versions0.5.0-150000.3.15.1
umoci SUSE:Manager Proxy 4.3All versions0.5.0-150000.3.15.1
umoci SUSE:Manager Server 4.3All versions0.5.0-150000.3.15.1
singularity SUSE:Package Hub 15 SP3All versions3.8.5-bp153.2.10.1
singularity openSUSE:Leap 15.3All versions3.8.5-bp153.2.10.1
umoci openSUSE:Leap 15.6All versions0.5.0-150000.3.15.1
containerd openSUSE:TumbleweedAll versions1.4.12-1.1
docker openSUSE:TumbleweedAll versions20.10.11_ce-1.1
singularity openSUSE:TumbleweedAll versions3.8.5-1.1
umoci openSUSE:TumbleweedAll versions0.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.

All Fedoraproject Fedora vulnerabilities

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.

Is CVE-2021-41190 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free