{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-47039",
        "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "state": "PUBLISHED",
        "assignerShortName": "redhat",
        "dateReserved": "2023-10-30T13:58:15.255Z",
        "datePublished": "2024-01-02T05:30:53.168Z",
        "dateUpdated": "2024-08-02T21:01:22.573Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "product": "perl",
                    "vendor": "n/a",
                    "versions": [
                        {
                            "status": "unaffected",
                            "version": "5.32.1"
                        }
                    ]
                },
                {
                    "defaultStatus": "affected",
                    "product": "perl",
                    "vendor": "n/a"
                },
                {
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "cpes": [
                        "cpe:/o:redhat:enterprise_linux:6"
                    ],
                    "defaultStatus": "unaffected",
                    "packageName": "perl",
                    "product": "Red Hat Enterprise Linux 6",
                    "vendor": "Red Hat"
                },
                {
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "cpes": [
                        "cpe:/o:redhat:enterprise_linux:7"
                    ],
                    "defaultStatus": "unaffected",
                    "packageName": "perl",
                    "product": "Red Hat Enterprise Linux 7",
                    "vendor": "Red Hat"
                },
                {
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "cpes": [
                        "cpe:/o:redhat:enterprise_linux:8"
                    ],
                    "defaultStatus": "unaffected",
                    "packageName": "perl",
                    "product": "Red Hat Enterprise Linux 8",
                    "vendor": "Red Hat"
                },
                {
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "cpes": [
                        "cpe:/o:redhat:enterprise_linux:8"
                    ],
                    "defaultStatus": "unaffected",
                    "packageName": "perl:5.30/perl",
                    "product": "Red Hat Enterprise Linux 8",
                    "vendor": "Red Hat"
                },
                {
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "cpes": [
                        "cpe:/o:redhat:enterprise_linux:8"
                    ],
                    "defaultStatus": "unaffected",
                    "packageName": "perl:5.32/perl",
                    "product": "Red Hat Enterprise Linux 8",
                    "vendor": "Red Hat"
                },
                {
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "cpes": [
                        "cpe:/o:redhat:enterprise_linux:9"
                    ],
                    "defaultStatus": "unaffected",
                    "packageName": "perl",
                    "product": "Red Hat Enterprise Linux 9",
                    "vendor": "Red Hat"
                },
                {
                    "collectionURL": "https://packages.fedoraproject.org/",
                    "defaultStatus": "unaffected",
                    "packageName": "perl:5.34/perl",
                    "product": "Fedora",
                    "vendor": "Fedora"
                },
                {
                    "collectionURL": "https://packages.fedoraproject.org/",
                    "defaultStatus": "unaffected",
                    "packageName": "perl:5.32/perl",
                    "product": "Fedora",
                    "vendor": "Fedora"
                },
                {
                    "collectionURL": "https://packages.fedoraproject.org/",
                    "defaultStatus": "unaffected",
                    "packageName": "perl",
                    "product": "Fedora",
                    "vendor": "Fedora"
                },
                {
                    "collectionURL": "https://packages.fedoraproject.org/",
                    "defaultStatus": "unaffected",
                    "packageName": "perl:5.36/perl",
                    "product": "Fedora",
                    "vendor": "Fedora"
                }
            ],
            "datePublic": "2023-11-25T00:00:00+00:00",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A vulnerability was found in Perl. This security issue occurs while Perl for Windows relies on the system path environment variable to find the shell (`cmd.exe`). When running an executable that uses the Windows Perl interpreter, Perl attempts to find and execute `cmd.exe` within the operating system. However, due to path search order issues, Perl initially looks for cmd.exe in the current working directory. This flaw allows an attacker with limited privileges to place`cmd.exe` in locations with weak permissions, such as `C:\\ProgramData`. By doing so, arbitrary code can be executed when an administrator attempts to use this executable from these compromised locations."
                }
            ],
            "metrics": [
                {
                    "other": {
                        "content": {
                            "namespace": "https://access.redhat.com/security/updates/classification/",
                            "value": "Moderate"
                        },
                        "type": "Red Hat severity rating"
                    }
                },
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "LOCAL",
                        "availabilityImpact": "HIGH",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "LOW",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "version": "3.1"
                    },
                    "format": "CVSS"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-122",
                            "description": "Heap-based Buffer Overflow",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
                "shortName": "redhat",
                "dateUpdated": "2024-03-28T14:05:42.607Z"
            },
            "references": [
                {
                    "tags": [
                        "vdb-entry",
                        "x_refsource_REDHAT"
                    ],
                    "url": "https://access.redhat.com/security/cve/CVE-2023-47039"
                },
                {
                    "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746"
                },
                {
                    "name": "RHBZ#2249525",
                    "tags": [
                        "issue-tracking",
                        "x_refsource_REDHAT"
                    ],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2249525"
                },
                {
                    "url": "https://security.netapp.com/advisory/ntap-20240208-0005/"
                },
                {
                    "url": "https://perldoc.perl.org/perl5382delta#CVE-2023-47039-Perl-for-Windows-binary-hijacking-vulnerability"
                }
            ],
            "timeline": [
                {
                    "lang": "en",
                    "time": "2023-11-11T00:00:00+00:00",
                    "value": "Reported to Red Hat."
                },
                {
                    "lang": "en",
                    "time": "2023-11-25T00:00:00+00:00",
                    "value": "Made public."
                }
            ],
            "title": "Perl: perl for windows binary hijacking vulnerability",
            "x_redhatCweChain": "CWE-122: Heap-based Buffer Overflow"
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T21:01:22.573Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "tags": [
                            "vdb-entry",
                            "x_refsource_REDHAT",
                            "x_transferred"
                        ],
                        "url": "https://access.redhat.com/security/cve/CVE-2023-47039"
                    },
                    {
                        "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "name": "RHBZ#2249525",
                        "tags": [
                            "issue-tracking",
                            "x_refsource_REDHAT",
                            "x_transferred"
                        ],
                        "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2249525"
                    },
                    {
                        "url": "https://security.netapp.com/advisory/ntap-20240208-0005/",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://perldoc.perl.org/perl5382delta#CVE-2023-47039-Perl-for-Windows-binary-hijacking-vulnerability",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}