Skip to main content
← All vulnerabilities
CVE-2023-47039

Perl: perl for windows binary hijacking vulnerability

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.34.3, 5.36.3, 5.38.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • perl

    fixed in 5.34.3; From 5.36.0 · fixed in 5.36.3; From 5.38.0 · fixed in 5.38.2

  • perl

    Version range not reported

  • perl

    Version range not reported

  • perl

    Version range not reported

  • perl:5.30/perl

    Version range not reported

  • perl:5.32/perl

    Version range not reported

  • perl

    Version range not reported

References 3

access.redhat.com

bugs.debian.org

bugzilla.redhat.com