# CVE-2021-36770: libperl5.38t64: Encode.pm, as distributed in Perl through 5.34.0, allows local users togain privileges via a Trojan horse Encode::Con...

CVE-2021-36770 is fixed in 7 products on 1 platform, first by libperl5.32 5.32.1-3ubuntu3, released August 8, 2021. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2021-36770
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0139
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Aug 8, 2021

## Description

Encode.pm, as distributed in Perl through 5.34.0, allows local users togain privileges via a Trojan horse Encode::ConfigLocal library (in thecurrent working directory) that preempts dynamic module loading.Exploitation requires an unusual configuration, and certain 2021 versionsof Encode.pm (3.05 through 3.11). This issue occurs because the || operatorevaluates @INC in a scalar context, and thus @INC has only an integervalue.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libperl5.32 Ubuntu 22.04.1 LTS (jammy) | 5.32.1-3ubuntu3 | [libperl5.32 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libperl5.32-5.32.1-3ubuntu3.md) | Aug 8, 2021 |
| Linux | libperl5.38t64 Ubuntu 24.10 (oracular) | 5.32.1-3ubuntu3 | [libperl5.38t64 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-libperl5.38t64-5.32.1-3ubuntu3.md) | Jan 16, 2026 |
| Linux | libperl5.38t64 Ubuntu 25.04 (plucky) | 5.32.1-3ubuntu3 | [libperl5.38t64 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libperl5.38t64-5.32.1-3ubuntu3.md) | Jan 16, 2026 |
| Linux | perl Ubuntu 22.04.1 LTS (jammy) | 5.32.1-3ubuntu3 | [perl 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-perl-5.32.1-3ubuntu3.md) | Aug 8, 2021 |
| Linux | perl Ubuntu 24.10 (oracular) | 5.32.1-3ubuntu3 | [perl 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-perl-5.32.1-3ubuntu3.md) | Jan 16, 2026 |
| Linux | perl Ubuntu 25.04 (plucky) | 5.32.1-3ubuntu3 | [perl 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-perl-5.32.1-3ubuntu3.md) | Jan 16, 2026 |
| Linux | perl-base Ubuntu 22.04.1 LTS (jammy) | 5.32.1-3ubuntu3 | [perl-base 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-perl-base-5.32.1-3ubuntu3.md) | Aug 8, 2021 |
| Linux | perl-base Ubuntu 24.10 (oracular) | 5.32.1-3ubuntu3 | [perl-base 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-perl-base-5.32.1-3ubuntu3.md) | Jan 16, 2026 |
| Linux | perl-base Ubuntu 25.04 (plucky) | 5.32.1-3ubuntu3 | [perl-base 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-perl-base-5.32.1-3ubuntu3.md) | Jan 16, 2026 |
| Linux | perl-debug Ubuntu 22.04.1 LTS (jammy) | 5.32.1-3ubuntu3 | [perl-debug 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-perl-debug-5.32.1-3ubuntu3.md) | Aug 8, 2021 |
| Linux | perl-debug Ubuntu 24.10 (oracular) | 5.32.1-3ubuntu3 | [perl-debug 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-perl-debug-5.32.1-3ubuntu3.md) | Jan 16, 2026 |
| Linux | perl-debug Ubuntu 25.04 (plucky) | 5.32.1-3ubuntu3 | [perl-debug 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-perl-debug-5.32.1-3ubuntu3.md) | Jan 16, 2026 |
| Linux | perl-modules-5.32 Ubuntu 22.04.1 LTS (jammy) | 5.32.1-3ubuntu3 | [perl-modules-5.32 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-perl-modules-5.32-5.32.1-3ubuntu3.md) | Aug 8, 2021 |
| Linux | perl-modules-5.38 Ubuntu 24.10 (oracular) | 5.32.1-3ubuntu3 | [perl-modules-5.38 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-perl-modules-5.38-5.32.1-3ubuntu3.md) | Jan 16, 2026 |
| Linux | perl-modules-5.38 Ubuntu 25.04 (plucky) | 5.32.1-3ubuntu3 | [perl-modules-5.38 5.32.1-3ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-perl-modules-5.38-5.32.1-3ubuntu3.md) | Jan 16, 2026 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
