CVE-2026-115873 — Cribl Stream (4.20.4) — CWE-94
A remote attacker must authenticate with Read Only (GroupRead) access to at least one Worker Group and reach the Leader API. A crafted expression can exploit the nested compiler to bypass expression restrictions and execute code with the Leader service account's permissions.
A remote attacker must authenticate with Read Only (GroupRead) access to at least one Worker Group and reach the Leader API. A crafted expression can exploit the nested compiler to bypass expression restrictions and execute code with the Leader service account's permissions.
🎯 What is this vulnerability?
This vulnerability is a Code Injection (CWE-94) flaw within the Cribl Stream application, specifically affecting the Leader API component. The core technical failure lies in the nested expression compiler used by the Leader service.
Technical Breakdown:
1. Insufficient Input Sanitization: The Leader API accepts user-supplied expressions (likely for data routing, filtering, or transformation logic).
2. Compiler Bypass: The expression parser/compiler does not adequately restrict the scope of operations allowed within nested contexts. An attacker can craft a specific expression structure that "escapes" the intended sandbox or restriction layer.
3. Privilege Context Mismatch: When the malicious expression is executed, it runs with the permissions of the Leader service account, which typically has high-level administrative or system-level privileges within the Cribl Stream cluster, rather than the limited permissions of the authenticated user.
4. Low Privilege Requirement: The attacker only needs Read Only (GroupRead) access to at least one Worker Group. This is a low-barrier entry point, as read-only access is often granted to monitoring tools, log consumers, or lower-tier analysts.
The CVSS vector PR:L (Privileges Required: Low) and AT:N (Attack Target: None) confirms that no special attack surface manipulation is needed, only valid low-privilege credentials and network access to the Leader API.
⚡ Attack Chain
1. Discovery & Reconnaissance
- Fingerprinting: Identify Cribl Stream instances. Cribl Stream typically listens on port
8000(HTTP) or8443(HTTPS). The Leader API is often accessible via the main web interface or a dedicated API endpoint. - Credential Acquisition: Obtain valid credentials with
GroupReadaccess. This could be via:
* Phishing a low-privilege user.
* Using default or weak credentials if the instance is misconfigured.
* Compromising a monitoring agent that has read-only access to logs.
API Endpoint Identification: Locate the Leader API endpoint. In Cribl Stream, the Leader API is typically part of the main application interface, often under
/api/ or similar paths. The specific endpoint for expression evaluation might be related to pipeline configuration, routing rules, or data preview features. Note: The exact URI is not specified in the CVE description, so the following is an illustrative example.*2. Exploitation
The attacker crafts a malicious expression that exploits the nested compiler. The exact payload depends on the specific syntax of the Cribl expression language (which is similar to JavaScript/JSON logic). The goal is to inject code that executes in the Leader service context.Illustrative PoC (Conceptual):
Assume the Leader API has an endpoint /api/leader/evaluate that accepts a JSON body with an expression field. The attacker sends a request with a crafted expression that breaks out of the intended scope.
# Illustrative Example - NOT a confirmed exploit
# The exact payload structure is unknown and depends on the specific compiler vulnerability.
# This demonstrates the concept of injecting code via an expression field.
curl -k -X POST "https://<CRIBL_STREAM_HOST>:8443/api/leader/evaluate" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <LOW_PRIV_TOKEN>" \
-d '{
"expression": "(() => { return eval(\"process.mainModule.require(\\\"child_process\\\").execSync(\\\"id\\\")\"); })()"
}'Key Mechanics:
process or child_process modules, which are available in the Leader service runtime.eval() or similar dynamic execution function is used to run arbitrary system commands.id is used to verify execution and confirm the user context (should show the Leader service account, e.g., cribl or root depending on installation).Alternative Payload (If eval is blocked):
The attacker might use a different method to invoke system commands, such as accessing require directly if the sandbox is bypassed:
// Conceptual bypass
"expression": "require('child_process').execSync('whoami').toString()"3. Post-Exploitation
Once code execution is achieved with the Leader service account's permissions: 1. Privilege Escalation: If the Leader service runs asroot (common in containerized or poorly configured deployments), the attacker gains root access to the host. If it runs as a dedicated cribl user, the attacker can still access all Cribl Stream configuration files, API keys, and data pipelines.
2. Data Exfiltration: The attacker can read all logs flowing through Cribl Stream, which may contain sensitive data (PII, credentials, network traffic).
3. Persistence: The attacker can modify Cribl Stream configurations to add a malicious pipeline that exfiltrates data to an external server or installs a webshell in the Cribl Stream web root.
4. Lateral Movement: With access to the Cribl Stream host, the attacker can pivot to other systems in the network, especially if the host has access to other log sources or databases.🌍 Real World Impact
Practical Consequences:
🛡️ Remediation & Mitigation
1. Upgrade
2. Workarounds
GroupRead access from any users or services that do not strictly require it. Ensure that only highly trusted accounts have any level of access to the Leader API.3. Detection
id, whoami, curl, wget, or nc.Example Log Pattern (Illustrative):
POST /api/leader/evaluate HTTP/1.1
Content-Type: application/json
Authorization: Bearer <TOKEN>
{"expression": "(() => { return eval(\"process.mainModule.require(\\\"child_process\\\").execSync(\\\"id\\\")\"); })()"}IoCs:
/api/leader/ endpoints.⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query