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.46% (64th 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-10078102
  • published8 May 2025
  • disclosed23 Mar 2022
  • creditUnknown

Introduced: 23 Mar 2022

CVE-2022-1586  (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 compile_xclass_matchingpath function. It is related to a missing Unicode property matching issue in JIT compiled regular expressions.

CVSS Base Scores

version 3.1