CVE-2026-135804: Incomplete Fix for CVE-2026-45756: JsonPath Queries Can Still Hold a Process Through search(), match() and Chained Filters

Published Nov 24, 2026
·
Updated

The fix for CVE-2026-45756 lowers pcre.backtracklimit to 10000 around each pregmatch() call of the match() and search() filter functions. That limit applies to one starting position, not to one call. PCRE resets its counter at every position it tries a match from. So an unanchored pattern that stays just under the limit is paid once per byte of the subject. Each call also starts from a fresh limit, so chaining clauses in one filter multiplies the work.

Two other paths made the cost of a query grow faster than its size, without any regular expression: - The filter evaluator scanned the whole expression for logical operators once per node. Its cost grew with the square of the number of chained clauses. - Queries starting with $ inside a filter, like @.x == $.limit or length($.items), were evaluated again for every node the filter visits.

An application that evaluates an attacker-influenced JSONPath expression can therefore still be made to hold a PHP worker. A document of 2 MB and a query of 2.5 KB take 3.5 minutes of CPU.

JsonCrawler::find() now bounds the total regex work of one call, and throws an exception when that budget is exhausted. Filter expressions are parsed once per query, and absolute queries inside filters are evaluated once per query.

Affected Software

1 affected component
JsonCrawler

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Set pcre.backtrack_limit to 10000 around each preg_match() call in the match() and search() filter functions.

    JsonCrawler match() and search() filter functions pcre.backtrack_limit = 10000
  2. Compensating control

    In JsonCrawler::find(), enforce a total regex-work budget for each call and throw an exception when the budget is exhausted.

Event History

Nov 24, 2026
CVE Published
via MITRE·08:55 AM
Data Sourced
via MITRE·08:55 AM
DescriptionWeakness
Data Sourced
via NVD·09:17 AM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using JsonCrawler are exposed when they evaluate JSONPath expressions influenced by an attacker. The reported impact is that an attacker can hold a PHP worker through expensive search(), match(), chained-filter, logical-operator, or root-query evaluation paths.

2

What does an attacker need to supply?

The attacker needs influence over the JSONPath expression being evaluated. Exploitation can use unanchored regular-expression patterns in search() or match(), chained clauses, or filters that trigger repeated evaluation of expressions beginning with $.

3

Can this be exploited without regular expressions?

Yes. Chained logical clauses can cause quadratic filter-evaluation work, and references to root queries inside filters, such as @.x == $.limit or length($.items), can be reevaluated for every visited node.

4

How can the impact be recognized?

A vulnerable evaluation may consume CPU long enough to hold a PHP worker. The advisory gives an example where a 2 MB document and a 2.5 KB query consume 3.5 minutes of CPU.

5

What behavior changes in the corrected implementation?

JsonCrawler::find() bounds the total regular-expression work for a single call and throws an exception when that budget is exhausted. Filter expressions are also parsed once rather than repeatedly scanned per node.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203