Algorithmic Complexity Affecting pcre package, versions <0:8.21-7.8.amzn1


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
10.02% (93rd 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-AMZN201803-PCRE-6038195
  • published28 Oct 2023
  • disclosed2 Dec 2015

Introduced: 2 Dec 2015

CVE-2015-8391  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2018.03 pcre to version 0:8.21-7.8.amzn1 or higher.
This issue was patched in ALAS-2018-1076.

NVD Description

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

The pcre_compile function in pcre_compile.c in PCRE before 8.38 mishandles certain [: nesting, which allows remote attackers to cause a denial of service (CPU consumption) or possibly have unspecified other impact via a crafted regular expression, as demonstrated by a JavaScript RegExp object encountered by Konqueror.

CVSS Base Scores

version 3.1