REDHAT-BUG-2528993: High severity PCRE2 PCRE2 vulnerability
PCRE2 before 10.48 allows a pcre2dfamatch 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).
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger the out-of-bounds write?
Exploitation requires an attacker-controlled regular expression. It can also occur with a recursive pattern when a small heap limit is configured through the API.
Are applications using only fixed, trusted regular expressions exposed?
The described attack condition requires attacker control of the regular expression, or a recursive pattern combined with a small API-configured heap limit. Applications that do not permit untrusted patterns and do not use that small-heap-limit scenario are not described as meeting the trigger conditions.
What can be done if an update cannot be applied immediately?
Avoid accepting regular expressions from untrusted users or other untrusted sources. Also avoid configuring a small heap limit through the API when processing recursive patterns.