GHSA-xmmx-7jpf-fx42: Github.com/docker/docker Moby (Docker Engine) Is Vulnerable Vulnerability

MODERATE
Published
Advisory Summary

GHSA-xmmx-7jpf-fx42 is a MODERATE moby (docker engine) is vulnerable vulnerability (General Security Weakness) affecting Github.com/docker/docker libraries in the Go ecosystem. The issue involves moby (docker engine) is vulnerable to ambiguous oci manifest parsing. Remediation is available by upgrading affected packages to version 20.10.11.

GHSA-xmmx-7jpf-fx42 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xmmx-7jpf-fx42
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Github.com/docker/docker
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-xmmx-7jpf-fx42

To remediate this vulnerability, upgrade all affected Github.com/docker/docker dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/docker/docker fixed: 20.10.11
Upgrade github.com/docker/docker to 20.10.11
github.com/moby/moby fixed: 20.10.11
Upgrade github.com/moby/moby to 20.10.11
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/docker/docker

How to Check if You Are Affected

To determine whether your application is affected by GHSA-xmmx-7jpf-fx42, inspect your project dependencies for Github.com/docker/docker:

inspect dependencies for github.com/docker/docker

Analyze the terminal output to locate any version of Github.com/docker/docker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 20.10.11), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Github.com/docker/docker, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact In the OCI Distribution Specification version 1.0.0 and prior and in the OCI Image Specification version 1.0.1 and prior, manifest and index documents are ambiguous without an accompanying Content-Type HTTP header. Versions of Moby (Docker Engine) prior to 20.10.11 treat the Content-Type header as trusted and deserialize the document according to that header. If the Content-Type header changed between pulls of the same ambiguous document (with the same digest), the document may be interpreted differently, meaning that the digest alone is insufficient to unambiguously identify the content of the image. ### Patches This issue has been fixed in Moby (Docker Engine) 20.10.11. Image pulls for manifests that contain a “manifests” field or indices which contain a “layers” field are rejected. ### Workarounds Ensure you only pull images from trusted sources. ### References https://github.com/opencontainers/distribution-spec/security/advisories/GHSA-mc8v-mgrf-8f4m https://github.com/opencontainers/image-spec/security/advisories/GHSA-77vh-xpmg-72qh ### For more information If you have any questions or comments about this advisory: * [Open an issue in](https://github.com/moby/moby/issues/new) * Email us at [security@docker.com](mailto:security@docker.com)

GHSA-xmmx-7jpf-fx42 Affected Github.com/docker/docker Versions

2 component(s)
Fixed Versions:
20.10.11
Product / Package Ecosystem Affected Versions Fixed Version
github.com/docker/docker
Go
< 20.10.11
20.10.11
github.com/moby/moby
Go
< 20.10.11
20.10.11

References

Frequently Asked Questions

What is GHSA-xmmx-7jpf-fx42?
GHSA-xmmx-7jpf-fx42 is a security vulnerability in Github.com/docker/docker involving Moby (Docker Engine) is vulnerable to Ambiguous OCI manifest parsing under General Security Weakness.
Which Github.com/docker/docker versions are affected?
Affected versions include releases prior to 20.10.11 across affected packages: github.com/docker/docker, github.com/moby/moby.
What version fixes GHSA-xmmx-7jpf-fx42?
Upgrading to 20.10.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/docker/docker affected?
Yes, github.com/docker/docker is affected in releases prior to 20.10.11. Upgrade your dependency to 20.10.11 or later.
Is github.com/moby/moby affected?
Yes, github.com/moby/moby is affected in releases prior to 20.10.11. Upgrade your dependency to 20.10.11 or later.
What CWE is associated with GHSA-xmmx-7jpf-fx42?
GHSA-xmmx-7jpf-fx42 is classified under General Security Weakness.
How can I check Go dependencies for GHSA-xmmx-7jpf-fx42?
Run the dependency tree command: 'inspect dependencies for github.com/docker/docker'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xmmx-7jpf-fx42",
  "modified" : "2024-07-05T20:52:27Z",
  "published" : "2024-06-10T18:39:03Z",
  "aliases" : [ ],
  "summary" : "Moby (Docker Engine) is vulnerable to Ambiguous OCI manifest parsing",
  "details" : "### Impact\nIn the OCI Distribution Specification version 1.0.0 and prior and in the OCI Image Specification version 1.0.1 and prior, manifest and index documents are ambiguous without an accompanying Content-Type HTTP header.  Versions of Moby (Docker Engine) prior to 20.10.11 treat the Content-Type header as trusted and deserialize the document according to that header.  If the Content-Type header changed between pulls of the same ambiguous document (with the same digest), the document may be interpreted differently, meaning that the digest alone is insufficient to unambiguously identify the content of the image.\n\n### Patches\nThis issue has been fixed in Moby (Docker Engine) 20.10.11.  Image pulls for manifests that contain a “manifests” field or indices which contain a “layers” field are rejected.\n\n### Workarounds\nEnsure you only pull images from trusted sources.\n\n### References\nhttps://github.com/opencontainers/distribution-spec/security/advisories/GHSA-mc8v-mgrf-8f4m\nhttps://github.com/opencontainers/image-spec/security/advisories/GHSA-77vh-xpmg-72qh\n\n### For more information\nIf you have any questions or comments about this advisory:\n* [Open an issue in](https://github.com/moby/moby/issues/new)\n* Email us at [security@docker.com](mailto:security@docker.com)\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/docker/docker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "20.10.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/moby/moby"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "20.10.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/moby/moby/security/advisories/GHSA-xmmx-7jpf-fx42"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-10T18:39:03Z",
    "nvd_published_at" : null
  }
}