CVE-2026-2256 Command injection vulnerability in ModelScope's ms-agent

Medium 6.5 Published Updated

Attackers can execute arbitrary OS commands via crafted prompts in ModelScope's ms-agent library, requiring an upgrade to mitigate.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-2256?

CVE-2026-2256 is a medium-severity command injection vulnerability in ModelScope ms-agent, published on 2 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A command injection vulnerability in ModelScope's ms-agent versions v1.6.0rc1 and earlier exists, allowing an attacker to execute arbitrary operating system commands through crafted prompt-derived input.

Weakness: CWE-77

Which versions are affected by CVE-2026-2256?

3 open source packages ship an affected version, including ms-agent.

PackageAffectedFixed in
ms-agent PyPIAll versions to 1.6.0rc1None
ms-agent PyPIAll versions to 1.6.0rc1None
ms-agent PyPIAll versions to 1.6.0rc1None

How do I fix CVE-2026-2256?

No fix has been published for CVE-2026-2256 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-2256 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-2256 exists.

Public exploit code: 3 proofs of concept on GitHub.

Sources

Also known as GHSA-4gc2-344q-r2rw, PYSEC-2026-2668.

Is CVE-2026-2256 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free