CVE-2021-36770
published 2021-08-11CVE-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…
PriorityP339high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
1.40%
69.4th percentile
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
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | libencode-perl | < libencode-perl 3.08-2 (bookworm) | libencode-perl 3.08-2 (bookworm) |
| debian | perl | < libencode-perl 3.08-2 (bookworm) | libencode-perl 3.08-2 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| p5-encode_project | p5-encode | >= 3.05 < 3.12 | 3.12 |
| perl | perl | >= 0 < 5.32.1-4+deb11u1 | 5.32.1-4+deb11u1 |
| perl | perl | >= 0 < 5.32.1-5 | 5.32.1-5 |
| perl | perl | >= 0 < 5.32.1-5 | 5.32.1-5 |
| perl | perl | >= 0 < 5.32.1-5 | 5.32.1-5 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8HIGH
vendor_oracle7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-3gfh-9hwx-r3vr: Encode
ghsa_unreviewed·2022-05-24
CVE-2021-36770 [HIGH] CWE-426 GHSA-3gfh-9hwx-r3vr: Encode
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.
OSV
CVE-2021-36770: Encode
osv·2021-08-11·CVSS 7.8
CVE-2021-36770 [HIGH] CVE-2021-36770: Encode
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.
Oracle
Oracle Oracle Enterprise Manager Risk Matrix: Provisioning (Perl) — CVE-2021-36770
vendor_oracle·2024-04-15·CVSS 7.8
CVE-2021-36770 [HIGH] Oracle Oracle Enterprise Manager Risk Matrix: Provisioning (Perl) — CVE-2021-36770
Oracle Oracle Enterprise Manager Risk Matrix: Provisioning (Perl) vulnerability
CVE: CVE-2021-36770
CVSS: 7.8
Protocol: None
Remote exploit: No
Affected versions: Local
Advisory: cpuapr2024 (APR 2024)
Oracle
Oracle Oracle Fusion Middleware Risk Matrix: Third Party Patch (Perl) — CVE-2021-36770
vendor_oracle·2023-01-15·CVSS 7.8
CVE-2021-36770 [HIGH] Oracle Oracle Fusion Middleware Risk Matrix: Third Party Patch (Perl) — CVE-2021-36770
Oracle Oracle Fusion Middleware Risk Matrix: Third Party Patch (Perl) vulnerability
CVE: CVE-2021-36770
CVSS: 7.8
Protocol: None
Remote exploit: No
Affected versions: Local
Advisory: cpujan2023 (JAN 2023)
Red Hat
perl-Encode: bug in local configuration loading allows arbitrary Perl code execution placed under the current working directory
vendor_redhat·2021-08-09·CVSS 7.8
CVE-2021-36770 [HIGH] CWE-426 perl-Encode: bug in local configuration loading allows arbitrary Perl code execution placed under the current working directory
perl-Encode: bug in local configuration loading allows arbitrary Perl code execution placed under the current working directory
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.
A flaw was found in perl-Encode, where the Perl5 Encode module loaded modules within the current directory. This flaw allows an attacker with write access to the current directory of a Perl5 process to inject arbitrary Perl code when t
Ubuntu
Perl vulnerability
vendor_ubuntu·2021-08-09
CVE-2021-36770 Perl vulnerability
Title: Perl vulnerability
Summary: Perl could be made to run arbitrary programs.
It was discovered that the Perl Encode library incorrectly handled paths. A
local attacker could possibly use this issue to trick the library into
executing arbitrary code from the current working directory.
Instructions: In general, a standard system update will make all the necessary changes.
Debian
CVE-2021-36770: libencode-perl - Encode.pm, as distributed in Perl through 5.34.0, allows local users to gain pri...
vendor_debian·2021·CVSS 7.8
CVE-2021-36770 [HIGH] CVE-2021-36770: libencode-perl - Encode.pm, as distributed in Perl through 5.34.0, allows local users to gain pri...
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.
Scope: local
bookworm: resolved (fixed in 3.08-2)
bullseye: resolved (fixed in 3.08-1+deb11u1)
forky: resolved (fixed in 3.08-2)
sid: resolved (fixed in 3.08-2)
trixie: resolved (fixed in 3.08-2)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/Perl/perl5/commit/c1a937fef07c061600a0078f4cb53fe9c2136bb9https://github.com/dankogai/p5-encode/commit/527e482dc70b035d0df4f8c77a00d81f8d775c74https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5NDGQSGMEZ75FJGBKNYC75OTO7TF7XHB/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6KOZYD7BH2DNIAEZ2ZL4PJ4QUVQI6Y33/https://metacpan.org/dist/Encode/changeshttps://news.cpanel.com/unscheduled-tsr-10-august-2021/https://security-tracker.debian.org/tracker/CVE-2021-36770https://security.netapp.com/advisory/ntap-20210909-0003/https://github.com/Perl/perl5/commit/c1a937fef07c061600a0078f4cb53fe9c2136bb9https://github.com/dankogai/p5-encode/commit/527e482dc70b035d0df4f8c77a00d81f8d775c74https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5NDGQSGMEZ75FJGBKNYC75OTO7TF7XHB/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6KOZYD7BH2DNIAEZ2ZL4PJ4QUVQI6Y33/https://metacpan.org/dist/Encode/changeshttps://news.cpanel.com/unscheduled-tsr-10-august-2021/https://security-tracker.debian.org/tracker/CVE-2021-36770https://security.netapp.com/advisory/ntap-20210909-0003/https://security.netapp.com/advisory/ntap-20241108-0002/
2021-08-11
Published