{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2021-21284",
        "STATE": "PUBLIC",
        "TITLE": "privilege escalation in Moby"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "moby",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "< 19.03.15"
                                        },
                                        {
                                            "version_value": ">= 20.0.0, < 20.10.3"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "moby"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "In Docker before versions 9.03.15, 20.10.3 there is a vulnerability involving the --userns-remap option in which access to remapped root allows privilege escalation to real root. When using \"--userns-remap\", if the root user in the remapped namespace has access to the host filesystem they can modify files under \"/var/lib/docker/<remapping>\" that cause writing files with extended privileges. Versions 20.10.3 and 19.03.15 contain patches that prevent privilege escalation from remapped user."
            }
        ]
    },
    "impact": {
        "cvss": {
            "attackComplexity": "LOW",
            "attackVector": "ADJACENT_NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 6.8,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "NONE",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "CHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://docs.docker.com/engine/release-notes/#20103",
                "refsource": "MISC",
                "url": "https://docs.docker.com/engine/release-notes/#20103"
            },
            {
                "name": "https://github.com/moby/moby/releases/tag/v20.10.3",
                "refsource": "MISC",
                "url": "https://github.com/moby/moby/releases/tag/v20.10.3"
            },
            {
                "name": "https://github.com/moby/moby/releases/tag/v19.03.15",
                "refsource": "MISC",
                "url": "https://github.com/moby/moby/releases/tag/v19.03.15"
            },
            {
                "name": "https://github.com/moby/moby/security/advisories/GHSA-7452-xqpj-6rpc",
                "refsource": "CONFIRM",
                "url": "https://github.com/moby/moby/security/advisories/GHSA-7452-xqpj-6rpc"
            },
            {
                "name": "https://github.com/moby/moby/commit/64bd4485b3a66a597c02c95f5776395e540b2c7c",
                "refsource": "MISC",
                "url": "https://github.com/moby/moby/commit/64bd4485b3a66a597c02c95f5776395e540b2c7c"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://security.netapp.com/advisory/ntap-20210226-0005/",
                "url": "https://security.netapp.com/advisory/ntap-20210226-0005/"
            },
            {
                "refsource": "DEBIAN",
                "name": "DSA-4865",
                "url": "https://www.debian.org/security/2021/dsa-4865"
            },
            {
                "refsource": "GENTOO",
                "name": "GLSA-202107-23",
                "url": "https://security.gentoo.org/glsa/202107-23"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-7452-xqpj-6rpc",
        "discovery": "UNKNOWN"
    }
}