cve.bz

CVE-2021-36770 Uncontrolled Search Path Element

7.8 highEPSS 1.4%Fix available

High (7.8). EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-427 Uncontrolled Search Path Element
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-36770 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-36770?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-36770?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-36770 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
p5-encode_project:p5-encodefrom 3.05 before 3.12
fedoraproject:fedora34
fedoraproject:fedora33

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libencode-perl3.08-2DEBIAN-CVE-2021-36770
Debian12, 13, 14perl5.32.1-5DEBIAN-CVE-2021-36770
Ubuntu16.04:LTS, 22.04:LTS, 24.04:LTS and 3 morelibencode-perlno fix listedUBUNTU-CVE-2021-36770
Ubuntu22.04:LTSperl5.32.1-3ubuntu3UBUNTU-CVE-2021-36770
Alpinev3.15, v3.16, v3.17 and 7 moreperl5.34.0-r1ALPINE-CVE-2021-36770
Alpinev3.15, v3.16, v3.17 and 7 moreperl-encode3.12-r0ALPINE-CVE-2021-36770

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Enterprise Linux 7 and 8 (including Software Collection) provide older versions of Perl and the Encode library, which are not affected by this flaw.

Red Hat's mitigation

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7perl-EncodeNot affected
Red Hat Enterprise Linux 8perl:5.30/perl-EncodeNot affected
Red Hat Enterprise Linux 8perl-EncodeNot affected
Red Hat Enterprise Linux 9perl-EncodeNot affected
Red Hat Software Collectionsrh-perl526-perl-EncodeNot affected
Red Hat Software Collectionsrh-perl530-perl-EncodeNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-36770.

Attack patterns (CAPEC)

  • CAPEC-38 Leveraging/Manipulating Configuration File Search Paths Likelihood: High · Severity: Very High
  • CAPEC-471 Search Order Hijacking Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON