Advisory Details

August 17th, 2016

PCRE Regular Expression Compilation Stack Buffer Overflow Remote Code Execution Vulnerability

ZDI-16-477
ZDI-CAN-3542

CVE ID CVE-2016-3191
CVSS SCORE 5.1, AV:N/AC:H/Au:N/C:P/I:P/A:P
AFFECTED VENDORS PCRE
AFFECTED PRODUCTS PCRE
TREND MICRO CUSTOMER PROTECTION Trend Micro TippingPoint IPS customers are protected against this vulnerability by Digital Vaccine protection filter ID ['24049']. For further product information on the TippingPoint IPS: http://www.tippingpoint.com
VULNERABILITY DETAILS


This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of PCRE. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the compilation of regular expressions. The issue lies in the failure to validate that compilation of sub-groups will occur within the bounds of a fixed-size stack buffer. An attacker can leverage this vulnerability to execute code within the context of the current process.

ADDITIONAL DETAILS PCRE has issued an update to correct this vulnerability. More details can be found at:
https://bugs.exim.org/show_bug.cgi?id=1791
DISCLOSURE TIMELINE
  • 2016-02-09 - Vulnerability reported to vendor
  • 2016-08-17 - Coordinated public release of advisory
CREDIT Wei Lei
Peng Haoxiang and Liu Yang of Nanyang Technological University
BACK TO ADVISORIES