Uncontrolled Search Path Element
CVE-2021-36770
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 versions 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.
- LOW
- LOCAL
- HIGH
- UNCHANGED
- REQUIRED
- NONE
- HIGH
- HIGH
CWE-427 - Uncontrolled Search Path Element
The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.
References
Advisory Timeline
- Published