{
    "CVE_data_meta": {
        "ASSIGNER": "cve@mitre.org",
        "ID": "CVE-2021-38185",
        "STATE": "PUBLIC"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "n/a",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "n/a"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "n/a"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "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."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "n/a"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "url": "https://github.com/fangqyi/cpiopwn",
                "refsource": "MISC",
                "name": "https://github.com/fangqyi/cpiopwn"
            },
            {
                "url": "https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00000.html",
                "refsource": "MISC",
                "name": "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",
                "refsource": "MISC",
                "name": "https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00002.html"
            },
            {
                "url": "https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dd96882877721703e19272fe25034560b794061b",
                "refsource": "MISC",
                "name": "https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dd96882877721703e19272fe25034560b794061b"
            },
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20230604 [SECURITY] [DLA 3445-1] cpio security update",
                "url": "https://lists.debian.org/debian-lts-announce/2023/06/msg00007.html"
            }
        ]
    }
}