CVE-2018-17246·Kibana vulnerability
Kibana versions before 6.4.3 and 5.6.13 contain an arbitrary file inclusion flaw in the Console plugin. An attacker with access to the Kibana Console API could send a request that will attempt to execute javascript code. This could possibly lead to an attacker executing arbitrary commands with permissions of the Kibana process on the host system.
- Severity
- critical
- Software
- Kibana
- Fixed in
- 6.4.3
- Published
How Defensia detected this
Defensia agents read the web server logs of the Linux servers they protect and match incoming requests against exploitation signatures. When the same CVE is matched across enough independent servers, from enough distinct networks, it is recorded as being actively exploited. That threshold was crossed for CVE-2018-17246 starting , across 8.4% of the servers Defensia monitors, from 36 distinct attacking IP addresses.
Every CVE we currently measure under active exploitation is listed together, with the share of servers targeted and how long each has been running.
Where the attacks came from
Aggregated across every server Defensia monitors, over 16 days of observation, last measured . Counts are of distinct servers and distinct source addresses, not of requests. No customer, host or domain is identified.
Affected versions
From: 6.0.0
Until: 6.4.3
Fixed in: 6.4.3
How to fix this CVE
Upgrade Kibana to version 6.4.3 or later immediately to patch the arbitrary code execution vulnerability in the Console plugin. Organizations running versions 6.0.0 through 6.4.2 should prioritize this update as the flaw allows remote attackers to execute arbitrary JavaScript within the Kibana process context. Verify the upgrade was successful by checking the Kibana version endpoint and restarting the service.
sudo dnf install -y kibana-6.4.3Defensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST /api/console/api_server HTTP/1.1.*Content-Type: application/json.*(?:exec|eval|require|process\.)|GET /api/console/proxy.*['"].*(?:process|child_process|fs|os)['"]WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Block or restrict unauthenticated access to /api/console/* endpoints. Implement IP whitelisting for the Console API and require authentication headers (Authorization: Bearer token). Log all POST requests to /api/console/api_server with full request bodies for forensic analysis.How to check if you are affected
- Step 1: Check installed Kibana version by running: curl -s http://localhost:5601/api/status | jq '.version.number' or grep -oP '(?<="number":")\d+\.\d+\.\d+' /var/log/kibana/kibana.log
- Step 2: Verify Console plugin is enabled by checking the Kibana configuration: grep -i 'console' /etc/kibana/kibana.yml
- Step 3: Search application logs for suspicious Console API requests: grep -E 'POST|GET.*console.*api' /var/log/kibana/kibana.log | grep -v '200\|304'
- Step 4: Confirm the patch by verifying the version is 6.4.3 or higher: curl -s http://localhost:5601/api/status | jq '.version.number'
FAQ
What is CVE-2018-17246?
CVE-2018-17246 is a code execution vulnerability in Kibana's Console plugin that permits unauthenticated attackers to inject and execute arbitrary JavaScript code through the Console API, potentially granting them the same permissions as the Kibana process on the underlying host.
Is CVE-2018-17246 being actively exploited?
No, CVE-2018-17246 is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available, though the critical CVSS 9.8 score indicates organizations should still treat this as a high-priority patch.
What versions of Kibana are affected by CVE-2018-17246?
Kibana versions 6.0.0 through 6.4.2 are vulnerable, along with versions 5.0.0 through 5.6.12. Version 6.4.3 and 5.6.13 contain the fix.
How do I check if my server is vulnerable to CVE-2018-17246?
Run 'curl -s http://localhost:5601/api/status | jq .version.number' and compare against the affected ranges. If the version is between 6.0.0–6.4.2 or 5.0.0–5.6.12, the server is vulnerable.
Does Defensia detect CVE-2018-17246?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kibana is installed on a monitored server, CVE-2018-17246 will appear in your dashboard with remediation steps.
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2018-17246. Free for 1 server.
Get started free