Sceawere
Vulnerability Detail
CVE-2026-37751UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV
OS Command Injection in ai-maestro
Vulnerability Metadata
- Severity
- Critical
- Score / CVSS
- 9.8
- Creation Date
- 9h ago
- Vendor
- n/a
- Product
- n/a
- Attack Type
- n/a
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack Complexity
- LOW
Narrative and Response
Description
An OS command injection vulnerability in the killSessionSync function (lib/agent-runtime.ts) of 23blocks-OS ai-maestro v0.24.17 allows attackers to execute arbitrary commands via a crafted input.
Executive Summary
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Technical Details
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Mitigations
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
References
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Additional Metadata
{
"score": "9.8",
"pubDate": "2026-08-28T16:17:46.667Z",
"pubdate": "2026-08-28T16:17:46.667Z",
"executiveSummary": "The 23blocks-OS ai-maestro framework, specifically version 0.24.17, contains a critical OS command injection vulnerability located within the killSessionSync function.\nThis vulnerability stems from improper neutralization of input data before it is passed to a system-level command execution primitive.\nAn attacker capable of providing crafted input to this function can achieve arbitrary command execution with the privileges of the underlying runtime process.\nThe impact includes full system compromise, unauthorized data access, and potential lateral movement within the host environment.\nThis flaw represents a significant security risk, as it allows unauthenticated or unauthorized parties to execute unintended instructions on the host OS.\nThe risk is exacerbated if the ai-maestro agent runs with elevated privileges, potentially leading to a complete host takeover.",
"technicalDetails": "The vulnerability is situated in the lib/agent-runtime.ts file within the killSessionSync function.\nThe root cause is the usage of an insecure execution mechanism where user-controlled input is concatenated directly into a shell command string without adequate sanitization, escaping, or parameterization.\nWhen killSessionSync is invoked, the application fails to validate the structure of the input, allowing an attacker to inject shell metacharacters such as ';', '&&', or '|'.\nBy manipulating the session identifier or associated parameters, an attacker can break out of the intended command context and append arbitrary malicious commands.\nThe attack flow commences when an attacker delivers a specially crafted payload to an input vector that eventually reaches the vulnerable function.\nOnce the payload is received, the underlying runtime interpreter parses the injected command sequence, executing the attacker-supplied instructions in the shell environment context.\nBecause the function is designed to handle session termination, it may operate in an environment where the agent has sufficient permissions to modify files, trigger network connections, or exfiltrate sensitive configuration data.\nPost-exploitation impact is severe, as the attacker effectively operates with the permissions of the ai-maestro runtime; this could be used to install persistent backdoors, deploy ransomware, or exfiltrate data from the ai-maestro workspace.\nThe vulnerability is present in version 0.24.17 and persists until the input handling logic is refactored to use safe APIs that do not invoke a shell, such as execFile, which treats arguments as discrete entities rather than part of a single shell-parsed string."
}