Vulnerability Name:

CVE-2021-36770 (CCN-207932)

Assigned:2021-08-09
Published:2021-08-09
Updated:2022-05-03
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.
CVSS v3 Severity:7.8 High (CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
6.8 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
7.8 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
6.8 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:6.8 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
6.8 Medium (CCN CVSS v2 Vector: AV:L/AC:L/Au:S/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-427
Vulnerability Consequences:Gain Privileges
References:Source: MITRE
Type: CNA
CVE-2021-36770

Source: XF
Type: UNKNOWN
encode-cve202136770-priv-esc(207932)

Source: CCN
Type: Encode GIT Repository
version 3.12 to address CVE-2021-36770

Source: CONFIRM
Type: Patch, Third Party Advisory
https://github.com/dankogai/p5-encode/commit/527e482dc70b035d0df4f8c77a00d81f8d775c74

Source: CONFIRM
Type: Patch, Third Party Advisory
https://github.com/Perl/perl5/commit/c1a937fef07c061600a0078f4cb53fe9c2136bb9

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2021-44c65203cc

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2021-92e07de1dd

Source: CONFIRM
Type: Third Party Advisory
https://metacpan.org/dist/Encode/changes

Source: CONFIRM
Type: Third Party Advisory
https://news.cpanel.com/unscheduled-tsr-10-august-2021/

Source: MISC
Type: Third Party Advisory
https://security-tracker.debian.org/tracker/CVE-2021-36770

Source: CONFIRM
Type: Third Party Advisory
https://security.netapp.com/advisory/ntap-20210909-0003/

Vulnerable Configuration:Configuration 1:
  • cpe:/a:p5-encode_project:p5-encode:*:*:*:*:*:*:*:* (Version >= 3.05 and < 3.12)
  • AND
  • cpe:/a:perl:perl:*:*:*:*:*:*:*:* (Version <= 5.34.0)

  • Configuration 2:
  • cpe:/o:fedoraproject:fedora:34:*:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/o:fedoraproject:fedora:33:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    p5-encode_project p5-encode *
    perl perl *
    fedoraproject fedora 34
    fedoraproject fedora 33