CVE-2016-3191Pcre
Critical 9.8 No auth needed
Follow: this CVE · Pcre · Pcre We alert you by email or Slack (account required).
- Priority
- 75
- CVSS 3.0
- 9.8
- EPSS
- 8.4% probability of exploitation in 30 days · percentile 96
- Auth required
- No
- Published
- Mar 17, 2016
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-119
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Pcre.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pcre | pcre | 8.00 |
| pcre | pcre | 8.01 |
| pcre | pcre | 8.02 |
| pcre | pcre | 8.10 |
| pcre | pcre | 8.11 |
| pcre | pcre | 8.12 |
| pcre | pcre | 8.13 |
| pcre | pcre | 8.20 |
| pcre | pcre | 8.21 |
| pcre | pcre | 8.30 |
| pcre | pcre | 8.31 |
| pcre | pcre | 8.32 |
| pcre | pcre | 8.33 |
| pcre | pcre | 8.34 |
| pcre | pcre | 8.35 |
| pcre | pcre | 8.36 |
| pcre | pcre | 8.37 |
| pcre | pcre | 8.38 |
| pcre | pcre2 | ≤ 10.21 |
Official sources
References
Links published by the sources. Open them with care.