
CVE catalog
CVE-2023-47039
perl: CVE-2023-47039
- Severity
- High · CVSS 7.8
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | perl | sid | 5.42.3-1 | not affected |
| Debian | perl | forky | 5.42.3-1 | not affected |
| Debian | perl | trixie | 5.40.1-6+deb13u1 | not affected |
| Debian | perl | bookworm | 5.36.0-7+deb12u3 | not affected |
| Debian | perl | bookworm-security | 5.36.0-7+deb12u4 | not affected |
| Ubuntu | perl | pro | 5.28.1-6build1 | vulnerable |
| Ubuntu | perl | pro | 5.30.0-7 | vulnerable |
| Ubuntu | perl | pro | 5.30.0-9 | vulnerable |
| Ubuntu | perl | pro | 5.30.0-9build1 | vulnerable |
| Ubuntu | perl | pro | 5.30.0-9ubuntu0.2 | vulnerable |
| Ubuntu | perl | pro | 5.30.0-9ubuntu0.3 | vulnerable |
| Ubuntu | perl | pro | 5.30.0-9ubuntu0.4 | vulnerable |
| Ubuntu | perl | pro | 5.30.0-9ubuntu0.5 | vulnerable |
| Ubuntu | perl | pro | 5.30.0-9ubuntu0.5+esm2 | vulnerable |
| Ubuntu | perl | pro | 5.30.0-9ubuntu0.5+esm3 | vulnerable |
| Ubuntu | perl | pro | 5.30.0-9ubuntu0.5+esm4 | vulnerable |
| Ubuntu | perl6 | 18.04 | 6.c-1 | vulnerable |
| Ubuntu | perl6 | 20.04 | 6.d-2 | vulnerable |
| Ubuntu | perl | 22.04 | 5.32.1-3ubuntu3 | vulnerable |
| Ubuntu | perl | 22.04 | 5.34.0-3ubuntu1 | vulnerable |
| Ubuntu | perl | 22.04 | 5.34.0-3ubuntu1.1 | vulnerable |
| Ubuntu | perl | 22.04 | 5.34.0-3ubuntu1.2 | vulnerable |
| Ubuntu | perl | 22.04 | 5.34.0-3ubuntu1.3 | vulnerable |
| Ubuntu | perl | 22.04 | 5.34.0-3ubuntu1.4 | vulnerable |
| Ubuntu | perl | 22.04 | 5.34.0-3ubuntu1.5 | vulnerable |
| Ubuntu | perl | 22.04 | 5.34.0-3ubuntu1.7 | vulnerable |
| Ubuntu | perl | 22.04 | 5.34.0-3ubuntu1.8 | vulnerable |
| Ubuntu | perl | 22.04 | 5.34.0-3ubuntu1.9 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | perl | source | sid | Not affected | unimportant | Not reported | Not reported |
| Debian | perl | source | forky | Not affected | unimportant | Not reported | Not reported |
| Debian | perl | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | perl | source | bookworm | Not affected | unimportant | Not reported | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://cert-portal.siemens.com/productcert/csaf/ssa-915275.json]
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2024_13479-1.json]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-47039]
- [https://security-tracker.debian.org/tracker/CVE-2023-47039]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-3007.json]
[CERT-Bund public advisories] · [CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]