CPANSA-perl-2023-47039: perl vulnerability

Publisher giterlizzi Document category csaf_security_advisory
Initial release date 2023-10-30T00:00:00 Engine CSAF Perl Toolkit 0.25
Current release date 2023-10-30T00:00:00 Build Date
Current version 1 Status final
CVSS v3.1 Base Score 7.8 Severity
Original language Language en
Also referred to

Vulnerability Description

Perl for Windows relies on the system path environment variable to find the shell (cmd.exe). When running an executable which uses 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.
An attacker with limited privileges can exploit this behavior by placing cmd.exe in locations with weak permissions, such as C:\ProgramData. By doing so, when an administrator attempts to use this executable from these compromised locations, arbitrary code can be executed.

Vulnerabilities

CVE-2023-47039

Vulnerability 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.

Weakness CWE-122 : Heap-based Buffer Overflow

Product status

Known affected
Product Score
perl less than 5.34.2
CVSS Version CVSS Vector CVSS Base Score CVSS Base Severity
3.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 7.8 High
perl greater than or equal 5.36.0 and less than 5.36.3
CVSS Version CVSS Vector CVSS Base Score CVSS Base Severity
3.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 7.8 High
perl equal =5.38.0
CVSS Version CVSS Vector CVSS Base Score CVSS Base Severity
3.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 7.8 High

giterlizzi

Namespace: https://github.com/giterlizzi/

gdt@cpan.org

References

Revision history

Version Date of the revision Summary of the revision
1 Mon Oct 30 00:00:00 2023 First release

Sharing rules

TLP:WHITE
For the TLP version see: https://www.first.org/tlp/