CVE-2023-47039
published high CVSS 3.1 · 7.8Perl: perl for windows binary hijacking vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | perl0 to < 5.34.3 · 5.36.0 to < 5.36.3 · 5.38.0 to < 5.38.2 · Other versions: unaffected | Affected | Not stated | redhat |
| Red Hat Enterprise Linux | 6, 7, 8, 9 | perl | Unaffected | Not required | redhat |
| Red Hat Enterprise Linux | 8 | perl:5.30/perl | Unaffected | Not required | redhat |
| Red Hat Enterprise Linux | 8 | perl:5.32/perl | Unaffected | Not required | redhat |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | perlaarch64 | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perlppc64le | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
Show 18 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | perls390x | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perlx86_64 | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-32bitaarch64 | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-32bitppc64le | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-32bits390x | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-32bitx86_64 | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-baseaarch64 | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-baseppc64le | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-bases390x | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-basex86_64 | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-base-32bitaarch64 | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-base-32bitppc64le | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-base-32bits390x | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-base-32bitx86_64 | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-docaarch64 | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-docppc64le | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-docs390x | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-docx86_64 | Advisory build | 5.38.2-1.1 | OPENSUSE-SU-2024:13479-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| perl | 0 to < 5.34.3 (affected · semver)5.36.0 to < 5.36.3 (affected · semver)5.38.0 to < 5.38.2 (affected · semver)Default: unaffected | redhat · cna | |
| Red Hat | Red Hat Enterprise Linux 6 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 7 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat · cna |
Weaknesses
1- CWE-122 Heap-based Buffer Overflow
References
5- https://access.redhat.com/security/cve/CVE-2023-47039
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746
- RHBZ#2249525 https://bugzilla.redhat.com/show_bug.cgi?id=2249525
- https://perldoc.perl.org/perl5382delta#CVE-2023-47039-Perl-for-Windows-binary-hijacking-vulnerability
- https://security.netapp.com/advisory/ntap-20240208-0005/
Provider assertions
3redhat · cna
Perl: perl for windows binary hijacking vulnerability
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- cef77a93cddbe7fe749da03c35b9cb4715c5b92474bd555ea4b8512b5ec09354
- Ingested
- 26 Nov 2026, 17:13:39 UTC
- Source record
- Official CVE record