BreachSpiderVerified, not vibes

CVE-2021-36770 in Fedoraproject Fedora and 2 more products

High 7.8

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). T...

Affects 3 products from 3 vendors. Facts below cite their sources.

CVSS 3.17.8
EPSS1.4%
EPSS percentile73th
FixUnknown

Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Fedoraproject Fedora 33 34
P5-Encode Project P5-Encode ≥ 3.05, < 3.12

Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Perl Perl

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-36770
BreachSpider IDBS-2021-GLOBAL-297517-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published2021-08-11
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-427: CWE-427

Related attack patterns (CAPEC)

CAPEC-38 Leveraging/Manipulating Configuration File Search Paths via CWE-427

CAPEC-471 Search Order Hijacking via CWE-427

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2021-36770 in Encode.pm through Perl 5.34.0 allows local users to gain privileges via a Trojan horse Encode::ConfigLocal library, which can preempt dynamic module loading.

The vulnerability arises from the || operator evaluating @INC in a scalar context, enabling a local user to place a malicious Encode::ConfigLocal library in the current working directory to gain elevated privileges.

Questions

What is CVE-2021-36770?

CVE-2021-36770 in Encode.pm through Perl 5.34.0 allows local users to gain privileges via a Trojan horse Encode::ConfigLocal library, which can preempt dynamic module loading.

What is the CVSS score for CVE-2021-36770?

CVE-2021-36770 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 1.4%.

Is CVE-2021-36770 actively exploited?

No confirmed active exploitation of CVE-2021-36770 as of 2026-09-25.

How do I remediate CVE-2021-36770?

Priority: MEDIUM.

What systems are affected by CVE-2021-36770?

CVE-2021-36770 affects Fedoraproject Fedora; P5-Encode Project P5-Encode.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Fedoraproject","product":"Fedora","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.