{"id":"UBUNTU-CVE-2016-3191","details":"The compile_branch function in pcre_compile.c in PCRE 8.x before 8.39 and pcre2_compile.c in PCRE2 before 10.22 mishandles patterns containing an (*ACCEPT) substring in conjunction with nested parentheses, which allows remote attackers to execute arbitrary code or cause a denial of service (stack-based buffer overflow) via a crafted regular expression, as demonstrated by a JavaScript RegExp object encountered by Konqueror, aka ZDI-CAN-3542.","modified":"2026-04-22T11:08:07.887006Z","published":"2016-03-17T00:00:00Z","related":["USN-2943-1"],"upstream":["CVE-2016-3191"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2016-3191"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-2943-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2016-3191"}],"affected":[{"package":{"name":"pcre3","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/pcre3@1:8.31-2ubuntu2.2?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:8.31-2ubuntu2.2"}]}],"versions":["1:8.31-2","1:8.31-2ubuntu2","1:8.31-2ubuntu2.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1:8.31-2ubuntu2.2","binary_name":"libpcre3"},{"binary_version":"1:8.31-2ubuntu2.2","binary_name":"libpcrecpp0"},{"binary_version":"1:8.31-2ubuntu2.2","binary_name":"pcregrep"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-3191.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}