CVE-2021-36770P5-encode Project P5-encode
High 7.8
Follow: this CVE · P5-encode Project · P5-encode Project P5-encode We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- Yes
- Published
- Aug 11, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-427
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for P5-encode.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| p5-encode_project | p5-encode | ≥ 3.05 < 3.12 |
| fedoraproject | fedora | 34 |
| fedoraproject | fedora | 33 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- metacpan.org Third Party Advisory
- news.cpanel.com Third Party Advisory
- security-tracker.debian.org Third Party Advisory
- security.netapp.com Third Party Advisory
- security.netapp.com