UBUNTU-CVE-2021-36770

Source
https://ubuntu.com/security/CVE-2021-36770
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-36770.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2021-36770
Related
Published
2021-08-09T00:00:00Z
Modified
2024-10-15T14:08:17Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Encode.pm, as distributed in Perl through 5.34.0, allows local users to gain privileges via a Trojan horse Encode::ConfigLocal library (in the current working directory) that preempts dynamic module loading. Exploitation requires an unusual configuration, and certain 2021 versions of Encode.pm (3.05 through 3.11). This issue occurs because the || operator evaluates @INC in a scalar context, and thus @INC has only an integer value.

References

Affected packages

Ubuntu:Pro:16.04:LTS / libencode-perl

Package

Name
libencode-perl
Purl
pkg:deb/ubuntu/libencode-perl?arch=src?distro=esm-apps/xenial

Affected ranges

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

Affected versions

2.*

2.76-1
2.78-1
2.78-1build1
2.79-1
2.82-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:18.04:LTS / libencode-perl

Package

Name
libencode-perl
Purl
pkg:deb/ubuntu/libencode-perl?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.96-1

Affected versions

2.*

2.92-1
2.93-1
2.94-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.96-1",
            "binary_name": "libencode-perl"
        },
        {
            "binary_version": "2.96-1",
            "binary_name": "libencode-perl-dbgsym"
        }
    ]
}

Ubuntu:18.04:LTS / perl

Package

Name
perl
Purl
pkg:deb/ubuntu/perl?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.26.1-6ubuntu0.5

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

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.26.1-6ubuntu0.5",
            "binary_name": "libperl-dev"
        },
        {
            "binary_version": "5.26.1-6ubuntu0.5",
            "binary_name": "libperl5.26"
        },
        {
            "binary_version": "5.26.1-6ubuntu0.5",
            "binary_name": "perl"
        },
        {
            "binary_version": "5.26.1-6ubuntu0.5",
            "binary_name": "perl-base"
        },
        {
            "binary_version": "5.26.1-6ubuntu0.5",
            "binary_name": "perl-debug"
        },
        {
            "binary_version": "5.26.1-6ubuntu0.5",
            "binary_name": "perl-doc"
        },
        {
            "binary_version": "5.26.1-6ubuntu0.5",
            "binary_name": "perl-modules-5.26"
        }
    ]
}

Ubuntu:20.04:LTS / libencode-perl

Package

Name
libencode-perl
Purl
pkg:deb/ubuntu/libencode-perl?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.02-1

Affected versions

3.*

3.01-1
3.01-1build1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "3.02-1",
            "binary_name": "libencode-perl"
        },
        {
            "binary_version": "3.02-1",
            "binary_name": "libencode-perl-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / perl

Package

Name
perl
Purl
pkg:deb/ubuntu/perl?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.30.0-9ubuntu0.2

Affected versions

5.*

5.28.1-6build1
5.30.0-7
5.30.0-9
5.30.0-9build1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.30.0-9ubuntu0.2",
            "binary_name": "libperl-dev"
        },
        {
            "binary_version": "5.30.0-9ubuntu0.2",
            "binary_name": "libperl5.30"
        },
        {
            "binary_version": "5.30.0-9ubuntu0.2",
            "binary_name": "perl"
        },
        {
            "binary_version": "5.30.0-9ubuntu0.2",
            "binary_name": "perl-base"
        },
        {
            "binary_version": "5.30.0-9ubuntu0.2",
            "binary_name": "perl-debug"
        },
        {
            "binary_version": "5.30.0-9ubuntu0.2",
            "binary_name": "perl-doc"
        },
        {
            "binary_version": "5.30.0-9ubuntu0.2",
            "binary_name": "perl-modules-5.30"
        }
    ]
}

Ubuntu:22.04:LTS / libencode-perl

Package

Name
libencode-perl
Purl
pkg:deb/ubuntu/libencode-perl?arch=src?distro=jammy

Affected ranges

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

Affected versions

3.*

3.08-2
3.16-1
3.16-1build1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / perl

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.32.1-3ubuntu3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.32.1-3ubuntu3",
            "binary_name": "libperl-dev"
        },
        {
            "binary_version": "5.32.1-3ubuntu3",
            "binary_name": "libperl5.32"
        },
        {
            "binary_version": "5.32.1-3ubuntu3",
            "binary_name": "perl"
        },
        {
            "binary_version": "5.32.1-3ubuntu3",
            "binary_name": "perl-base"
        },
        {
            "binary_version": "5.32.1-3ubuntu3",
            "binary_name": "perl-debug"
        },
        {
            "binary_version": "5.32.1-3ubuntu3",
            "binary_name": "perl-doc"
        },
        {
            "binary_version": "5.32.1-3ubuntu3",
            "binary_name": "perl-modules-5.32"
        }
    ]
}

Ubuntu:24.10 / libencode-perl

Package

Name
libencode-perl
Purl
pkg:deb/ubuntu/libencode-perl?arch=src?distro=oracular

Affected ranges

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

Affected versions

3.*

3.21-1build2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / libencode-perl

Package

Name
libencode-perl
Purl
pkg:deb/ubuntu/libencode-perl?arch=src?distro=noble

Affected ranges

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

Affected versions

3.*

3.19-1build1
3.20-1
3.20-1build1
3.21-1
3.21-1build1
3.21-1build2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}