CVE-2023-47039
HIGH 7.8CVSS 3.1Perl: perl for windows binary hijacking vulnerability
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 placecmd.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.
- Published
- 2 Jan 2024
- Last modified
- 26 Nov 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-122CWE-787
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CVE List | redhat | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: total |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | perl | perlcpe:2.3:a:perl:perl:*:*:*:*:*:*:*:* |
< 5.32.1 | 5.32.1 |
| CVE List | https://github.com/Perl/perl5 | perl | < 5.34.3; >= 5.36.0, < 5.36.3; >= 5.38.0, < 5.38.2 | 5.34.3, 5.36.3, 5.38.2 |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | perlcpe:/o:redhat:rhel_els:6 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | perlcpe:/o:redhat:rhel_els:7 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | perlcpe:/o:redhat:enterprise_linux:8 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | perl:5.30/perlcpe:/o:redhat:enterprise_linux:8 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | perl:5.32/perlcpe:/o:redhat:enterprise_linux:8 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | perlcpe:/o:redhat:enterprise_linux:9 |
References
- https://access.redhat.com/security/cve/CVE-2023-47039 · Third Party Advisory, vdb-entry, x_refsource_REDHAT
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746 · Mailing List, Patch
- https://bugzilla.redhat.com/show_bug.cgi?id=2249525 · Issue Tracking, issue-tracking, x_refsource_REDHAT
- https://perldoc.perl.org/perl5382delta#CVE-2023-47039-Perl-for-Windows-binary-hijacking-vulnerability · x_transferred
- https://security.netapp.com/advisory/ntap-20240208-0005/ · x_transferred
History
- 26 Nov 2026 18:37 UTC · NVD: updated (other details)
- 26 Nov 2026 17:37 UTC · CVE List: first stored (published 2 Jan 2024)
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 2 Jan 2024)