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.

Routine
CVSS
n/a
Medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0139
72nd percentile

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

ProductFixed inFixReleased
Linux
libperl5.32 · Ubuntu 22.04.1 LTS (jammy) 5.32.1-3ubuntu3 libperl5.32 5.32.1-3ubuntu3 Aug 8, 2021
libperl5.38t64 · Ubuntu 24.10 (oracular) 5.32.1-3ubuntu3 libperl5.38t64 5.32.1-3ubuntu3 Jan 16, 2026
libperl5.38t64 · Ubuntu 25.04 (plucky) 5.32.1-3ubuntu3 libperl5.38t64 5.32.1-3ubuntu3 Jan 16, 2026
perl · Ubuntu 22.04.1 LTS (jammy) 5.32.1-3ubuntu3 perl 5.32.1-3ubuntu3 Aug 8, 2021
perl · Ubuntu 24.10 (oracular) 5.32.1-3ubuntu3 perl 5.32.1-3ubuntu3 Jan 16, 2026
perl · Ubuntu 25.04 (plucky) 5.32.1-3ubuntu3 perl 5.32.1-3ubuntu3 Jan 16, 2026
perl-base · Ubuntu 22.04.1 LTS (jammy) 5.32.1-3ubuntu3 perl-base 5.32.1-3ubuntu3 Aug 8, 2021
perl-base · Ubuntu 24.10 (oracular) 5.32.1-3ubuntu3 perl-base 5.32.1-3ubuntu3 Jan 16, 2026
perl-base · Ubuntu 25.04 (plucky) 5.32.1-3ubuntu3 perl-base 5.32.1-3ubuntu3 Jan 16, 2026
perl-debug · Ubuntu 22.04.1 LTS (jammy) 5.32.1-3ubuntu3 perl-debug 5.32.1-3ubuntu3 Aug 8, 2021
perl-debug · Ubuntu 24.10 (oracular) 5.32.1-3ubuntu3 perl-debug 5.32.1-3ubuntu3 Jan 16, 2026
perl-debug · Ubuntu 25.04 (plucky) 5.32.1-3ubuntu3 perl-debug 5.32.1-3ubuntu3 Jan 16, 2026
perl-modules-5.32 · Ubuntu 22.04.1 LTS (jammy) 5.32.1-3ubuntu3 perl-modules-5.32 5.32.1-3ubuntu3 Aug 8, 2021
perl-modules-5.38 · Ubuntu 24.10 (oracular) 5.32.1-3ubuntu3 perl-modules-5.38 5.32.1-3ubuntu3 Jan 16, 2026
perl-modules-5.38 · Ubuntu 25.04 (plucky) 5.32.1-3ubuntu3 perl-modules-5.38 5.32.1-3ubuntu3 Jan 16, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

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.