CVE-2019-7609 — Kibana Arbitrary Code Execution

CVE-2019-7609

Elastic Kibana Timelion Visualizer — Prototype Pollution Leading to Server-Side RCE

What is Kibana?

Kibana is the visualization and dashboard front-end for the Elastic Stack (Elasticsearch, Logstash, Kibana), widely used for log analytics, security monitoring, and business-intelligence dashboards. Because it typically sits in front of an Elasticsearch cluster holding large volumes of operational or security data, compromising Kibana often gives an attacker a path to sensitive log data or a foothold on the underlying server.

Overview

CVE-2019-7609 is a critical vulnerability (CVSS 10, scope changed) in Kibana's Timelion data-visualization application. A prototype pollution flaw in how Timelion processes user-supplied expressions lets an attacker execute arbitrary code on the Kibana server — and because Kibana instances were frequently deployed without any authentication layer in front of them at the time, this was effectively unauthenticated in many real-world deployments. Elastic disclosed and patched the issue in February 2019.

Technical Details

Timelion evaluates chained expression syntax (e.g., .es(), .props()) to build time-series visualizations. By crafting an expression that manipulates JavaScript's object prototype chain (__proto__), an attacker can inject properties that are later used unsafely by server-side code, ultimately reaching a code path that executes attacker-controlled JavaScript — a textbook CWE-94 (code injection) rooted in unsafe use of prototype-based object merging in Node.js.

Discovery

Disclosed by Elastic in security advisory ESA-2019-01, alongside the corresponding Kibana patch releases (5.6.15 and 6.6.1).

Exploitation Context

This vulnerability saw real-world exploitation in the years following disclosure, including reported use by botnets that chain multiple web-application RCE vulnerabilities (across products like Drupal, Oracle WebLogic, and Kibana) to compromise internet-facing servers for cryptomining and DDoS botnet recruitment. CISA added it to KEV in January 2022, reflecting this confirmed exploitation history.

Remediation

  1. Upgrade Kibana to 5.6.15, 6.6.1, or later.
  2. Never expose Kibana directly to the internet without an authenticating reverse proxy or Elastic's built-in security features (X-Pack/Elastic Security) enabled.
  3. Disable the Timelion application if it is not in active use.
  4. Review Kibana and host logs for unusual outbound connections or process spawning from the Kibana server.
  5. Apply network segmentation so a compromised Kibana instance cannot freely reach the rest of the environment.

Key Details

PropertyValue
CVE ID CVE-2019-7609
Vendor / Product Elastic — Kibana
NVD Published2019-03-25
NVD Last Modified2025-11-07
CVSS 3.1 Score10
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
SeverityCRITICAL
CWE CWE-94 find similar ↗
CISA KEV Added2022-01-10
CISA KEV Deadline2022-07-10
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2022-07-10. Apply updates per vendor instructions.

Timeline

DateEvent
2019-02-11Fixed by Elastic in Kibana 5.6.15 and 6.6.1 (security advisory ESA-2019-01)
2022-01-10Added to CISA Known Exploited Vulnerabilities catalog
2022-07-10CISA BOD 22-01 remediation deadline

References

ResourceType
NVD — CVE-2019-7609 Vulnerability Database
CISA KEV Catalog Entry US Government