CVE-2016-3191

Summary

CVECVE-2016-3191
StatePUBLISHED
Assignerdebian
Source PriorityCVE Program / NVD first with legacy fallback
Published2016-03-17 23:59:01 UTC
Updated2026-05-06 22:30:45 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v3.0 9.8 CRITICAL from [email protected]

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

Problem Types: CWE-119 | n/a


VersionSourceTypeScoreSeverityVector
3.0[email protected]Primary9.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2.0[email protected]Primary7.5AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS v3.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial

AV:N/AC:L/Au:N/C:P/I:P/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Pcre Pcre 8.00 All All All
Application Pcre Pcre 8.01 All All All
Application Pcre Pcre 8.02 All All All
Application Pcre Pcre 8.10 All All All
Application Pcre Pcre 8.11 All All All
Application Pcre Pcre 8.12 All All All
Application Pcre Pcre 8.13 All All All
Application Pcre Pcre 8.20 All All All
Application Pcre Pcre 8.21 All All All
Application Pcre Pcre 8.30 All All All
Application Pcre Pcre 8.31 All All All
Application Pcre Pcre 8.32 All All All
Application Pcre Pcre 8.33 All All All
Application Pcre Pcre 8.34 All All All
Application Pcre Pcre 8.35 All All All
Application Pcre Pcre 8.36 All All All
Application Pcre Pcre 8.37 All All All
Application Pcre Pcre 8.38 All All All
Application Pcre Pcre2 All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
#815921 - pcre3: CVE-2016-3191: workspace overflow for (*ACCEPT) with deeply nested parentheses - Debian Bug report logs af854a3a-2127-422b-91ae-364da2661108 bugs.debian.org
Bug 1311503 – CVE-2016-3191 pcre: workspace overflow for (*ACCEPT) with deeply nested parentheses (8.39/13, 10.22/12) af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com
Broadcom Support Portal af854a3a-2127-422b-91ae-364da2661108 bto.bluecoat.com
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 rhn.redhat.com
[R7] LCE 4.8.1 Fixes Multiple Vulnerabilities - Security Advisory | Tenable™ af854a3a-2127-422b-91ae-364da2661108 www.tenable.com
Bug 1791 – ZDI-CAN-3542: New Vulnerability Report af854a3a-2127-422b-91ae-364da2661108 bugs.exim.org Exploit
IBM Security Bulletin: Multiple vulnerabilities in PCRE affect PowerKVM - United States af854a3a-2127-422b-91ae-364da2661108 www-01.ibm.com
[pcre2] Revision 489 af854a3a-2127-422b-91ae-364da2661108 vcs.pcre.org
[pcre] Revision 1631 af854a3a-2127-422b-91ae-364da2661108 vcs.pcre.org
#815920 - pcre2: CVE-2016-3191: workspace overflow for (*ACCEPT) with deeply nested parentheses - Debian Bug report logs af854a3a-2127-422b-91ae-364da2661108 bugs.debian.org
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
Oracle Linux Bulletin - April 2016 af854a3a-2127-422b-91ae-364da2661108 www.oracle.com
PCRE CVE-2016-3191 Buffer Overflow Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report