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.
Command injection vulnerability in ModelScope's ms-agent
Problem type
- CWE-94 Improper Control of Generation of Code ('Code Injection')
Affected products
ModelScope
<= v1.6.0rc1 - AFFECTED
References
https://github.com/modelscope/ms-agent
https://www.hiddenlayer.com/research/indirect-prompt-injection-of-claude-computer-use
https://medium.com/@itamar.yochpaz/cve-2026-2256-from-ai-prompt-to-full-system-compromise-a4114c718326
https://github.com/Itamar-Yochpaz/CVE-2026-2256-PoC
GitHub Security Advisories
GHSA-4gc2-344q-r2rw
A command injection vulnerability in ModelScope's ms-agent versions v1.6.0rc1 and earlier exists,...
https://github.com/advisories/GHSA-4gc2-344q-r2rwA 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.
https://nvd.nist.gov/vuln/detail/CVE-2026-2256
https://github.com/Itamar-Yochpaz/CVE-2026-2256-PoC
https://github.com/modelscope/ms-agent
https://medium.com/@itamar.yochpaz/cve-2026-2256-from-ai-prompt-to-full-system-compromise-a4114c718326
https://www.hiddenlayer.com/research/indirect-prompt-injection-of-claude-computer-use
https://github.com/advisories/GHSA-4gc2-344q-r2rw
JSON source
https://cveawg.mitre.org/api/cve/CVE-2026-2256Click to expand
{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-2256",
"assignerOrgId": "37e5125f-f79b-445b-8fad-9564f167944b",
"assignerShortName": "certcc",
"dateUpdated": "2026-03-02T21:10:07.108Z",
"dateReserved": "2026-02-09T15:23:17.916Z",
"datePublished": "2026-03-02T20:09:11.808Z",
"state": "PUBLISHED"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "37e5125f-f79b-445b-8fad-9564f167944b",
"shortName": "certcc",
"dateUpdated": "2026-03-02T20:09:11.808Z"
},
"title": "Command injection vulnerability in ModelScope's ms-agent",
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"affected": [
{
"vendor": "ModelScope",
"product": "ms-agent",
"versions": [
{
"version": "0",
"status": "affected",
"versionType": "custom",
"lessThanOrEqual": "v1.6.0rc1"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "CWE-94 Improper Control of Generation of Code ('Code Injection')"
}
]
}
],
"references": [
{
"url": "https://github.com/modelscope/ms-agent"
},
{
"url": "https://www.hiddenlayer.com/research/indirect-prompt-injection-of-claude-computer-use"
},
{
"url": "https://medium.com/@itamar.yochpaz/cve-2026-2256-from-ai-prompt-to-full-system-compromise-a4114c718326"
},
{
"url": "https://github.com/Itamar-Yochpaz/CVE-2026-2256-PoC"
}
]
},
"adp": [
{
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2026-03-02T21:10:07.108Z"
},
"title": "CVE Program Container",
"references": [
{
"url": "https://www.kb.cert.org/vuls/id/431821"
}
]
}
]
}
}