{"id":"UBUNTU-CVE-2015-8381","details":"The compile_regex function in pcre_compile.c in PCRE before 8.38 and pcre2_compile.c in PCRE2 before 10.2x mishandles the /(?J:(?|(:(?|(?'R')(\\k'R')|((?'R')))H'Rk'Rf)|s(?'R'))))/ and /(?J:(?|(:(?|(?'R')(\\z(?|(?'R')(\\k'R')|((?'R')))k'R')|((?'R')))H'Ak'Rf)|s(?'R')))/ patterns, and related patterns with certain group references, which allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via a crafted regular expression, as demonstrated by a JavaScript RegExp object encountered by Konqueror.","modified":"2026-01-30T01:56:51.655967Z","published":"2015-12-01T00:00:00Z","withdrawn":"2025-07-18T16:43:18Z","related":["USN-2943-1"],"upstream":["CVE-2015-8381"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2015-8381"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2015/08/24/1"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2015/08/05/3"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2015/11/29/1"},{"type":"REPORT","url":"http://vcs.pcre.org/pcre/code/trunk/ChangeLog?view=markup"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-2943-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2015-8381"}],"affected":[{"package":{"name":"pcre2","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/pcre2@10.20-3?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.20-3"}]}],"versions":["10.20-1","10.20-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libpcre2-16-0","binary_version":"10.20-3"},{"binary_name":"libpcre2-16-0-dbgsym","binary_version":"10.20-3"},{"binary_name":"libpcre2-32-0","binary_version":"10.20-3"},{"binary_name":"libpcre2-32-0-dbgsym","binary_version":"10.20-3"},{"binary_name":"libpcre2-8-0","binary_version":"10.20-3"},{"binary_name":"libpcre2-8-0-dbgsym","binary_version":"10.20-3"},{"binary_name":"libpcre2-dbg","binary_version":"10.20-3"},{"binary_name":"libpcre2-dev","binary_version":"10.20-3"},{"binary_name":"libpcre2-dev-dbgsym","binary_version":"10.20-3"},{"binary_name":"libpcre2-posix0","binary_version":"10.20-3"},{"binary_name":"libpcre2-posix0-dbgsym","binary_version":"10.20-3"},{"binary_name":"pcre2-utils","binary_version":"10.20-3"},{"binary_name":"pcre2-utils-dbgsym","binary_version":"10.20-3"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2015/UBUNTU-CVE-2015-8381.json"}},{"package":{"name":"pcre3","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/pcre3@2:8.38-3?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:8.38-3"}]}],"versions":["2:8.35-7.1ubuntu1","2:8.38-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libpcre16-3","binary_version":"2:8.38-3"},{"binary_name":"libpcre16-3-dbgsym","binary_version":"2:8.38-3"},{"binary_name":"libpcre3","binary_version":"2:8.38-3"},{"binary_name":"libpcre3-dbg","binary_version":"2:8.38-3"},{"binary_name":"libpcre3-dbgsym","binary_version":"2:8.38-3"},{"binary_name":"libpcre3-dev","binary_version":"2:8.38-3"},{"binary_name":"libpcre3-dev-dbgsym","binary_version":"2:8.38-3"},{"binary_name":"libpcre3-udeb","binary_version":"2:8.38-3"},{"binary_name":"libpcre3-udeb-dbgsym","binary_version":"2:8.38-3"},{"binary_name":"libpcre32-3","binary_version":"2:8.38-3"},{"binary_name":"libpcre32-3-dbgsym","binary_version":"2:8.38-3"},{"binary_name":"libpcrecpp0v5","binary_version":"2:8.38-3"},{"binary_name":"libpcrecpp0v5-dbgsym","binary_version":"2:8.38-3"},{"binary_name":"pcregrep","binary_version":"2:8.38-3"},{"binary_name":"pcregrep-dbgsym","binary_version":"2:8.38-3"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2015/UBUNTU-CVE-2015-8381.json"}}],"schema_version":"1.7.3","severity":[{"type":"Ubuntu","score":"low"}]}