GHSA-xmmx-7jpf-fx42: Github.com/docker/docker Moby (Docker Engine) Is Vulnerable Vulnerability
MODERATEGHSA-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
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.
Upgrade github.com/docker/docker to 20.10.11
Upgrade github.com/moby/moby to 20.10.11
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
GHSA-xmmx-7jpf-fx42 Affected Github.com/docker/docker Versions
2 component(s)| 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?
Which Github.com/docker/docker versions are affected?
What version fixes GHSA-xmmx-7jpf-fx42?
Is github.com/docker/docker affected?
Is github.com/moby/moby affected?
What CWE is associated with GHSA-xmmx-7jpf-fx42?
How can I check Go dependencies for GHSA-xmmx-7jpf-fx42?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}