# 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…

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.40%, higher than 73% of CVEs (2026-12-01)
- Published: 2021-08-11T22:49:04.000Z
- Modified: 2026-06-17T03:59:08.280Z
- Weaknesses: CWE-427
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- p5-encode_project p5-encode: from 3.05 before 3.12
- fedoraproject fedora: 34; 33

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://metacpan.org/dist/Encode/changes> (third-party-advisory)
- <https://security-tracker.debian.org/tracker/CVE-2021-36770> (third-party-advisory)
- <https://github.com/dankogai/p5-encode/commit/527e482dc70b035d0df4f8c77a00d81f8d775c74> (patch, third-party-advisory)
- <https://github.com/Perl/perl5/commit/c1a937fef07c061600a0078f4cb53fe9c2136bb9> (patch, third-party-advisory)
- <https://news.cpanel.com/unscheduled-tsr-10-august-2021/> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6KOZYD7BH2DNIAEZ2ZL4PJ4QUVQI6Y33/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5NDGQSGMEZ75FJGBKNYC75OTO7TF7XHB/> (vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20210909-0003/> (third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20241108-0002/>

## Sources

- CVE List: [CVE-2021-36770](https://www.cve.org/CVERecord?id=CVE-2021-36770), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2021-36770](https://nvd.nist.gov/vuln/detail/CVE-2021-36770), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-36770 · Whole record: https://cve.day/CVE-2021-36770.json · Rebuilt by cve.day 2026-11-25T22:58:03.138Z
