Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.8

CVE-2021-36770: 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 modul...

CVE-2021-36770 · published 5 years ago
Summary

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

What to do
  • Update canonical perl to version 5.32.1-3ubuntu3.
  • Update debian libencode-perl to version 3.08-2.
  • Update debian perl to version 5.32.1-5.
  • Update p5-encode_project p5-encode to version 3.12 or later.
Affected software
Ecosystem VendorProductAffected versions
– p5-encode_project p5-encode >= 3.05, < 3.12
cpe:2.3:a:p5-encode_project:p5-encode:*:*:*:*:*:*:*:*
– fedoraproject fedora 34
33
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
Ubuntu:16.04:LTS canonical libencode-perl All versions
Ubuntu:22.04:LTS canonical perl < 5.32.1-3ubuntu3
Fix: upgrade to 5.32.1-3ubuntu3
Debian:12 debian libencode-perl < 3.08-2
Fix: upgrade to 3.08-2
Debian:12 debian perl < 5.32.1-5
Fix: upgrade to 5.32.1-5
Original advisory text
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 modul...
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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker full control (estimated)
Severity
7.8 High
Exploitation
1% chance of attack within 30 days
Type
CWE-427Uncontrolled Search Path Element
Timeline
Published11 Aug 2021
Updated4 Nov 2026
First seen29 Sep 2026
Track software like this
Free during beta