{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2021-38185",
        "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
        "assignerShortName": "mitre",
        "dateUpdated": "2024-08-04T01:37:16.303Z",
        "dateReserved": "2021-08-07T00:00:00",
        "datePublished": "2021-08-07T00:00:00"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
                "shortName": "mitre",
                "dateUpdated": "2023-06-04T00:00:00"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "GNU cpio through 2.13 allows attackers to execute arbitrary code via a crafted pattern file, because of a dstring.c ds_fgetstr integer overflow that triggers an out-of-bounds heap write. NOTE: it is unclear whether there are common cases where the pattern file, associated with the -E option, is untrusted data."
                }
            ],
            "affected": [
                {
                    "vendor": "n/a",
                    "product": "n/a",
                    "versions": [
                        {
                            "version": "n/a",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/fangqyi/cpiopwn"
                },
                {
                    "url": "https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00000.html"
                },
                {
                    "url": "https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00002.html"
                },
                {
                    "url": "https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dd96882877721703e19272fe25034560b794061b"
                },
                {
                    "name": "[debian-lts-announce] 20230604 [SECURITY] [DLA 3445-1] cpio security update",
                    "tags": [
                        "mailing-list"
                    ],
                    "url": "https://lists.debian.org/debian-lts-announce/2023/06/msg00007.html"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "text",
                            "lang": "en",
                            "description": "n/a"
                        }
                    ]
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-04T01:37:16.303Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://github.com/fangqyi/cpiopwn",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00000.html",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00002.html",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dd96882877721703e19272fe25034560b794061b",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "name": "[debian-lts-announce] 20230604 [SECURITY] [DLA 3445-1] cpio security update",
                        "tags": [
                            "mailing-list",
                            "x_transferred"
                        ],
                        "url": "https://lists.debian.org/debian-lts-announce/2023/06/msg00007.html"
                    }
                ]
            }
        ]
    }
}