Out-of-Bounds Affecting pcre package, versions [,8.39)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
10.33% (95th percentile)

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 IDSNYK-UNMANAGED-PCRE-2319168
  • published14 Dec 2021
  • disclosed17 Mar 2016
  • creditUnknown

Introduced: 17 Mar 2016

CVE-2016-3191  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade pcre to version 8.39 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-Bounds. The compile_branch function in pcre_compile.c 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.

CVSS Scores

version 3.1