CVE-2026-87722
Beschrijving NL
Ongecontroleerd resourceverbruik (CWE-400/CWE-1333) in regex-zoekopdrachtpredikaten (zoals RegexProjectPredicate, RegexRefPredicate, RegexPathPredicate en sibling-predikaten) en REST regex-filter-eindpunten (RegexListSearcher/projects/?r= en RefFilter/projects/{project}/branches/?r=) in Gerrit Code Review-versies 2.1.6 tot en met 3.12.9, 3.13.0 tot en met 3.13.8 en 3.14.0 tot en met 3.14.2 staat een niet-geauthenticeerde externe aanvaller toe (of een geauthenticeerde gebruiker als anonieme r ead-toegang is uitgeschakeld) om een denial of service (CPU-honger en JVM-heap-uitputting/OutOfMemoryError) te veroorzaken via bewerkte zoekopdrachten of REST API-verzoeken met reguliere expressies met grote getelde herhalingen of exponentiële DFA-bepalingspatronen. Omdat de door de gebruiker geleverde reguliere expressie wordt gecompileerd in een onbegrensde dk.brics.automaton-instantie (nieuwe RegExp (re) .toAutomaton ()) op de aanvraagthread voorafgaand aan indexevaluatie of zichtbaarheidsfiltering voor toegangscontrole, kunnen triviale zoekopdrachten JVM-heap- of PIN-aanvraagthreads uitputten, ongeacht de heapgrootte. Dit probleem is opgelost in Gerrit Code Review versies 3.12.10, 3.13.9 en 3.14.3.
Origineel (Engels) tonen
Uncontrolled Resource Consumption (CWE-400 / CWE-1333) in regex search query predicates (such as RegexProjectPredicate, RegexRefPredicate, RegexPathPredicate, and sibling predicates) and REST regex filter endpoints (RegexListSearcher /projects/?r= and RefFilter /projects/{project}/branches/?r=) in Gerrit Code Review versions 2.1.6 through 3.12.9, 3.13.0 through 3.13.8, and 3.14.0 through 3.14.2 allows an unauthenticated remote attacker (or an authenticated user if anonymous read access is disabled) to cause a denial of service (CPU starvation and JVM heap exhaustion / OutOfMemoryError) via crafted search queries or REST API requests containing regular expressions with large counted repetitions or exponential DFA determinization patterns. Because the user-supplied regular expression is compiled into an unbounded dk.brics.automaton instance (new RegExp(re).toAutomaton()) on the request thread prior to index evaluation or access control visibility filtering, trivial queries can exhaust JVM heap or pin request threads regardless of heap size. This issue is fixed in Gerrit Code Review versions 3.12.10, 3.13.9, and 3.14.3.