Privilege escalation via Encode.pm from p5-encode package in Perl



Published: 2021-08-12 | Updated: 2022-12-21
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-36770
CWE-ID CWE-427
Exploitation vector Local
Public exploit N/A
Vulnerable software
Subscribe
Perl
Universal components / Libraries / Scripting languages

Vendor Perl

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Insecure library loading

EUVDB-ID: #VU55804

Risk: Low

CVSSv3.1: 6.1 [CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-36770

CWE-ID: CWE-427 - Uncontrolled Search Path Element

Exploit availability: No

Description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a logic error in the Encode.pm script. A local user can place a malicious library into the current working directory and escalate privileges on the system.

Mitigation

Install update from vendor's website.

Vulnerable software versions

Perl: 5.32.0 - 5.35.2

External links

http://security-tracker.debian.org/tracker/CVE-2021-36770
http://github.com/Perl/perl5/commit/c1a937fef07c061600a0078f4cb53fe9c2136bb9
http://news.cpanel.com/unscheduled-tsr-10-august-2021/
http://metacpan.org/dist/Encode/changes
http://github.com/dankogai/p5-encode/commit/527e482dc70b035d0df4f8c77a00d81f8d775c74


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###