Vulnerability · Published Aug 11, 2021 · Assigned by mitre

CVE-2021-36770

High 7.8

In plain English

A high-severity security flaw in the perl package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.8High
Exploit odds (30 days)1.4%top 27.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20perl5.34.0-r1ALPINE-CVE-2021-36770
Alpine:v3.21perl5.34.0-r1ALPINE-CVE-2021-36770
Alpine:v3.22perl5.34.0-r1ALPINE-CVE-2021-36770
Alpine:v3.23perl5.34.0-r1ALPINE-CVE-2021-36770
Alpine:v3.24perl5.34.0-r1ALPINE-CVE-2021-36770
Alpine:v3.20perl-encode3.12-r0ALPINE-CVE-2021-36770
Alpine:v3.21perl-encode3.12-r0ALPINE-CVE-2021-36770
Alpine:v3.22perl-encode3.12-r0ALPINE-CVE-2021-36770
Alpine:v3.23perl-encode3.12-r0ALPINE-CVE-2021-36770
Alpine:v3.24perl-encode3.12-r0ALPINE-CVE-2021-36770
Debian:12libencode-perl3.08-2DEBIAN-CVE-2021-36770
Debian:13libencode-perl3.08-2DEBIAN-CVE-2021-36770
Debian:14libencode-perl3.08-2DEBIAN-CVE-2021-36770
Debian:12perl5.32.1-5DEBIAN-CVE-2021-36770
Debian:13perl5.32.1-5DEBIAN-CVE-2021-36770
Debian:14perl5.32.1-5DEBIAN-CVE-2021-36770
Ubuntu:22.04:LTSlibencode-perlno fix listedUBUNTU-CVE-2021-36770
Ubuntu:24.04:LTSlibencode-perlno fix listedUBUNTU-CVE-2021-36770
Ubuntu:25.10libencode-perlno fix listedUBUNTU-CVE-2021-36770
Ubuntu:26.04:LTSlibencode-perlno fix listedUBUNTU-CVE-2021-36770
Ubuntu:26.10libencode-perlno fix listedUBUNTU-CVE-2021-36770
Ubuntu:22.04:LTSperl5.32.1-3ubuntu3UBUNTU-CVE-2021-36770

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References