← Vulnerability feed

Vulnerability record · CVE-2016-3191 · published 17 March 2016

CVE-2016-3191: Pcre memory buffer overflow vulnerability

Pcre · Pcre

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.

9.8 CVSS 3.0 Critical EPSS 8.4% · top 5.2% CWE-119 · Memory buffer overflow
9.8CVSS 3.0 base score, v2 7.5
8.4%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
26References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

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.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2016-3191 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2017-8786Pcre2 memory buffer overflow vulnerabilitypcre2test.c in PCRE2 10.23 allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impac…EPSS 4.1%9.8CVE-2017-8399Pcre2 memory buffer overflow vulnerabilityPCRE2 before 10.30 has an out-of-bounds write caused by a stack-based buffer overflow in pcre2_match.c, related to a "pattern with very many captures…EPSS 3.1%9.8CVE-2015-3210Pcre2 out-of-bounds write vulnerabilityHeap-based buffer overflow in PCRE 8.34 through 8.37 and PCRE2 10.10 allows remote attackers to execute arbitrary code via a crafted regular expressi…EPSS 9.2%9.8CVE-2016-1283Pcre memory buffer overflow vulnerabilityThe pcre_compile2 function in pcre_compile.c in PCRE 8.38 mishandles the /((?:F?+(?:^(?(R)a+\"){99}-))(?J)(?'R'(?'R'<((?'RR'(?'R'\){97)?J)?J)(?'R'(?'…EPSS 7.8%9.8CVE-2015-8391Pcre memory buffer overflow vulnerabilityThe pcre_compile function in pcre_compile.c in PCRE before 8.38 mishandles certain [: nesting, which allows remote attackers to cause a denial of ser…EPSS 6.4%9.1CVE-2022-1586Pcre2 out-of-bounds read vulnerabilityAn out-of-bounds read vulnerability was discovered in the PCRE2 library in the compile_xclass_matchingpath() function of the pcre2_jit_compile.c file…EPSS 3.4%9.1CVE-2022-1587Pcre2 out-of-bounds read vulnerabilityAn out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of the pcre2_jit_compile.c file. Th…EPSS 2.8%9.1CVE-2015-5073Ibm powerkvm memory buffer overflow vulnerabilityHeap-based buffer overflow in the find_fixedlength function in pcre_compile.c in PCRE before 8.38 allows remote attackers to cause a denial of servic…EPSS 7.7%

Source: NIST National Vulnerability Database (record CVE-2016-3191), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.