CVE-2023-47039: Heap-based Buffer Overflow
Source CVE Database V5
Not known to be exploited · CVSS 7.8 High.
Data as of 26 Oct 2026, 09:15 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 35% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 2 Jan 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
1. Immediately restrict write permissions on directories commonly included in the system PATH, such as C:\ProgramData, to prevent unprivileged users from placing executables there. 2. Avoid running Perl scripts from directories that are writable by non-administrative users. 3. Implement application whitelisting or executable allowlisting to prevent unauthorized binaries from executing. 4. Monitor and audit directories in the system PATH for unexpected or suspicious executables named cmd.exe or similar. 5. Use fully qualified paths or environment variables that explicitly specify the system cmd.exe location in Perl scripts or wrappers to avoid reliance on the current directory search order. 6. Apply patches or updates from Perl maintainers as soon as they become available to address this vulnerability. 7. Employ endpoint detection and response (EDR) solutions to detect anomalous process executions indicative of exploitation attempts. 8. Educate system administrators and developers about the risks of insecure directory permissions and path hijacking attacks. 9. Consider running Perl scripts with the least privilege necessary and avoid administrative privileges unless absolutely required. 10. Regularly review and harden system PATH environment variables to minimize exposure to path hijacking.
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.
References
- access.redhat.com/security/cve/CVE-2023-47039 (opens in a new tab)
- bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2249525 (opens in a new tab)
- security.netapp.com/advisory/ntap-20240208-0005/ (opens in a new tab)
- perldoc.perl.org/perl5382delta (opens in a new tab)