Skip to content
OpenAdvisories
Unscored CVE-2021-36770 EUVD-2021-23358GHSA-3gfh-9hwx-r3vr

Encode.pm, as distributed in Perl through 5.34.0, allows local users to gain privileges via a Trojan horse Encode::ConfigLocal library (in …

Published Aug 11, 2021 · Updated Nov 3, 2025 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libencode-perl 3.08-2 —
Debian 14 perl 5.32.1-5 —
Debian 13 libencode-perl 3.08-2 —
Debian 13 perl 5.32.1-5 —
Debian 12 libencode-perl 3.08-2 —
Debian 12 perl 5.32.1-5 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libencode-perl No fix yet —
Ubuntu 26.04 LTS libencode-perl No fix yet —
Ubuntu 25.10 libencode-perl No fix yet —
Ubuntu 24.04 LTS libencode-perl No fix yet —
Ubuntu 22.04 LTS libencode-perl No fix yet —
Ubuntu 22.04 LTS perl 5.32.1-3ubuntu3 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS libencode-perl No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 perl 5.34.0-r1 —
Alpine v3.24 perl-encode 3.12-r0 —
Alpine v3.23 perl 5.34.0-r1 —
Alpine v3.23 perl-encode 3.12-r0 —
Alpine v3.22 perl 5.34.0-r1 —
Alpine v3.22 perl-encode 3.12-r0 —
Alpine v3.21 perl 5.34.0-r1 —
Alpine v3.21 perl-encode 3.12-r0 —
Alpine v3.20 perl 5.34.0-r1 —
Alpine v3.20 perl-encode 3.12-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 perl 5.34.0-r1 —
Alpine v3.19 perl-encode 3.12-r0 —
Alpine v3.18 perl 5.34.0-r1 —
Alpine v3.18 perl-encode 3.12-r0 —
Alpine v3.17 perl 5.34.0-r1 —
Alpine v3.17 perl-encode 3.12-r0 —
Alpine v3.16 perl 5.34.0-r1 —
Alpine v3.16 perl-encode 3.12-r0 —
Alpine v3.15 perl 5.34.0-r1 —
Alpine v3.15 perl-encode 3.12-r0 —

Advisories 3

References