CVE-2026-2256: Ms agent MS-Agent Vulnerable To Command Injection Vulnerability
MODERATECVE-2026-2256 is a MODERATE (CVSS 6.5) ms-agent vulnerable to command injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Ms agent libraries in the PyPI ecosystem. The issue involves ms-agent vulnerable to command injection. Remediation is available in the latest vendor maintenance releases.
CVE-2026-2256 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2026-2256
To remediate this vulnerability, upgrade all affected Ms agent dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install ms-agent>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show ms-agent
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-2256, inspect your installed packages using pip:
pip show ms-agent
Analyze the terminal output to locate any version of Ms agent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show ms-agent command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Ms agent, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-2256 Affected Ms agent Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ms-agent
|
PyPI |
≤ 1.6.0rc1
|
|
References
Frequently Asked Questions
What is CVE-2026-2256?
Which Ms agent versions are affected?
What version fixes CVE-2026-2256?
Is ms-agent affected?
What is the CVSS score of CVE-2026-2256?
What CWE is associated with CVE-2026-2256?
How can I check PyPI dependencies for CVE-2026-2256?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4gc2-344q-r2rw",
"modified" : "2026-03-04T21:14:09Z",
"published" : "2026-03-02T21:31:32Z",
"aliases" : [ "CVE-2026-2256" ],
"summary" : "MS-Agent vulnerable to Command Injection",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "ms-agent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.6.0rc1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-2256"
}, {
"type" : "WEB",
"url" : "https://github.com/Itamar-Yochpaz/CVE-2026-2256-PoC"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/modelscope/ms-agent"
}, {
"type" : "WEB",
"url" : "https://medium.com/@itamar.yochpaz/cve-2026-2256-from-ai-prompt-to-full-system-compromise-a4114c718326"
}, {
"type" : "WEB",
"url" : "https://www.hiddenlayer.com/research/indirect-prompt-injection-of-claude-computer-use"
}, {
"type" : "WEB",
"url" : "https://www.kb.cert.org/vuls/id/431821"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-04T21:14:09Z",
"nvd_published_at" : "2026-03-02T21:16:27Z"
}
}