CVE-2021-36770 Code injection in n/a

High 7.8 Published Updated

Local attackers can gain privileges by placing a malicious library in the current directory, exploiting a Perl module loading flaw in unusual configurations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-36770?

CVE-2021-36770 is a high-severity code injection vulnerability in Fedoraproject Fedora, published on 11 Aug 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-427

Which versions are affected by CVE-2021-36770?

It affects 2 products.

Products include Fedoraproject Fedora, P5-Encode Project P5-Encode.

How do I fix CVE-2021-36770?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-36770 being exploited?

There is no known exploitation of CVE-2021-36770 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2021-36770, CLEANSTART-2026-QL50169, DEBIAN-CVE-2021-36770, GHSA-3gfh-9hwx-r3vr, MGASA-2021-0527, OESA-2022-1549 and 1 more.

Is CVE-2021-36770 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free