ID |
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 (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. |
References |
|
Vulnerable Configurations |
-
cpe:2.3:a:p5-encode_project:p5-encode:3.05:*:*:*:*:*:*:*
cpe:2.3:a:p5-encode_project:p5-encode:3.05:*:*:*:*:*:*:*
-
cpe:2.3:a:p5-encode_project:p5-encode:3.06:*:*:*:*:*:*:*
cpe:2.3:a:p5-encode_project:p5-encode:3.06:*:*:*:*:*:*:*
-
cpe:2.3:a:p5-encode_project:p5-encode:3.07:*:*:*:*:*:*:*
cpe:2.3:a:p5-encode_project:p5-encode:3.07:*:*:*:*:*:*:*
-
cpe:2.3:a:p5-encode_project:p5-encode:3.08:*:*:*:*:*:*:*
cpe:2.3:a:p5-encode_project:p5-encode:3.08:*:*:*:*:*:*:*
-
cpe:2.3:a:p5-encode_project:p5-encode:3.09:*:*:*:*:*:*:*
cpe:2.3:a:p5-encode_project:p5-encode:3.09:*:*:*:*:*:*:*
-
cpe:2.3:a:p5-encode_project:p5-encode:3.10:*:*:*:*:*:*:*
cpe:2.3:a:p5-encode_project:p5-encode:3.10:*:*:*:*:*:*:*
-
cpe:2.3:a:p5-encode_project:p5-encode:3.11:*:*:*:*:*:*:*
cpe:2.3:a:p5-encode_project:p5-encode:3.11:*:*:*:*:*:*:*
-
cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:*
cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:*
-
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
-
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
|
CVSS |
Base: | 6.8 (as of 03-05-2022 - 16:04) |
Impact: | |
Exploitability: | |
|
CWE |
CWE-427 |
CAPEC |
-
Leveraging/Manipulating Configuration File Search Paths
This pattern of attack sees an adversary load a malicious resource into a program's standard path so that when a known command is executed then the system instead executes the malicious component. The adversary can either modify the search path a program uses, like a PATH variable or classpath, or they can manipulate resources on the path to point to their malicious components. J2EE applications and other component based applications that are built from multiple binaries can have very long list of dependencies to execute. If one of these libraries and/or references is controllable by the attacker then application controls can be circumvented by the attacker.
-
Search Order Hijacking
An adversary exploits a weakness in an application's specification of external libraries to exploit the functionality of the loader where the process loading the library searches first in the same directory in which the process binary resides and then in other directories. Exploitation of this preferential search order can allow an attacker to make the loading process load the adversary's rogue library rather than the legitimate library. This attack can be leveraged with many different libraries and with many different loading processes. No forensic trails are left in the system's registry or file system that an incorrect library had been loaded.
|
Access |
Vector | Complexity | Authentication |
NETWORK |
MEDIUM |
NONE |
|
Impact |
Confidentiality | Integrity | Availability |
PARTIAL |
PARTIAL |
PARTIAL |
|
cvss-vector
via4
|
AV:N/AC:M/Au:N/C:P/I:P/A:P
|
Last major update |
03-05-2022 - 16:04 |
Published |
11-08-2021 - 23:15 |
Last modified |
03-05-2022 - 16:04 |