title: Perl: perl for windows binary hijacking 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.
problem types: Heap-based Buffer Overflow
affected:
{
product: perl
vendor: n/a
versions:
status: unaffected, version: 5.32.1
}
{
defaultStatus: affected
product: perl
vendor: n/a
}
{
collectionURL: https://access.redhat.com/downloads/content/package-browser/
cpes: cpe:/o:redhat:enterprise_linux:6
defaultStatus: unaffected
packageName: perl
product: Red Hat Enterprise Linux 6
vendor: Red Hat
}
{
collectionURL: https://access.redhat.com/downloads/content/package-browser/
cpes: cpe:/o:redhat:enterprise_linux:7
defaultStatus: unaffected
packageName: perl
product: Red Hat Enterprise Linux 7
vendor: Red Hat
}
{
collectionURL: https://access.redhat.com/downloads/content/package-browser/
cpes: cpe:/o:redhat:enterprise_linux:8
defaultStatus: unaffected
packageName: perl
product: Red Hat Enterprise Linux 8
vendor: Red Hat
}
{
collectionURL: https://access.redhat.com/downloads/content/package-browser/
cpes: cpe:/o:redhat:enterprise_linux:8
defaultStatus: unaffected
packageName: perl:5.30/perl
product: Red Hat Enterprise Linux 8
vendor: Red Hat
}
{
collectionURL: https://access.redhat.com/downloads/content/package-browser/
cpes: cpe:/o:redhat:enterprise_linux:8
defaultStatus: unaffected
packageName: perl:5.32/perl
product: Red Hat Enterprise Linux 8
vendor: Red Hat
}
{
collectionURL: https://access.redhat.com/downloads/content/package-browser/
cpes: cpe:/o:redhat:enterprise_linux:9
defaultStatus: unaffected
packageName: perl
product: Red Hat Enterprise Linux 9
vendor: Red Hat
}
{
collectionURL: https://packages.fedoraproject.org/
defaultStatus: unaffected
packageName: perl:5.34/perl
product: Fedora
vendor: Fedora
}
{
collectionURL: https://packages.fedoraproject.org/
defaultStatus: unaffected
packageName: perl:5.32/perl
product: Fedora
vendor: Fedora
}
{
collectionURL: https://packages.fedoraproject.org/
defaultStatus: unaffected
packageName: perl
product: Fedora
vendor: Fedora
}
{
collectionURL: https://packages.fedoraproject.org/
defaultStatus: unaffected
packageName: perl:5.36/perl
product: Fedora
vendor: Fedora
}
metrics:
other: [
content: {'namespace': 'https://access.redhat.com/security/updates/classification/', 'value': 'Moderate'}
type: Red Hat severity rating
]