{"id":"ALPINE-CVE-2021-36770","details":"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.","modified":"2026-03-09T01:21:40.046586Z","published":"2021-08-11T23:15:07.707Z","upstream":["CVE-2021-36770"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-36770"}],"affected":[{"package":{"name":"perl","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.34.0-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.34.0-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.34.0-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.34.0-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.34.0-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.34.0-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.34.0-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.34.0-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.34.0-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl-encode","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/perl-encode?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12-r0"}]}],"versions":["2.70-r0","2.75-r0","2.76-r0","2.76-r1","2.86-r0","2.88-r0","2.88-r1","2.88-r2","2.93-r0","2.98-r0","2.98-r1","3.01-r0","3.01-r1","3.02-r0","3.02-r1","3.03-r0","3.04-r0","3.05-r0","3.06-r0","3.07-r0","3.07-r1","3.08-r0","3.09-r0","3.10-r0","3.10-r1","3.11-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl-encode","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/perl-encode?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12-r0"}]}],"versions":["2.70-r0","2.75-r0","2.76-r0","2.76-r1","2.86-r0","2.88-r0","2.88-r1","2.88-r2","2.93-r0","2.98-r0","2.98-r1","3.01-r0","3.01-r1","3.02-r0","3.02-r1","3.03-r0","3.04-r0","3.05-r0","3.06-r0","3.07-r0","3.07-r1","3.08-r0","3.09-r0","3.10-r0","3.10-r1","3.11-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl-encode","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/perl-encode?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12-r0"}]}],"versions":["2.70-r0","2.75-r0","2.76-r0","2.76-r1","2.86-r0","2.88-r0","2.88-r1","2.88-r2","2.93-r0","2.98-r0","2.98-r1","3.01-r0","3.01-r1","3.02-r0","3.02-r1","3.03-r0","3.04-r0","3.05-r0","3.06-r0","3.07-r0","3.07-r1","3.08-r0","3.09-r0","3.10-r0","3.10-r1","3.11-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl-encode","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/perl-encode?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12-r0"}]}],"versions":["2.70-r0","2.75-r0","2.76-r0","2.76-r1","2.86-r0","2.88-r0","2.88-r1","2.88-r2","2.93-r0","2.98-r0","2.98-r1","3.01-r0","3.01-r1","3.02-r0","3.02-r1","3.03-r0","3.04-r0","3.05-r0","3.06-r0","3.07-r0","3.07-r1","3.08-r0","3.09-r0","3.10-r0","3.10-r1","3.11-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl-encode","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/perl-encode?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12-r0"}]}],"versions":["2.70-r0","2.75-r0","2.76-r0","2.76-r1","2.86-r0","2.88-r0","2.88-r1","2.88-r2","2.93-r0","2.98-r0","2.98-r1","3.01-r0","3.01-r1","3.02-r0","3.02-r1","3.03-r0","3.04-r0","3.05-r0","3.06-r0","3.07-r0","3.07-r1","3.08-r0","3.09-r0","3.10-r0","3.10-r1","3.11-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl-encode","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/perl-encode?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12-r0"}]}],"versions":["2.70-r0","2.75-r0","2.76-r0","2.76-r1","2.86-r0","2.88-r0","2.88-r1","2.88-r2","2.93-r0","2.98-r0","2.98-r1","3.01-r0","3.01-r1","3.02-r0","3.02-r1","3.03-r0","3.04-r0","3.05-r0","3.06-r0","3.07-r0","3.07-r1","3.08-r0","3.09-r0","3.10-r0","3.10-r1","3.11-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl-encode","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/perl-encode?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12-r0"}]}],"versions":["2.70-r0","2.75-r0","2.76-r0","2.76-r1","2.86-r0","2.88-r0","2.88-r1","2.88-r2","2.93-r0","2.98-r0","2.98-r1","3.01-r0","3.01-r1","3.02-r0","3.02-r1","3.03-r0","3.04-r0","3.05-r0","3.06-r0","3.07-r0","3.07-r1","3.08-r0","3.09-r0","3.10-r0","3.10-r1","3.11-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl-encode","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/perl-encode?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12-r0"}]}],"versions":["2.70-r0","2.75-r0","2.76-r0","2.76-r1","2.86-r0","2.88-r0","2.88-r1","2.88-r2","2.93-r0","2.98-r0","2.98-r1","3.01-r0","3.01-r1","3.02-r0","3.02-r1","3.03-r0","3.04-r0","3.05-r0","3.06-r0","3.07-r0","3.07-r1","3.08-r0","3.09-r0","3.10-r0","3.10-r1","3.11-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}},{"package":{"name":"perl-encode","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/perl-encode?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12-r0"}]}],"versions":["2.70-r0","2.75-r0","2.76-r0","2.76-r1","2.86-r0","2.88-r0","2.88-r1","2.88-r2","2.93-r0","2.98-r0","2.98-r1","3.01-r0","3.01-r1","3.02-r0","3.02-r1","3.03-r0","3.04-r0","3.05-r0","3.06-r0","3.07-r0","3.07-r1","3.08-r0","3.09-r0","3.10-r0","3.10-r1","3.11-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-36770.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}