Stack-based Buffer Overflow Affecting pcre package, versions <0:8.32-15.el7_2.1


high

Snyk CVSS

    Attack Complexity Low
    User Interaction Required

    Threat Intelligence

    EPSS 15.14% (96th percentile)
Expand this section
NVD
9.8 critical
Expand this section
Red Hat
6.3 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-CENTOS7-PCRE-2065849
  • published 26 Jul 2021
  • disclosed 9 Feb 2016

How to fix?

Upgrade Centos:7 pcre to version 0:8.32-15.el7_2.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream pcre package and not the pcre package as distributed by Centos. See How to fix? for Centos:7 relevant fixed versions and status.

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.