PT-2021-4681

CVE-2021-36770

·

Published

2021-08-09

·

Updated

2026-09-18

Description by

CVSS 2.0
9.3
High
MetricsAV:N/AC:M/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Encode.pm versions 3.05 through 3.11 Perl versions through 5.34.0
Description The issue is related to incorrect path handling in the Encode.pm module of the Perl programming language. This allows an attacker to inject arbitrary code and gain privileges. The exploitation requires an unusual configuration. The problem occurs because the || operator evaluates @INC in a scalar context, resulting in @INC having only an integer value.
Recommendations For Encode.pm versions 3.05 through 3.11, consider disabling the Encode::ConfigLocal library as a temporary workaround until a patch is available. For Perl versions through 5.34.0, update to a version that includes the fix for this issue. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Impacts
Researchers
Vendors
Affected products
Related identifiers
CLEANSTART-2026-QL50169
MGASA-2021-0527
OESA-2022-1549
ROSA-SA-2024-2471
USN-5033-1
Found an issue in the description? Have something to add? Feel free to write us 👾