Heap-based buffer overflow in PCRE2 - #VU146524
Published: August 31, 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.