Home / Pcre / Pcre / CVE-2016-3191
CVE-2016-3191: is it exploited, and which versions of Pcre are affected and fixed?
CVE-2016-3191 is a memory corruption (buffer overflow) vulnerability in Pcre. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 07:38 UTC). Affected: pcre 8.00, pcre 8.01, pcre 8.02 and 16 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Critical (9.8, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 07:38 UTC, CVE record November 19, 2026, 07:19 UTC and NVD November 19, 2026, 08:45 UTC.
What is CVE-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) 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.
From the CVE record by debian, last updated August 5, 2024, 23:47 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| pcre | pcre | 8.00 | application |
| pcre | pcre | 8.01 | application |
| pcre | pcre | 8.02 | application |
| pcre | pcre | 8.10 | application |
| pcre | pcre | 8.11 | application |
| pcre | pcre | 8.12 | application |
| pcre | pcre | 8.13 | application |
| pcre | pcre | 8.20 | application |
| pcre | pcre | 8.21 | application |
| pcre | pcre | 8.30 | application |
| pcre | pcre | 8.31 | application |
| pcre | pcre | 8.32 | application |
| pcre | pcre | 8.33 | application |
| pcre | pcre | 8.34 | application |
| pcre | pcre | 8.35 | application |
| pcre | pcre | 8.36 | application |
| pcre | pcre | 8.37 | application |
| pcre | pcre | 8.38 | application |
| pcre | pcre2 | through 10.21 | application |
NVD analysis (status Modified), last modified June 17, 2026, 00:45 UTC.
How severe is CVE-2016-3191?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2016-3191 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 8.43% probability of exploitation activity in the next 30 days, percentile 95.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Where are the vendor advisories and references?
- 84810 vdb-entry, x_refsource_BID
- http://vcs.pcre.org/pcre2?view=revision&revision=489 x_refsource_CONFIRM
- RHSA-2016:1132 vendor-advisory, x_refsource_REDHAT
- http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html x_refsource_CONFIRM
- http://www-01.ibm.com/support/docview.wss?uid=isg3T1023886 x_refsource_CONFIRM
- RHSA-2016:1025 vendor-advisory, x_refsource_REDHAT
- https://bugs.debian.org/815921 x_refsource_CONFIRM
- https://bugs.debian.org/815920 x_refsource_CONFIRM
- https://bugzilla.redhat.com/show_bug.cgi?id=1311503 x_refsource_CONFIRM
- https://bugs.exim.org/show_bug.cgi?id=1791 x_refsource_CONFIRM
- https://www.tenable.com/security/tns-2016-18 x_refsource_CONFIRM
- https://bto.bluecoat.com/security-advisory/sa128 x_refsource_CONFIRM
- http://vcs.pcre.org/pcre?view=revision&revision=1631 x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- March 15, 2016
- Published
- March 17, 2016, 23:00 UTC
- CVE record updated
- August 5, 2024, 23:47 UTC by debian
- NVD
- Modified, last modified June 17, 2026, 00:45 UTC
- Last checked
- CVE list November 19, 2026, 07:19 UTC; NVD November 19, 2026, 08:45 UTC; KEV December 3, 2026, 07:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Pcre?
- Jun 15, 2020CVE-2019-20838 Pcre: out-of-bounds read
- Jun 15, 2020CVE-2020-14155 Pcre: integer overflow
- Jan 14, 2020CVE-2015-2326 Pcre: out-of-bounds read
- Jan 14, 2020CVE-2015-2325 Pcre: out-of-bounds read
- Mar 17, 2019CVE-2017-16231 Pcre: memory corruption (buffer overflow) disputed
- Jul 11, 2017CVE-2017-11164 Pcre: uncontrolled recursion
- Mar 23, 2017CVE-2017-7246 Pcre: memory corruption (buffer overflow)
- Mar 23, 2017CVE-2017-7245 Pcre: memory corruption (buffer overflow)
Questions about CVE-2016-3191
Is CVE-2016-3191 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 07:38 UTC. FIRST's EPSS gives it a 8.43% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Pcre are affected by CVE-2016-3191?
pcre 8.00, pcre 8.01, pcre 8.02, pcre 8.10, pcre 8.11, pcre 8.12 and 13 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2016-3191?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2016-3191?
Critical (9.8, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2016-3191?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.