{ "document": { "category": "csaf_security_advisory", "csaf_version": "2.0", "distribution": { "tlp": { "label": "WHITE", "url": "https://www.first.org/tlp/" } }, "lang": "en", "notes": [ { "category": "description", "text": "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.", "title": "Vulnerability Description" } ], "publisher": { "category": "other", "contact_details": "gdt@cpan.org", "name": "giterlizzi", "namespace": "https://github.com/giterlizzi/" }, "references": [ { "category": "self", "summary": "CPANSA-Encode-2021-01 JSON", "url": "https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2021/cpansa-encode-2021-01.json" }, { "category": "external", "summary": "https://github.com/Perl/perl5/commit/c1a937fef07c061600a0078f4cb53fe9c2136bb9", "url": "https://github.com/Perl/perl5/commit/c1a937fef07c061600a0078f4cb53fe9c2136bb9" }, { "category": "external", "summary": "https://github.com/dankogai/p5-encode/commit/527e482dc70b035d0df4f8c77a00d81f8d775c74", "url": "https://github.com/dankogai/p5-encode/commit/527e482dc70b035d0df4f8c77a00d81f8d775c74" }, { "category": "external", "summary": "https://metacpan.org/dist/Encode/changes", "url": "https://metacpan.org/dist/Encode/changes" }, { "category": "external", "summary": "https://news.cpanel.com/unscheduled-tsr-10-august-2021/", "url": "https://news.cpanel.com/unscheduled-tsr-10-august-2021/" }, { "category": "external", "summary": "https://security.netapp.com/advisory/ntap-20210909-0003/", "url": "https://security.netapp.com/advisory/ntap-20210909-0003/" }, { "category": "external", "summary": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5NDGQSGMEZ75FJGBKNYC75OTO7TF7XHB/", "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5NDGQSGMEZ75FJGBKNYC75OTO7TF7XHB/" }, { "category": "external", "summary": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6KOZYD7BH2DNIAEZ2ZL4PJ4QUVQI6Y33/", "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6KOZYD7BH2DNIAEZ2ZL4PJ4QUVQI6Y33/" }, { "category": "external", "summary": "https://security-tracker.debian.org/tracker/CVE-2021-36770", "url": "https://security-tracker.debian.org/tracker/CVE-2021-36770" }, { "category": "external", "summary": "CVE-2021-36770 (NVD)", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-36770" } ], "title": "Encode vulnerability", "tracking": { "current_release_date": "2021-07-17T00:00:00", "generator": { "engine": { "name": "CSAF Perl Toolkit", "version": "0.26" } }, "id": "CPANSA-Encode-2021-01", "initial_release_date": "2021-07-17T00:00:00", "revision_history": [ { "date": "2021-07-17T00:00:00", "number": "1", "summary": "First release" } ], "status": "final", "version": "1" } }, "product_tree": { "branches": [ { "branches": [ { "category": "product_version_range", "name": "vers:cpan/>=3.05", "product": { "name": "Encode greater than or equal 3.05", "product_id": "CSAFPID-0001" } }, { "category": "product_version_range", "name": "vers:cpan/<=3.11", "product": { "name": "Encode less than or equal 3.11", "product_id": "CSAFPID-0002" } }, { "category": "product_version_range", "name": "vers:cpan/>3.11", "product": { "name": "Encode greater than 3.11", "product_id": "CSAFPID-0003" } } ], "category": "product_name", "name": "Encode" } ] }, "vulnerabilities": [ { "cve": "CVE-2021-36770", "cwe": { "id": "CWE-427", "name": "Uncontrolled Search Path Element" }, "notes": [ { "category": "description", "text": "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.", "title": "Vulnerability Description" } ], "product_status": { "fixed": [ "CSAFPID-0003" ], "known_affected": [ "CSAFPID-0001", "CSAFPID-0002" ] }, "scores": [ { "cvss_v2": { "baseScore": 6.8, "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "version": "2.0" }, "cvss_v3": { "baseScore": 7.8, "baseSeverity": "HIGH", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "version": "3.1" }, "products": [ "CSAFPID-0001", "CSAFPID-0002" ] } ] } ] }