{"id":"CVE-2017-8438","aliases":[],"kind":"cve","tier":"cold","status":"published","title":"Elastic X-Pack Security versions 5.0.0 to 5.4.0 contain a privilege escalation bug in the run_as functionality. This bu…","description":"Elastic X-Pack Security versions 5.0.0 to 5.4.0 contain a privilege escalation bug in the run_as functionality. This bug prevents transitioning into the specified user specified in a run_as request. If a role has been created using a template that contains the _user properties, the behavior of run_as will be incorrect. Additionally if the run_as user specified does not exist, the transition will not happen.","ai_summary":null,"severity":"high","cvss":{"score":8.8,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"NVD"},"scores":[{"score":8.8,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd"},{"score":6.5,"version":"2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","source":"nvd"}],"cwe":["CWE-284"],"remote":true,"remote_unauth":false,"epss":{"score":0.01025,"percentile":0.64522,"date":"2026-12-01"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[],"affected_products":[{"vendor":"Elastic","product":"X-Pack Security","versions":"5.0.0 to 5.4.0","source":"cvelist"}],"ai_versions":null,"mitigation":"No fix listed yet: follow the vendor advisory.","technologies":[],"references":[{"url":"https://discuss.elastic.co/t/elastic-stack-5-4-1-and-5-3-3-security-updates/87952","kind":"vendor"},{"url":"https://www.elastic.co/community/security","kind":"vendor"},{"url":"https://www.elastic.co/blog/elasticsearch-5-4-1-and-5-3-3-released","kind":"patch"}],"workarounds":null,"vendors":["elastic"],"products":["x-pack","x-pack security"],"cpes":["cpe:2.3:a:elastic:x-pack:5.0.0:*:*:*:*:*:*:*","cpe:2.3:a:elastic:x-pack:5.0.1:*:*:*:*:*:*:*","cpe:2.3:a:elastic:x-pack:5.0.2:*:*:*:*:*:*:*","cpe:2.3:a:elastic:x-pack:5.1.0:*:*:*:*:*:*:*","cpe:2.3:a:elastic:x-pack:5.1.1:*:*:*:*:*:*:*","cpe:2.3:a:elastic:x-pack:5.2.0:*:*:*:*:*:*:*","cpe:2.3:a:elastic:x-pack:5.2.1:*:*:*:*:*:*:*","cpe:2.3:a:elastic:x-pack:5.2.2:*:*:*:*:*:*:*","cpe:2.3:a:elastic:x-pack:5.3.0:*:*:*:*:*:*:*","cpe:2.3:a:elastic:x-pack:5.3.1:*:*:*:*:*:*:*","cpe:2.3:a:elastic:x-pack:5.3.2:*:*:*:*:*:*:*","cpe:2.3:a:elastic:x-pack:5.3.3:*:*:*:*:*:*:*","cpe:2.3:a:elastic:x-pack:5.4.0:*:*:*:*:*:*:*"],"published_at":"2017-06-05T14:00:00.000Z","modified_at":"2026-06-17T01:26:22.100Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-8438"}],"links":{"html":"https://flawdb.com/CVE-2017-8438","markdown":"https://flawdb.com/CVE-2017-8438.md","json":"https://flawdb.com/api/v1/entries/CVE-2017-8438"}}