{"id":"CVE-2022-1586","details":"An out-of-bounds read vulnerability was discovered in the PCRE2 library in the compile_xclass_matchingpath() function of the pcre2_jit_compile.c file. This involves a unicode property matching issue in JIT-compiled regular expressions. The issue occurs because the character was not fully read in case-less matching within JIT.","modified":"2026-02-24T01:23:44.104165Z","published":"2022-05-16T21:15:07.793Z","related":["ALSA-2022:5809","CGA-9qh7-xr76-mmqf","MGASA-2022-0417","SUSE-RU-2022:1883-1","SUSE-SU-2022:1836-1","SUSE-SU-2022:1883-1","SUSE-SU-2022:2334-1","SUSE-SU-2022:2360-1","SUSE-SU-2022:2361-1","openSUSE-SU-2022:2361-1"],"references":[{"type":"ADVISORY","url":"https://github.com/PCRE2Project/pcre2/commit/d4fa336fbcc388f89095b184ba6d99422cfc676c"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20221028-0009/"},{"type":"ADVISORY","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2077976"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2077976%2C"},{"type":"FIX","url":"https://github.com/PCRE2Project/pcre2/commit/50a51cb7e67268e6ad417eb07c9de9bfea5cc55a%2C"},{"type":"FIX","url":"https://github.com/PCRE2Project/pcre2/commit/d4fa336fbcc388f89095b184ba6d99422cfc676c"},{"type":"FIX","url":"https://github.com/PCRE2Project/pcre2/commit/50a51cb7e67268e6ad417eb07c9de9bfea5cc55a"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00014.html"},{"type":"ARTICLE","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DWNG2NS3GINO6LQYUVC4BZLUQPJ3DYHA/"},{"type":"ARTICLE","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JXINO3KKI5DICQ45E2FKD6MKVMGJLEKJ/"},{"type":"ARTICLE","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KAX7767BCUFC7JMDGP7GOQ5GIZCAUGBB/"},{"type":"ARTICLE","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M2GLQQUEY5VFM57CFYXVIFOXN2HUZPDM/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pcre2project/pcre2","events":[{"introduced":"0"},{"fixed":"50a51cb7e67268e6ad417eb07c9de9bfea5cc55a"},{"introduced":"0"},{"fixed":"d4fa336fbcc388f89095b184ba6d99422cfc676c"}]}],"versions":["pcre2-10.38","pcre2-10.38-RC1","pcre2-10.39"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-1586.json","vanir_signatures":[{"digest":{"length":19889,"function_hash":"41300829383723252943297909714980710868"},"signature_version":"v1","source":"https://github.com/pcre2project/pcre2/commit/50a51cb7e67268e6ad417eb07c9de9bfea5cc55a","deprecated":false,"target":{"function":"compile_xclass_matchingpath","file":"src/pcre2_jit_compile.c"},"signature_type":"Function","id":"CVE-2022-1586-2fd20eca"},{"digest":{"threshold":0.9,"line_hashes":["339620945348427712212381388545774342412","124167549058306645007988220067075173415","309395507812416031802042378554291166529","16059173172654235410661150339161003337"]},"signature_version":"v1","source":"https://github.com/pcre2project/pcre2/commit/50a51cb7e67268e6ad417eb07c9de9bfea5cc55a","deprecated":false,"target":{"file":"src/pcre2_jit_test.c"},"signature_type":"Line","id":"CVE-2022-1586-486e13a2"},{"digest":{"threshold":0.9,"line_hashes":["23552422377548235938273787861422704490","309198468026725100566430053289678570367","144930129826622155630856013047779273972","16458643545612116243491192309114094144"]},"signature_version":"v1","source":"https://github.com/pcre2project/pcre2/commit/d4fa336fbcc388f89095b184ba6d99422cfc676c","deprecated":false,"target":{"file":"src/pcre2_jit_compile.c"},"signature_type":"Line","id":"CVE-2022-1586-48cc4103"},{"digest":{"length":19912,"function_hash":"307351967392604966882179120799320127650"},"signature_version":"v1","source":"https://github.com/pcre2project/pcre2/commit/d4fa336fbcc388f89095b184ba6d99422cfc676c","deprecated":false,"target":{"function":"compile_xclass_matchingpath","file":"src/pcre2_jit_compile.c"},"signature_type":"Function","id":"CVE-2022-1586-5fa16e9d"},{"digest":{"threshold":0.9,"line_hashes":["261031969686312999006512549674494490461","168259855099571918664674207254596473730","129755615421991772175711125174276683242","141477962428344099817664558993047106632"]},"signature_version":"v1","source":"https://github.com/pcre2project/pcre2/commit/50a51cb7e67268e6ad417eb07c9de9bfea5cc55a","deprecated":false,"target":{"file":"src/pcre2_jit_compile.c"},"signature_type":"Line","id":"CVE-2022-1586-b26c3441"}]}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"}]}