Out-of-bounds Write Affecting pcre2-utf16 package, versions <0:10.40-1.amzn2023.0.5


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.43% (37th 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-AMZN2023-PCRE2UTF16-21702498
  • published25 Oct 2026
  • disclosed5 Sept 2026

Introduced: 5 Sep 2026

CVE-2026-86145  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 pcre2-utf16 to version 0:10.40-1.amzn2023.0.5 or higher.
This issue was patched in ALAS2023-2026-3269.

NVD Description

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

PCRE2 before 10.48 allows a pcre2_dfa_match out-of-bounds write because reuse of a cached workspace block, in a recursive DFA matching workspace, lacks a size check (even though a newly allocated block, for the same purpose, does have a size check). This outcome requires an attacker-controlled regular expression, or a recursive pattern in conjunction with a small heap limit (this can be set through the API).

CVSS Base Scores

version 3.1