Skip to main content
CVE-2023-47039VulnerabilityPublished Updated

CVE-2023-47039: Heap-based Buffer Overflow

Source CVE Database V5

0

Not known to be exploited · CVSS 7.8 High.

Data as of 26 Oct 2026, 08:30 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Jan 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

Community reviews

Loading reviews…