# CVE-2023-47039: Perl: perl for windows binary hijacking vulnerability

Status: published. Published: 2024-01-02. Updated: 2026-11-26.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: secalert@redhat.com) — https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: af854a3a-2127-422b-91ae-364da2661108) — https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746

## Affected products and versions

-  /  (perl): ≥ 0; < 5.34.3 (affected, semver); ≥ 5.36.0; < 5.36.3 (affected, semver); ≥ 5.38.0; < 5.38.2 (affected, semver). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 6 (perl): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 7 (perl): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 8 (perl): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 8 (perl:5.30/perl): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 8 (perl:5.32/perl): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9 (perl): Version range not reported. Source: CNA: redhat

## NVD configuration conditions

Affected CPE matches depend on the following AND/OR and negation conditions:

```json
[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "5.32.1",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      },
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*",
            "vulnerable": false
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "AND"
  }
]
```

## Severity and prioritization

- CVSS 3.1: 7.8 (high); CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; source: CNA: redhat

- CVSS 3.1: 7.8 (high); CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; source: NVD: nvd@nist.gov

- CVSS 3.1: 7.8 (high); CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; source: NVD: secalert@redhat.com

- CISA KEV: No listing in collected sources

- EPSS: 0.33% as of 2026-11-26; percentile 18.93%

- SSVC: exploitation none; automatable no; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-122, CWE-787

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://access.redhat.com/security/cve/CVE-2023-47039 (CNA: redhat; vdb-entry, x_refsource_REDHAT)

- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746 (CNA: redhat)

- https://bugzilla.redhat.com/show_bug.cgi?id=2249525 (CNA: redhat; issue-tracking, x_refsource_REDHAT)

- https://access.redhat.com/security/cve/CVE-2023-47039 (ADP: CVE; vdb-entry, x_refsource_REDHAT, x_transferred)

- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746 (ADP: CVE; x_transferred)

- https://bugzilla.redhat.com/show_bug.cgi?id=2249525 (ADP: CVE; issue-tracking, x_refsource_REDHAT, x_transferred)

- https://security.netapp.com/advisory/ntap-20240208-0005/ (ADP: CVE; x_transferred)

- https://perldoc.perl.org/perl5382delta#CVE-2023-47039-Perl-for-Windows-binary-hijacking-vulnerability (ADP: CVE; x_transferred)

- https://access.redhat.com/security/cve/CVE-2023-47039 (secalert@redhat.com; Third Party Advisory)

- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746 (secalert@redhat.com; Mailing List, Patch)

- https://bugzilla.redhat.com/show_bug.cgi?id=2249525 (secalert@redhat.com; Issue Tracking)

- https://access.redhat.com/security/cve/CVE-2023-47039 (af854a3a-2127-422b-91ae-364da2661108; Third Party Advisory)

- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746 (af854a3a-2127-422b-91ae-364da2661108; Mailing List, Patch)

- https://bugzilla.redhat.com/show_bug.cgi?id=2249525 (af854a3a-2127-422b-91ae-364da2661108; Issue Tracking)

- https://perldoc.perl.org/perl5382delta#CVE-2023-47039-Perl-for-Windows-binary-hijacking-vulnerability (af854a3a-2127-422b-91ae-364da2661108)

- https://security.netapp.com/advisory/ntap-20240208-0005/ (af854a3a-2127-422b-91ae-364da2661108)

## Provenance

- CNA: redhat: https://www.cve.org/CVERecord?id=CVE-2023-47039; retrieved 2026-11-26; source updated 2026-11-26

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-47039; retrieved 2026-11-26; source updated 2026-11-26

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2023-47039; retrieved 2026-11-26; source updated Not reported

Revision: 0ff99d676efe6de850d1c3412e524c511d605036ec610901f82d924c6e503ae8

Canonical: https://y2.dev/cve/CVE-2023-47039

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.