CVE-2023-47039
Perl: perl for windows binary hijacking vulnerability
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.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: [email protected]Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: af854a3a-2127-422b-91ae-364da2661108Affected products and versions
| Product | Versions | Authority |
|---|---|---|
perl
https://github.com/Perl/perl5 |
≥ 0; < 5.34.3 (affected, semver) ≥ 5.36.0; < 5.36.3 (affected, semver) ≥ 5.38.0; < 5.38.2 (affected, semver) Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 6 Red Hat perl
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 7 Red Hat perl
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat perl
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat perl:5.30/perl
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat perl:5.32/perl
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 9 Red Hat perl
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
NVD applicability configurations (1)
These expressions retain AND/OR operators, negation, and required environmental products. A listed product is not sufficient to establish exposure when additional conditions apply.
[
{
"negate": false,
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.32.1",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
},
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*",
"vulnerable": false
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
]CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 7.8 high |
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | CNA: redhat |
| 3.1 / 7.8 high |
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD: [email protected] |
| 3.1 / 7.8 high |
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://access.redhat.com/security/cve/CVE-2023-47039CNA: redhat · vdb-entry, x_refsource_REDHAT
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746CNA: redhat
- https://bugzilla.redhat.com/show_bug.cgi?id=2249525CNA: redhat · issue-tracking, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-47039ADP: CVE · vdb-entry, x_refsource_REDHAT, x_transferred
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746ADP: CVE · x_transferred
- https://bugzilla.redhat.com/show_bug.cgi?id=2249525ADP: CVE · issue-tracking, x_refsource_REDHAT, x_transferred
- https://security.netapp.com/advisory/ntap-20240208-0005/ADP: CVE · x_transferred
- https://perldoc.perl.org/perl5382delta#CVE-2023-47039-Perl-for-Windows-binary-hijacking-vulnerabilityADP: CVE · x_transferred
- https://access.redhat.com/security/cve/CVE-2023-47039[email protected] · Third Party Advisory
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746[email protected] · Mailing List, Patch
- https://bugzilla.redhat.com/show_bug.cgi?id=2249525[email protected] · Issue Tracking
- https://access.redhat.com/security/cve/CVE-2023-47039af854a3a-2127-422b-91ae-364da2661108 · Third Party Advisory
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056746af854a3a-2127-422b-91ae-364da2661108 · Mailing List, Patch
- https://bugzilla.redhat.com/show_bug.cgi?id=2249525af854a3a-2127-422b-91ae-364da2661108 · Issue Tracking
- https://perldoc.perl.org/perl5382delta#CVE-2023-47039-Perl-for-Windows-binary-hijacking-vulnerabilityaf854a3a-2127-422b-91ae-364da2661108
- https://security.netapp.com/advisory/ntap-20240208-0005/af854a3a-2127-422b-91ae-364da2661108
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.