CVE catalog

CVE-2023-47039

perl: CVE-2023-47039

[CVE catalog]

Severity
High · CVSS 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.42% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianperlsid5.42.3-1not affected
Debianperlforky5.42.3-1not affected
Debianperltrixie5.40.1-6+deb13u1not affected
Debianperlbookworm5.36.0-7+deb12u3not affected
Debianperlbookworm-security5.36.0-7+deb12u4not affected
Ubuntuperlpro5.28.1-6build1vulnerable
Ubuntuperlpro5.30.0-7vulnerable
Ubuntuperlpro5.30.0-9vulnerable
Ubuntuperlpro5.30.0-9build1vulnerable
Ubuntuperlpro5.30.0-9ubuntu0.2vulnerable
Ubuntuperlpro5.30.0-9ubuntu0.3vulnerable
Ubuntuperlpro5.30.0-9ubuntu0.4vulnerable
Ubuntuperlpro5.30.0-9ubuntu0.5vulnerable
Ubuntuperlpro5.30.0-9ubuntu0.5+esm2vulnerable
Ubuntuperlpro5.30.0-9ubuntu0.5+esm3vulnerable
Ubuntuperlpro5.30.0-9ubuntu0.5+esm4vulnerable
Ubuntuperl618.046.c-1vulnerable
Ubuntuperl620.046.d-2vulnerable
Ubuntuperl22.045.32.1-3ubuntu3vulnerable
Ubuntuperl22.045.34.0-3ubuntu1vulnerable
Ubuntuperl22.045.34.0-3ubuntu1.1vulnerable
Ubuntuperl22.045.34.0-3ubuntu1.2vulnerable
Ubuntuperl22.045.34.0-3ubuntu1.3vulnerable
Ubuntuperl22.045.34.0-3ubuntu1.4vulnerable
Ubuntuperl22.045.34.0-3ubuntu1.5vulnerable
Ubuntuperl22.045.34.0-3ubuntu1.7vulnerable
Ubuntuperl22.045.34.0-3ubuntu1.8vulnerable
Ubuntuperl22.045.34.0-3ubuntu1.9vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
DebianperlsourcesidNot affectedunimportantNot reportedNot reported
DebianperlsourceforkyNot affectedunimportantNot reportedNot reported
DebianperlsourcetrixieNot affectedunimportantNot reportedNot reported
DebianperlsourcebookwormNot affectedunimportantNot reportedNot reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References