{"api_version":"1","generated_at":"2026-07-23T07:14:32+00:00","cve":"CVE-2017-8438","urls":{"html":"https://cve.report/CVE-2017-8438","api":"https://cve.report/api/cve/CVE-2017-8438.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-8438","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-8438"},"summary":{"title":"CVE-2017-8438","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.","state":"PUBLISHED","assigner":"elastic","published_at":"2017-06-05 14:29:00","updated_at":"2025-04-20 01:37:25"},"problem_types":["CWE-284","CWE-269","CWE-284 CWE-284: Improper Access Control"],"metrics":[{"version":"3.0","source":"nvd@nist.gov","type":"Primary","score":"8.8","severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.0","vectorString":"CVSS:3.0/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"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"6.5","severity":"","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:P","baseScore":6.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"https://www.elastic.co/blog/elasticsearch-5-4-1-and-5-3-3-released","name":"https://www.elastic.co/blog/elasticsearch-5-4-1-and-5-3-3-released","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Vendor Advisory"],"title":"Elasticsearch 5.4.1 and 5.3.3 released  | Elastic","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://discuss.elastic.co/t/elastic-stack-5-4-1-and-5-3-3-security-updates/87952","name":"https://discuss.elastic.co/t/elastic-stack-5-4-1-and-5-3-3-security-updates/87952","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"Elastic Stack 5.4.1 and 5.3.3 Security updates - Security Announcements - Discuss the Elastic Stack","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.elastic.co/community/security","name":"https://www.elastic.co/community/security","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"","mime":"","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-8438","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-8438","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Elastic","product":"X-Pack Security","version":"affected 5.0.0 to 5.4.0","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2017","cve_id":"8438","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"elastic","cpe5":"x-pack","cpe6":"5.0.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"8438","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"elastic","cpe5":"x-pack","cpe6":"5.0.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"8438","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"elastic","cpe5":"x-pack","cpe6":"5.0.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"8438","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"elastic","cpe5":"x-pack","cpe6":"5.1.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"8438","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"elastic","cpe5":"x-pack","cpe6":"5.1.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"8438","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"elastic","cpe5":"x-pack","cpe6":"5.2.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"8438","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"elastic","cpe5":"x-pack","cpe6":"5.2.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"8438","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"elastic","cpe5":"x-pack","cpe6":"5.2.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"8438","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"elastic","cpe5":"x-pack","cpe6":"5.3.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"8438","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"elastic","cpe5":"x-pack","cpe6":"5.3.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"8438","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"elastic","cpe5":"x-pack","cpe6":"5.3.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"8438","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"elastic","cpe5":"x-pack","cpe6":"5.3.3","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"8438","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"elastic","cpe5":"x-pack","cpe6":"5.4.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-05T16:34:22.961Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://discuss.elastic.co/t/elastic-stack-5-4-1-and-5-3-3-security-updates/87952"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://www.elastic.co/blog/elasticsearch-5-4-1-and-5-3-3-released"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://www.elastic.co/community/security"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"X-Pack Security","vendor":"Elastic","versions":[{"status":"affected","version":"5.0.0 to 5.4.0"}]}],"datePublic":"2017-06-01T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"cweId":"CWE-284","description":"CWE-284: Improper Access Control","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2017-06-05T13:57:01.000Z","orgId":"271b6943-45a9-4f3a-ab4e-976f3fa05b5a","shortName":"elastic"},"references":[{"tags":["x_refsource_CONFIRM"],"url":"https://discuss.elastic.co/t/elastic-stack-5-4-1-and-5-3-3-security-updates/87952"},{"tags":["x_refsource_CONFIRM"],"url":"https://www.elastic.co/blog/elasticsearch-5-4-1-and-5-3-3-released"},{"tags":["x_refsource_CONFIRM"],"url":"https://www.elastic.co/community/security"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@elastic.co","ID":"CVE-2017-8438","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"X-Pack Security","version":{"version_data":[{"version_value":"5.0.0 to 5.4.0"}]}}]},"vendor_name":"Elastic"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-284: Improper Access Control"}]}]},"references":{"reference_data":[{"name":"https://discuss.elastic.co/t/elastic-stack-5-4-1-and-5-3-3-security-updates/87952","refsource":"CONFIRM","url":"https://discuss.elastic.co/t/elastic-stack-5-4-1-and-5-3-3-security-updates/87952"},{"name":"https://www.elastic.co/blog/elasticsearch-5-4-1-and-5-3-3-released","refsource":"CONFIRM","url":"https://www.elastic.co/blog/elasticsearch-5-4-1-and-5-3-3-released"},{"name":"https://www.elastic.co/community/security","refsource":"CONFIRM","url":"https://www.elastic.co/community/security"}]}}}},"cveMetadata":{"assignerOrgId":"271b6943-45a9-4f3a-ab4e-976f3fa05b5a","assignerShortName":"elastic","cveId":"CVE-2017-8438","datePublished":"2017-06-05T14:00:00.000Z","dateReserved":"2017-05-02T00:00:00.000Z","dateUpdated":"2024-08-05T16:34:22.961Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2017-06-05 14:29:00","lastModifiedDate":"2025-04-20 01:37:25","problem_types":["CWE-284","CWE-269","CWE-284 CWE-284: Improper Access Control"],"metrics":{"cvssMetricV30":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.0","vectorString":"CVSS:3.0/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}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:P","baseScore":6.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"MEDIUM","exploitabilityScore":8,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:elastic:x-pack:5.0.0:*:*:*:*:*:*:*","matchCriteriaId":"C15893C0-5FFF-4A60-940F-C69EBF60CE62"},{"vulnerable":true,"criteria":"cpe:2.3:a:elastic:x-pack:5.0.1:*:*:*:*:*:*:*","matchCriteriaId":"BFE40EC5-19CF-4DDC-98CF-DEA035CBBDED"},{"vulnerable":true,"criteria":"cpe:2.3:a:elastic:x-pack:5.0.2:*:*:*:*:*:*:*","matchCriteriaId":"F2ABFD3F-65B8-45CA-8AA0-DD9FC0E668E5"},{"vulnerable":true,"criteria":"cpe:2.3:a:elastic:x-pack:5.1.0:*:*:*:*:*:*:*","matchCriteriaId":"26C9B833-CFB8-4CC3-A28D-E5320276E5D6"},{"vulnerable":true,"criteria":"cpe:2.3:a:elastic:x-pack:5.1.1:*:*:*:*:*:*:*","matchCriteriaId":"444B1E15-1BEF-479B-8DEA-1DB5ACE7C051"},{"vulnerable":true,"criteria":"cpe:2.3:a:elastic:x-pack:5.2.0:*:*:*:*:*:*:*","matchCriteriaId":"BF9945D4-5B3B-41B3-9F94-DB11A8F7E262"},{"vulnerable":true,"criteria":"cpe:2.3:a:elastic:x-pack:5.2.1:*:*:*:*:*:*:*","matchCriteriaId":"C26D394C-DE12-489F-B7E1-DF4C28BB404B"},{"vulnerable":true,"criteria":"cpe:2.3:a:elastic:x-pack:5.2.2:*:*:*:*:*:*:*","matchCriteriaId":"109A47C4-A688-4712-969F-08859B2A7923"},{"vulnerable":true,"criteria":"cpe:2.3:a:elastic:x-pack:5.3.0:*:*:*:*:*:*:*","matchCriteriaId":"761A9E6A-DBC5-48E4-8A79-A90F65C28E0F"},{"vulnerable":true,"criteria":"cpe:2.3:a:elastic:x-pack:5.3.1:*:*:*:*:*:*:*","matchCriteriaId":"8BAAB65B-1C7C-4929-ACAA-9993E1626FF6"},{"vulnerable":true,"criteria":"cpe:2.3:a:elastic:x-pack:5.3.2:*:*:*:*:*:*:*","matchCriteriaId":"BE9F72ED-C37A-435D-9253-801C97C50753"},{"vulnerable":true,"criteria":"cpe:2.3:a:elastic:x-pack:5.3.3:*:*:*:*:*:*:*","matchCriteriaId":"965A9F08-9C79-436D-98BA-DAC4F5D71EF7"},{"vulnerable":true,"criteria":"cpe:2.3:a:elastic:x-pack:5.4.0:*:*:*:*:*:*:*","matchCriteriaId":"86D9F09D-81BD-4B6E-8016-E6EAF2D68E5D"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2017","CveId":"8438","Ordinal":"1","Title":"CVE-2017-8438","CVE":"CVE-2017-8438","Year":"2017"},"notes":[{"CveYear":"2017","CveId":"8438","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2017-8438"},{"CveYear":"2017","CveId":"8438","Ordinal":"2","NoteData":"2017-06-05","Type":"Other","Title":"Published"},{"CveYear":"2017","CveId":"8438","Ordinal":"3","NoteData":"2017-06-05","Type":"Other","Title":"Modified"}]}}}