Heap-based buffer overflow in PCRE2 - CVE-2026-86145
Published: August 31, 2026 / Updated: September 14, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to heap-based buffer overflow in pcre2_dfa_match() when processing an attacker-supplied regular expression with recursive patterns under a low heap limit. A remote attacker can supply a specially crafted regular expression to cause a denial of service.
Exploitation requires the application to use DFA matching, and the heap limit can be lowered within the pattern using the (*LIMIT_HEAP=...) control verb. Control of the subject or match context is not required.
Affected software
Red Hat Enterprise Linux Server - AUS
openEuler
Anolis OS
pcre2 (Red Hat package)
pcre2-help
pcre2-devel
pcre2-debugsource
pcre2-debuginfo
pcre2
pcre2-syntax
pcre2-utf32
pcre2-utf16
pcre2-tools
pcre2-static
How to mitigate CVE-2026-86145
pcre2 (Red Hat package) - addressed in versions 10.32-2.el8_4.1, 10.32-3.el8_6.1
pcre2-help - addressed in versions 10.35-12, 10.39-19, 10.42-15
pcre2-devel - addressed in versions 10.35-12, 10.39-19, 10.42-15
pcre2-debugsource - addressed in versions 10.35-12, 10.39-19, 10.42-15
pcre2-debuginfo - addressed in versions 10.35-12, 10.39-19, 10.42-15
pcre2 - addressed in versions 10.35-12, 10.39-19, 10.42-15
pcre2-syntax - update to 10.42-5
pcre2-utf32 - update to 10.42-5
pcre2-utf16 - update to 10.42-5
pcre2-tools - update to 10.42-5
pcre2-static - update to 10.42-5
pcre2-devel - update to 10.42-5
pcre2 - update to 10.42-5
External References
Related Security Bulletins
- Multiple vulnerabilities in PCRE2
- openEuler 24.03 LTS SP4 update for pcre2
- openEuler 24.03 LTS SP1 update for pcre2
- openEuler 22.03 LTS SP4 update for pcre2
- openEuler 20.03 LTS SP4 update for pcre2
- Anolis OS update for pcre2
- Red Hat Enterprise Linux 8 update for pcre2
- Red Hat Enterprise Linux 8 update for pcre2