CVE-2016-3191
published 2016-03-17CVE-2016-3191: 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)…
PriorityP359critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EPSS
8.43%
94.4th percentile
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.
Affected
25 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | pcre2 | < pcre2 10.21-1 (bookworm) | pcre2 10.21-1 (bookworm) |
| debian | pcre3 | < pcre2 10.21-1 (bookworm) | pcre2 10.21-1 (bookworm) |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre | — | — |
| pcre | pcre2 | <= 10.21 | — |
| pcre | pcre2 | >= 0 < 10.21-1 | 10.21-1 |
| pcre | pcre2 | >= 0 < 10.21-1 | 10.21-1 |
| pcre | pcre2 | >= 0 < 10.21-1 | 10.21-1 |
| pcre | pcre2 | >= 0 < 10.21-1 | 10.21-1 |
CVSS provenance
nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_redhat9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-68wg-f3j9-hgmv: The compile_branch function in pcre_compile
ghsa_unreviewed·2022-05-14
CVE-2016-3191 [CRITICAL] CWE-119 GHSA-68wg-f3j9-hgmv: The compile_branch function in pcre_compile
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.
OSV
CVE-2016-3191: The compile_branch function in pcre_compile
osv·2016-03-17·CVSS 9.8
CVE-2016-3191 [CRITICAL] CVE-2016-3191: The compile_branch function in pcre_compile
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.
Ubuntu
PCRE vulnerabilities
vendor_ubuntu·2016-03-29
CVE-2014-9769 PCRE vulnerabilities
Title: PCRE vulnerabilities
Summary: PCRE could be made to crash or run programs if it processed a
specially-crafted regular expression.
It was discovered that PCRE incorrectly handled certain regular
expressions. A remote attacker could use this issue to cause applications
using PCRE to crash, resulting in a denial of service, or possibly execute
arbitrary code.
Instructions: After a standard system update you need to restart applications using PCRE,
such as the Apache HTTP server and Nginx, to make all the necessary
changes.
Red Hat
pcre: workspace overflow for (*ACCEPT) with deeply nested parentheses (8.39/13, 10.22/12)
vendor_redhat·2016-02-09·CVSS 9.8
CVE-2016-3191 [CRITICAL] CWE-121 pcre: workspace overflow for (*ACCEPT) with deeply nested parentheses (8.39/13, 10.22/12)
pcre: workspace overflow for (*ACCEPT) with deeply nested parentheses (8.39/13, 10.22/12)
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.
Package: pcre (Red Hat Directory Server 8) - Not affected
Package: pcre (Red Hat Enterprise Linux 5) - Not affected
Package: glib2 (Red Hat Enterprise Linux 6) - Not affected
Package: pcre (Red Hat Enterprise Linux 6) - Not affected
Package: glib2 (Red Hat En
Debian
CVE-2016-3191: pcre2 - The compile_branch function in pcre_compile.c in PCRE 8.x before 8.39 and pcre2_...
vendor_debian·2016·CVSS 9.8
CVE-2016-3191 [CRITICAL] CVE-2016-3191: pcre2 - The compile_branch function in pcre_compile.c in PCRE 8.x before 8.39 and pcre2_...
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.
Scope: local
bookworm: resolved (fixed in 10.21-1)
bullseye: resolved (fixed in 10.21-1)
forky: resolved (fixed in 10.21-1)
sid: resolved (fixed in 10.21-1)
trixie: resolved (fixed in 10.21-1)
No detection rules found.
No public exploits indexed.
http://rhn.redhat.com/errata/RHSA-2016-1025.htmlhttp://vcs.pcre.org/pcre2?view=revision&revision=489http://vcs.pcre.org/pcre?view=revision&revision=1631http://www-01.ibm.com/support/docview.wss?uid=isg3T1023886http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.htmlhttp://www.securityfocus.com/bid/84810https://access.redhat.com/errata/RHSA-2016:1132https://bto.bluecoat.com/security-advisory/sa128https://bugs.debian.org/815920https://bugs.debian.org/815921https://bugs.exim.org/show_bug.cgi?id=1791https://bugzilla.redhat.com/show_bug.cgi?id=1311503https://www.tenable.com/security/tns-2016-18http://rhn.redhat.com/errata/RHSA-2016-1025.htmlhttp://vcs.pcre.org/pcre2?view=revision&revision=489http://vcs.pcre.org/pcre?view=revision&revision=1631http://www-01.ibm.com/support/docview.wss?uid=isg3T1023886http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.htmlhttp://www.securityfocus.com/bid/84810https://access.redhat.com/errata/RHSA-2016:1132https://bto.bluecoat.com/security-advisory/sa128https://bugs.debian.org/815920https://bugs.debian.org/815921https://bugs.exim.org/show_bug.cgi?id=1791https://bugzilla.redhat.com/show_bug.cgi?id=1311503https://www.tenable.com/security/tns-2016-18
2016-03-17
Published