CVE-2016-3191: pcre
Vulnerability summary
CVE-2016-3191 is a critical (CVSS 9.8) vulnerability in pcre. EPSS estimates a 8.43% chance of exploitation in the next 30 days, higher than 94.9% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 6 · Related 3Timeline
- 17-03-2016PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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 metrics
5 scores · 4 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
8.43%
Chance of exploitation in the next 30 days
Percentile
95%
Versus all other CVEs
30-day change
0.00 pp
From 8.43% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (bugs.exim.org)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Debian2 products
- pcre2< 10.21-1
- pcre3< 2:8.38-2 | < 8.02-1.1+deb6u1
Pcre2 products
Alpine1 product
- pcre< 8.38-r1
Ubuntu1 product
- pcre3< 1:8.31-2ubuntu2.2
4 vendors · 6 products
References
18 links- vcs.pcre.org/pcre2?view=revision&revision=489X Refsource CONFIRM
- www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.htmlX Refsource CONFIRM
- www-01.ibm.com/support/docview.wss?uid=isg3T1023886X Refsource CONFIRM
- bugs.debian.org/815921X Refsource CONFIRM
- bugs.debian.org/815920X Refsource CONFIRM
- bugzilla.redhat.com/show_bug.cgi?id=1311503X Refsource CONFIRM
Show all 18 references
- www.tenable.com/security/tns-2016-18X Refsource CONFIRM
- bto.bluecoat.com/security-advisory/sa128X Refsource CONFIRM
- vcs.pcre.org/pcre?view=revision&revision=1631X Refsource CONFIRM