Denial of Service (DoS) Affecting pcre package, versions [,7.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.49% (83rd 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-2319150
  • published14 Dec 2021
  • disclosed7 Nov 2007
  • creditUnknown

Introduced: 7 Nov 2007

CVE-2007-1661  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade pcre to version 7.3 or higher.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS). Perl-Compatible Regular Expression (PCRE) library before 7.3 backtracks too far when matching certain input bytes against some regex patterns in non-UTF-8 mode, which allows context-dependent attackers to obtain sensitive information or cause a denial of service (crash), as demonstrated by the "\X?\d" and "\P{L}?\d" patterns.

References

CVSS Base Scores

version 3.1