Integer overflow in PCRE2 - CVE-2026-89157

 

Integer overflow in PCRE2 - CVE-2026-89157

Published: August 31, 2026 / Updated: September 12, 2026


Vulnerability identifier: #VU146525
CSH Severity: Low
CVSS v4: 5.8 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-89157
CWE-ID: CWE-190
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause memory corruption and a process crash.

The vulnerability exists due to integer overflow leading to an out-of-bounds write in pcre2_pattern_convert() when processing a very large attacker-controlled pattern using PCRE2-managed output allocation on a 32-bit system. A remote attacker can supply a specially crafted large foreign-syntax pattern to cause memory corruption and a process crash.

The issue occurs before pattern compilation or matching, and requires a 32-bit process with a non-NULL buffptr whose value is NULL.


Affected software

PCRE2
Anolis OS
pcre2
pcre2-devel
pcre2-static
pcre2-tools
pcre2-utf16
pcre2-utf32
pcre2-syntax

How to mitigate CVE-2026-89157

Install security update from vendor's website.

PCRE2 - update to 10.48
pcre2 - update to 10.42-8
pcre2-devel - update to 10.42-8
pcre2-static - update to 10.42-8
pcre2-tools - update to 10.42-8
pcre2-utf16 - update to 10.42-8
pcre2-utf32 - update to 10.42-8
pcre2-syntax - update to 10.42-8

External References

Related Security Bulletins