CVE-2023-47039
NixOS vulnerability analysis and mitigation

Overview

A security vulnerability (CVE-2023-47039) was discovered in Perl for Windows, affecting versions prior to 5.38.1. The vulnerability was initially reported by GitHub user ycdxsb to the Intel Product Security Incident Response Team (PSIRT), who then reported it to the Perl security team (Perl Delta, NVD).

Technical details

The vulnerability stems from how Perl for Windows handles the system path environment variable when searching for the shell (cmd.exe). Due to path search order issues, when an executable using the Windows Perl interpreter attempts to find and execute cmd.exe, it first looks in the current working directory before checking system directories. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (Red Hat, NetApp).

Impact

When successfully exploited, this vulnerability could lead to arbitrary code execution with elevated privileges. An attacker with limited privileges can place a malicious cmd.exe in locations with weak permissions, such as C:\ProgramData, which would then be executed when an administrator runs a Perl executable from these compromised locations (NVD, Security Online).

Mitigation and workarounds

The vulnerability has been fixed in Perl versions 5.34.2, 5.36.2, and 5.38.1. Users are strongly advised to upgrade to these or later versions to mitigate the risk. The fix was released as part of a coordinated security response (Perl Delta, Openwall).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management