LiveActive security incident?Get immediate response
CVE Record

CVE-2017-8438: Elastic X-Pack Security versions 5.0.0 to 5.4.0 contain a privilege escalation bug in the run_as functional...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2017-8438 affects Elastic X-Pack Security 5.0.0 through 5.4.0. A flaw in the run_as feature can cause user impersonation requests to behave incorrectly, creating privilege-escalation risk where role templates use _user properties or the requested run_as user does not exist.

Executive priority

Prioritize if the organization still runs legacy Elastic 5.x with X-Pack Security. The business concern is unauthorized privilege behavior inside search infrastructure that may hold sensitive operational or customer data.

Technical view

The issue is a CWE-284 access-control weakness in X-Pack Security run_as handling. Sources describe incorrect transition behavior for run_as requests when templated roles contain _user properties, and no transition when the specified run_as user is absent. Exact exploitability, CVSS, and affected deployment preconditions are not fully described.

Likely exposure

Exposure is likely limited to old Elastic Stack deployments using X-Pack Security versions 5.0.0 to 5.4.0, especially environments configured with run_as privileges and templated roles referencing _user properties.

Exploitation context

The provided sources do not report active exploitation, public exploit availability, or CISA KEV inclusion. Treat this as a configuration-dependent privilege-escalation risk in legacy Elastic deployments rather than a broadly confirmed internet-wide emergency.

Researcher notes

Evidence is concise and vendor-linked, but lacks CVSS, proof-of-concept detail, and precise authorization impact. Validate affected versions and run_as/template usage before escalating severity. Avoid assuming exploitability beyond the described access-control failure.

Mitigation direction

  • Inventory Elastic X-Pack Security versions across all clusters.
  • Prioritize upgrades away from versions 5.0.0 through 5.4.0.
  • Review Elastic's 5.4.1 and 5.3.3 security update guidance.
  • Audit roles created from templates containing _user properties.
  • Remove unnecessary run_as privileges where business use is unclear.

Validation and detection

  • Confirm whether X-Pack Security is enabled on each Elasticsearch cluster.
  • Check deployed versions for 5.0.0 through 5.4.0.
  • Review role templates for _user property usage.
  • Review run_as role grants and target user existence.
  • Document whether vendor security updates have been applied.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-284: Authorization and privilege behavior lookup

Authorization weaknesses can support privilege escalation and valid-account review, depending on exploit path. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Privilege behavior lookup

The CVE wording references privilege impact, so privilege escalation and authorization behavior review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2017-8438 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
ElasticX-Pack Security5.0.0 to 5.4.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-284 · source CWE mapping

Improper Access Control

Improper Access Control represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.