Vulnerabilities · 2016 · Pcre
CVE-2016-3191
Pcre vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Pcre, Pcre2. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Pcre runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.exim.org/show_bug.cgi?id=1791 · Exploit
- rhn.redhat.com/errata/RHSA-2016-1025.html
- vcs.pcre.org/pcre2?view=revision&revision=489
- vcs.pcre.org/pcre?view=revision&revision=1631
- www-01.ibm.com/support/docview.wss?uid=isg3T1023886
- www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
- www.securityfocus.com/bid/84810
- access.redhat.com/errata/RHSA-2016:1132
- nvd.nist.gov/vuln/detail/CVE-2016-3191
- cve.org/CVERecord?id=CVE-2016-3191
More vulnerabilities in Pcre products
CVE-2025-58050CVE-2022-41409CVE-2022-1587CVE-2022-1586CVE-2020-14155CVE-2019-20838CVE-2019-20454CVE-2017-16231All 57
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.