Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-41089

Moby is an open-source project created by Docker to enable software containerization. A bug was found in Moby (Docker Engine) where attempting to copy files using `docker cp` into a specially-crafted container can result in Unix file permission changes for existing files in the host’s filesystem, widening access to others. This bug does not directly allow files to be read, modified, or executed without an additional cooperating process. This bug has been fixed in Moby (Docker Engine) 20.10.9. Users should update to this version as soon as possible. Running containers do not need to be restarted.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-41089
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:20 UTC · Revision 1

Source evidence

CVE-2021-41089

core-osv · Original source

Published 4 Oct 2021, 21:15 UTC

Moby is an open-source project created by Docker to enable software containerization. A bug was found in Moby (Docker Engine) where attempting to copy files using `docker cp` into a specially-crafted container can result in Unix file permission changes for existing files in the host’s filesystem, widening access to others. This bug does not directly allow files to be read, modified, or executed without an additional cooperating process. This bug has been fixed in Moby (Docker Engine) 20.10.9. Users should update to this version as soon as possible. Running containers do not need to be restarted.

osv:CVE-2021-41089
Complete source record
{
  "id": "d4dcd9620507d4bf532c69adeefacd78a4e761a115932d08697d70cc13eac7ae",
  "url": "https://osv.dev/vulnerability/CVE-2021-41089",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-41089",
    "summary": "Moby is an open-source project created by Docker to enable software containerization. A bug was found in Moby (Docker Engine) where attempting to copy files using `docker cp` into a specially-crafted container can result in Unix file permission changes for existing files in the host’s filesystem, widening access to others. This bug does not directly allow files to be read, modified, or executed without an additional cooperating process. This bug has been fixed in Moby (Docker Engine) 20.10.9. Users should update to this version as soon as possible. Running containers do not need to be restarted.",
    "evidence": "osv:CVE-2021-41089",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-41089",
      "aliases": [
        "CVE-2021-41089",
        "GHSA-v994-f8vw-g7j4",
        "GO-2024-2913"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/moby/moby",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "79ea9d3080181d755855d5924d0f4f116faa9463"
                },
                {
                  "fixed": "bce32e5c93be4caf1a592582155b9cb837fc129a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mobyproject:moby:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "20.10.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "bce32e5c93be4caf1a592582155b9cb837fc129a"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v20.10.8",
            "v20.10.7",
            "v20.10.6",
            "v20.10.5",
            "v20.10.4",
            "v20.10.3",
            "v20.10.2",
            "v20.10.1",
            "v20.10.0",
            "v20.10.0-rc2",
            "v20.10.0-rc1",
            "v20.10.0-beta1",
            "v19.03.0-beta3",
            "v19.03.0-beta2",
            "v19.03.0-beta1",
            "v18.09.0-ce-tp0",
            "v18.06.0-ce-rc1",
            "docs-v1.12.0-rc4-2016-07-15",
            "v0.7.2",
            "v0.7.1",
            "v0.7.0",
            "v0.6.5",
            "v0.5.0",
            "v0.4.7",
            "v0.4.5",
            "v0.4.4",
            "v0.4.2",
            "v0.4.1",
            "v0.3.2",
            "v0.3.1",
            "v0.3.0",
            "v0.2.2",
            "v0.2.1",
            "v0.2.0",
            "v0.1.8",
            "v0.1.7",
            "v0.1.6",
            "v0.1.5",
            "v0.1.4",
            "v0.1.3",
            "v0.1.2",
            "v0.1.1",
            "v0.1.0",
            "upstream/0.1.3",
            "0.0.3",
            "upstream/0.1.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41089.json"
          }
        }
      ],
      "modified": "2026-10-20T10:53:55.940534982Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB/",
        "https://github.com/moby/moby/security/advisories/GHSA-v994-f8vw-g7j4",
        "https://github.com/moby/moby/commit/bce32e5c93be4caf1a592582155b9cb837fc129a"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  },
                  {
                    "introduced": "35"
                  },
                  {
                    "last_affected": "35"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-41089",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384768,
  "published_at": "2021-10-04T21:15:12.62+00:00"
}