JLSEC-2026-1998: PCRE2 before 10.48 allows a pcre2_dfa_match out-of-bounds write because reuse of a cached...
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/PCRE2_jllto a version that resolves this vulnerability.Fixed in 10.48.0+0
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
What conditions are required to trigger this issue?
Exploitation requires an attacker-controlled regular expression. It can also occur with a recursive pattern when a small heap limit is used; the heap limit can be set through the API.
Which matching interface is affected?
The issue is in pcre2_dfa_match. It involves reuse of a cached workspace block in recursive DFA matching without a size check.
Which listed software components should be assessed?
Assess deployments using julia/openresty_jll or julia/pcre2_jll. The affected PCRE2 versions are those before 10.48.