Out-of-bounds Read Affecting pcre2 package, versions [,10.40)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (36th 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-CONAN-PCRE2-10078101
  • published8 May 2025
  • disclosed26 Mar 2022
  • creditUnknown

Introduced: 26 Mar 2022

CVE-2022-1587  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade pcre2 to version 10.40 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in get_recurse_data_length in pcre2_jit_compile.c. It affectes recursions in JIT-compiled regular expressions.

CVSS Base Scores

version 3.1