Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    UBUNTU-CVE-2021-36770 (CVE-2021-36770)

    Vulnerability from osv_ubuntu – Published: 2021-08-09 00:00 – Updated: 2026-11-24 09:45 – Source website
    VLAI
    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.

    Upstream
    Related
    Impacted products
    Ecosystem Package Version
    Ubuntu:16.04:LTS libencode-perl
    pkg:deb/ubuntu/libencode-perl@2.82-1?arch=source&distro=xenial
    Affected: All versions (ecosystem)
    2.76-12.78-12.78-1build12.79-12.82-1
    Ubuntu:22.04:LTS libencode-perl
    pkg:deb/ubuntu/libencode-perl@3.16-1build1?arch=source&distro=jammy
    Affected: All versions (ecosystem)
    3.08-23.16-13.16-1build1
    Ubuntu:22.04:LTS perl
    pkg:deb/ubuntu/perl@5.32.1-3ubuntu3?arch=source&distro=jammy
    Affected: < 5.32.1-3ubuntu3 (ecosystem)
    Ubuntu:24.04:LTS libencode-perl
    pkg:deb/ubuntu/libencode-perl@3.21-1build2?arch=source&distro=noble
    Affected: All versions (ecosystem)
    3.19-1build13.20-13.20-1build13.21-13.21-1build13.21-1build2
    Ubuntu:25.10 libencode-perl
    pkg:deb/ubuntu/libencode-perl@3.21-1build3?arch=source&distro=questing
    Affected: All versions (ecosystem)
    3.21-1build3
    Ubuntu:26.10 libencode-perl
    pkg:deb/ubuntu/libencode-perl@3.24-1build1?arch=source&distro=stonking
    Affected: All versions (ecosystem)
    3.21-1build33.24-13.24-1build1
    Ubuntu:26.04:LTS libencode-perl
    pkg:deb/ubuntu/libencode-perl@3.21-1build3?arch=source&distro=resolute
    Affected: All versions (ecosystem)
    3.21-1build3

    {
      "affected": [
        {
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libencode-perl",
                "binary_version": "2.82-1"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:16.04:LTS",
            "name": "libencode-perl",
            "purl": "pkg:deb/ubuntu/libencode-perl@2.82-1?arch=source\u0026distro=xenial"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "2.76-1",
            "2.78-1",
            "2.78-1build1",
            "2.79-1",
            "2.82-1"
          ]
        },
        {
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libencode-perl",
                "binary_version": "3.16-1build1"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:22.04:LTS",
            "name": "libencode-perl",
            "purl": "pkg:deb/ubuntu/libencode-perl@3.16-1build1?arch=source\u0026distro=jammy"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "3.08-2",
            "3.16-1",
            "3.16-1build1"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "No subscription required",
            "binaries": [
              {
                "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-modules-5.32",
                "binary_version": "5.32.1-3ubuntu3"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:22.04:LTS",
            "name": "perl",
            "purl": "pkg:deb/ubuntu/perl@5.32.1-3ubuntu3?arch=source\u0026distro=jammy"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.32.1-3ubuntu3"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": []
        },
        {
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libencode-perl",
                "binary_version": "3.21-1build2"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:24.04:LTS",
            "name": "libencode-perl",
            "purl": "pkg:deb/ubuntu/libencode-perl@3.21-1build2?arch=source\u0026distro=noble"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "3.19-1build1",
            "3.20-1",
            "3.20-1build1",
            "3.21-1",
            "3.21-1build1",
            "3.21-1build2"
          ]
        },
        {
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libencode-perl",
                "binary_version": "3.21-1build3"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:25.10",
            "name": "libencode-perl",
            "purl": "pkg:deb/ubuntu/libencode-perl@3.21-1build3?arch=source\u0026distro=questing"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "3.21-1build3"
          ]
        },
        {
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libencode-perl",
                "binary_version": "3.24-1build1"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:26.10",
            "name": "libencode-perl",
            "purl": "pkg:deb/ubuntu/libencode-perl@3.24-1build1?arch=source\u0026distro=stonking"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "3.21-1build3",
            "3.24-1",
            "3.24-1build1"
          ]
        },
        {
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libencode-perl",
                "binary_version": "3.21-1build3"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:26.04:LTS",
            "name": "libencode-perl",
            "purl": "pkg:deb/ubuntu/libencode-perl@3.21-1build3?arch=source\u0026distro=resolute"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "3.21-1build3"
          ]
        }
      ],
      "aliases": [],
      "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.",
      "id": "UBUNTU-CVE-2021-36770",
      "modified": "2026-11-24T09:45:14Z",
      "published": "2021-08-09T00:00:00Z",
      "references": [
        {
          "type": "REPORT",
          "url": "https://ubuntu.com/security/CVE-2021-36770"
        },
        {
          "type": "ADVISORY",
          "url": "https://ubuntu.com/security/notices/USN-5033-1"
        },
        {
          "type": "REPORT",
          "url": "https://www.cve.org/CVERecord?id=CVE-2021-36770"
        }
      ],
      "related": [
        "USN-5033-1"
      ],
      "schema_version": "1.9.2",
      "severity": [
        {
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
          "source": "NVD",
          "type": "CVSS_V3"
        },
        {
          "score": "medium",
          "source": "SELF",
          "type": "Ubuntu"
        }
      ],
      "upstream": [
        "CVE-2021-36770"
      ]
    }