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

- Severity: High 7.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2024-01-02T05:30:53.168Z
- Modified: 2026-11-26T17:11:37.481Z
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- perl: before 5.34.3; from 5.36.0 before 5.36.3; from 5.38.0 before 5.38.2
- perl:5.30/perl: no versions given
- perl:5.32/perl: no versions given
- perl perl: before 5.32.1

## Every score

- 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`
- NVD: 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`

## References

- <https://access.redhat.com/security/cve/CVE-2023-47039> (third-party-advisory, vdb-entry)
- <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746> (mailing-list, patch)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2249525> (issue-tracking)
- <https://security.netapp.com/advisory/ntap-20240208-0005/>
- <https://perldoc.perl.org/perl5382delta#CVE-2023-47039-Perl-for-Windows-binary-hijacking-vulnerability>

## Sources

- CVE List: [CVE-2023-47039](https://www.cve.org/CVERecord?id=CVE-2023-47039), CVE Terms of Use, modified 2026-11-26
- NVD: [CVE-2023-47039](https://nvd.nist.gov/vuln/detail/CVE-2023-47039), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-47039 · Whole record: https://cve.day/CVE-2023-47039.json · Rebuilt by cve.day 2026-11-26T17:17:12.279Z
