# CVE-2016-3191

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2016-03-17 · Modified: 2024-08-05
- Aliases: ALPINE-CVE-2016-3191, UBUNTU-CVE-2016-3191, DEBIAN-CVE-2016-3191, DLA-441-1
- Record: https://cvemate.com/vulnerability/CVE-2016-3191 · JSON: https://cvemate.com/vulnerability/CVE-2016-3191/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 8.43%, percentile 95.14%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- alpine pcre (Alpine Linux): \< 8.38-r1
- debian pcre2 (Debian): \< 10.21-1
- debian pcre3 (Debian): \< 2:8.38-2 \| \< 8.02-1.1+deb6u1
- ubuntu pcre3 (Ubuntu): \< 1:8.31-2ubuntu2.2
- pcre pcre: 8.00 \| 8.01 \| 8.02 \| 8.10 \| 8.11 \| 8.12 \| 8.13 \| 8.20 \| 8.21 \| 8.30 \| 8.31 \| 8.32 \| 8.33 \| 8.34 \| 8.35 \| 8.36 \| 8.37 \| 8.38
- pcre pcre2: ≤ 10.21

## References

- <http://www.securityfocus.com/bid/84810>
- <http://vcs.pcre.org/pcre2?view=revision&revision=489>
- <https://access.redhat.com/errata/RHSA-2016:1132>
- <http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html>
- <http://www-01.ibm.com/support/docview.wss?uid=isg3T1023886>
- <http://rhn.redhat.com/errata/RHSA-2016-1025.html>
- <https://bugs.debian.org/815921>
- <https://bugs.debian.org/815920>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1311503>
- <https://bugs.exim.org/show_bug.cgi?id=1791>
- <https://www.tenable.com/security/tns-2016-18>
- <https://bto.bluecoat.com/security-advisory/sa128>
- <http://vcs.pcre.org/pcre?view=revision&revision=1631>
- <https://security.alpinelinux.org/vuln/CVE-2016-3191>
- <https://ubuntu.com/security/CVE-2016-3191>
- <https://ubuntu.com/security/notices/USN-2943-1>
- <https://www.cve.org/CVERecord?id=CVE-2016-3191>
- <https://security-tracker.debian.org/tracker/CVE-2016-3191>

---

Data as of 2026-12-05T13:05:12.468Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
