CyberSIXT Search
Original

SecurityWeekIonut Arghire

CVE-2026-2256: MS-Agent Shell flaw lets attackers run OS commands

A vulnerability in the ModelScope MS-Agent framework, tracked as CVE-2026-2256, can be exploited through crafted input to execute arbitrary OS commands, potentially allowing full system compromise. The flaw resides in MS-Agent’s Shell tool, which runs host commands but fails to sanitise input properly, despite six validation layers prior to execution.

A security researcher explains that the tool’s regex-based blacklist is unsafe, enabling attackers to bypass safety checks by having the command string interpreted as executable logic. An attacker can inject content into data sources consumed by the agent—such as prompts, documents or logs—to cause the agent to select the Shell tool and generate a shell command containing attacker-influenced text, bypassing blacklist checks during execution.

As a result, commands can run with the privileges of the MS-Agent process, potentially allowing the attacker to read secrets, drop payloads, modify workspace state, establish persistence and pivot to internal services, potentially leading to full host compromise, according to the CERT/CC advisory. The vulnerability was discovered in MS-Agent version 1.5.2, and the advisory recommends deploying only in trusted environments, sandboxing shell-enabled agents, and replacing denylist filtering with strict allowlists.

Sources

On this device

Following

Intel

VendorsThreat actorsResearch reports

Settings

CyberSIXT summarises security news every 30 minutes.

↑↓ move↵ open⌘C copy CVE IDEsc close

Keyboard shortcuts

Everything works with a mouse or touch. Shortcuts are a faster path.

Search ⌘K
Search /
Next item J
Previous item K
Go to Today GT
Go to News GN
Go to CVEs GC
Go to Briefing GB
Reduce motion on this device