UBUNTU-CVE-2023-47039

Source
https://ubuntu.com/security/CVE-2023-47039
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-47039.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2023-47039
Upstream
Published
2023-11-25T17:00:00Z
Modified
2026-09-08T19:45:11Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - negligible
Summary
[none]
Details

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 placecmd.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.

References

Affected packages

Ubuntu:18.04:LTS
perl6

Package

Name
perl6
Purl
pkg:deb/ubuntu/perl6?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

6.*
6.c-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "perl6",
            "binary_version": "6.c-1"
        }
    ],
    "priority_reason": "Does not affect Ubuntu."
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-47039.json"
Ubuntu:20.04:LTS
perl6

Package

Name
perl6
Purl
pkg:deb/ubuntu/perl6?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

6.*
6.d-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "perl6",
            "binary_version": "6.d-2"
        }
    ],
    "priority_reason": "Does not affect Ubuntu."
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-47039.json"
Ubuntu:22.04:LTS
perl

Package

Name
perl
Purl
pkg:deb/ubuntu/perl?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

5.*
5.32.1-3ubuntu3
5.34.0-3ubuntu1
5.34.0-3ubuntu1.1
5.34.0-3ubuntu1.2
5.34.0-3ubuntu1.3
5.34.0-3ubuntu1.4
5.34.0-3ubuntu1.5
5.34.0-3ubuntu1.7
5.34.0-3ubuntu1.8
5.34.0-3ubuntu1.9

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libperl5.34",
            "binary_version": "5.34.0-3ubuntu1.9"
        },
        {
            "binary_name": "perl",
            "binary_version": "5.34.0-3ubuntu1.9"
        },
        {
            "binary_name": "perl-base",
            "binary_version": "5.34.0-3ubuntu1.9"
        },
        {
            "binary_name": "perl-debug",
            "binary_version": "5.34.0-3ubuntu1.9"
        },
        {
            "binary_name": "perl-modules-5.34",
            "binary_version": "5.34.0-3ubuntu1.9"
        }
    ],
    "priority_reason": "Does not affect Ubuntu."
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-47039.json"
Ubuntu:Pro:14.04:LTS
perl

Package

Name
perl
Purl
pkg:deb/ubuntu/perl?arch=source&distro=esm-infra-legacy%2Ftrusty

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

5.*
5.14.2-21build1
5.18.1-4
5.18.1-4build1
5.18.1-5
5.18.2-2
5.18.2-2ubuntu1
5.18.2-2ubuntu1.1
5.18.2-2ubuntu1.3
5.18.2-2ubuntu1.4
5.18.2-2ubuntu1.6
5.18.2-2ubuntu1.7
5.18.2-2ubuntu1.7+esm3
5.18.2-2ubuntu1.7+esm4
5.18.2-2ubuntu1.7+esm5
5.18.2-2ubuntu1.7+esm7
5.18.2-2ubuntu1.7+esm8
5.18.2-2ubuntu1.7+esm9

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libcgi-fast-perl",
            "binary_version": "5.18.2-2ubuntu1.7+esm9"
        },
        {
            "binary_name": "libperl5.18",
            "binary_version": "5.18.2-2ubuntu1.7+esm9"
        },
        {
            "binary_name": "perl",
            "binary_version": "5.18.2-2ubuntu1.7+esm9"
        },
        {
            "binary_name": "perl-base",
            "binary_version": "5.18.2-2ubuntu1.7+esm9"
        },
        {
            "binary_name": "perl-debug",
            "binary_version": "5.18.2-2ubuntu1.7+esm9"
        },
        {
            "binary_name": "perl-modules",
            "binary_version": "5.18.2-2ubuntu1.7+esm9"
        }
    ],
    "priority_reason": "Does not affect Ubuntu."
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-47039.json"
Ubuntu:Pro:16.04:LTS
perl

Package

Name
perl
Purl
pkg:deb/ubuntu/perl?arch=source&distro=esm-infra-legacy%2Fxenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

5.*
5.20.2-6
5.22.1-3
5.22.1-4
5.22.1-5
5.22.1-7
5.22.1-8
5.22.1-9
5.22.1-9ubuntu0.2
5.22.1-9ubuntu0.3
5.22.1-9ubuntu0.5
5.22.1-9ubuntu0.6
5.22.1-9ubuntu0.9
5.22.1-9ubuntu0.9+esm1
5.22.1-9ubuntu0.9+esm2
5.22.1-9ubuntu0.9+esm3
5.22.1-9ubuntu0.9+esm4

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libperl5.22",
            "binary_version": "5.22.1-9ubuntu0.9+esm4"
        },
        {
            "binary_name": "perl",
            "binary_version": "5.22.1-9ubuntu0.9+esm4"
        },
        {
            "binary_name": "perl-base",
            "binary_version": "5.22.1-9ubuntu0.9+esm4"
        },
        {
            "binary_name": "perl-debug",
            "binary_version": "5.22.1-9ubuntu0.9+esm4"
        },
        {
            "binary_name": "perl-modules-5.22",
            "binary_version": "5.22.1-9ubuntu0.9+esm4"
        }
    ],
    "priority_reason": "Does not affect Ubuntu."
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-47039.json"
Ubuntu:Pro:18.04:LTS
perl

Package

Name
perl
Purl
pkg:deb/ubuntu/perl?arch=source&distro=esm-infra%2Fbionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

5.*
5.26.0-8ubuntu1
5.26.1-2ubuntu1
5.26.1-3
5.26.1-4
5.26.1-4build1
5.26.1-5
5.26.1-6
5.26.1-6ubuntu0.1
5.26.1-6ubuntu0.2
5.26.1-6ubuntu0.3
5.26.1-6ubuntu0.5
5.26.1-6ubuntu0.6
5.26.1-6ubuntu0.7
5.26.1-6ubuntu0.7+esm2
5.26.1-6ubuntu0.7+esm3
5.26.1-6ubuntu0.7+esm4

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libperl5.26",
            "binary_version": "5.26.1-6ubuntu0.7+esm4"
        },
        {
            "binary_name": "perl",
            "binary_version": "5.26.1-6ubuntu0.7+esm4"
        },
        {
            "binary_name": "perl-base",
            "binary_version": "5.26.1-6ubuntu0.7+esm4"
        },
        {
            "binary_name": "perl-debug",
            "binary_version": "5.26.1-6ubuntu0.7+esm4"
        },
        {
            "binary_name": "perl-modules-5.26",
            "binary_version": "5.26.1-6ubuntu0.7+esm4"
        }
    ],
    "priority_reason": "Does not affect Ubuntu."
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-47039.json"
Ubuntu:Pro:20.04:LTS
perl

Package

Name
perl
Purl
pkg:deb/ubuntu/perl?arch=source&distro=esm-infra%2Ffocal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

5.*
5.28.1-6build1
5.30.0-7
5.30.0-9
5.30.0-9build1
5.30.0-9ubuntu0.2
5.30.0-9ubuntu0.3
5.30.0-9ubuntu0.4
5.30.0-9ubuntu0.5
5.30.0-9ubuntu0.5+esm2
5.30.0-9ubuntu0.5+esm3
5.30.0-9ubuntu0.5+esm4

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libperl5.30",
            "binary_version": "5.30.0-9ubuntu0.5+esm4"
        },
        {
            "binary_name": "perl",
            "binary_version": "5.30.0-9ubuntu0.5+esm4"
        },
        {
            "binary_name": "perl-base",
            "binary_version": "5.30.0-9ubuntu0.5+esm4"
        },
        {
            "binary_name": "perl-debug",
            "binary_version": "5.30.0-9ubuntu0.5+esm4"
        },
        {
            "binary_name": "perl-modules-5.30",
            "binary_version": "5.30.0-9ubuntu0.5+esm4"
        }
    ],
    "priority_reason": "Does not affect Ubuntu."
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-47039.json"