CWE
119
Advisory Published
CVE Published
Updated

CVE-2016-3191: Buffer Overflow

First published: Wed Feb 24 2016(Updated: )

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.

Credit: security@debian.org

Affected SoftwareAffected VersionHow to fix
redhat/pcre<8.39
8.39
redhat/pcre2<10.22
10.22
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
PCRE2 (Perl Compatible Regular Expressions)<=10.21

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2016-3191?

    CVE-2016-3191 has a critical severity level, allowing for remote code execution or denial of service attacks.

  • How do I fix CVE-2016-3191?

    To fix CVE-2016-3191, update to PCRE version 8.39 or PCRE2 version 10.22 or later.

  • What software is affected by CVE-2016-3191?

    CVE-2016-3191 affects PCRE versions prior to 8.39 and PCRE2 versions prior to 10.22.

  • Can CVE-2016-3191 be exploited remotely?

    Yes, CVE-2016-3191 can be exploited remotely through specially crafted patterns.

  • What vulnerabilities does CVE-2016-3191 relate to?

    CVE-2016-3191 relates to vulnerabilities in pattern handling, specifically involving the (*ACCEPT) substring.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203