Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed CowAgent web console
-
DeliveryConnect to unauthenticated chat endpoint
-
ExploitSubmit prompt invoking Bash Tool
-
ExecutionInject shell metacharacters bypassing _get_safety_warning
-
PersistExecute arbitrary OS commands as agent user
-
ImpactHarvest secrets and pivot internally
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires network reachability to a chatgpt-on-wechat / CowAgent instance running version 2.0.8 or earlier with the Bash Tool enabled in the agent's tool configuration, and a path to send agent input that reaches the vulnerable _get_safety_warning code in agent/tools/bash/bash.py - typically via the web console (web channel) or another configured channel that allows free-form prompts to the agent. The CVSS vector AV:N/AC:L/PR:N/UI:N indicates no authentication or user interaction is required against a default deployment, and the patch diff confirms that pre-2.0.9 installations defaulted web_host to 0.0.0.0 with web_password empty, meaning the console was reachable from any network without credentials out of the box. Limiting factors include deployments that have already restricted web_host to 127.0.0.1, set a web_password, disabled the Bash Tool, or front the console behind an authenticating reverse proxy; environments where the agent is only invoked through gated channels (e.g., a private WeChat account) materially reduce exposure. |
| Impact | The CVSS 3.1 base score of 7.3 with vector AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L describes a network-reachable, low-complexity, unauthenticated flaw with low impact on each CIA dimension, which is unusual for an OS command injection since command execution typically warrants High impact - the Low ratings likely reflect the limited privilege context of the agent process or the constrained command surface, but defenders should treat successful exploitation as effectively code execution within that context. The temporal metrics (E:P/RL:O/RC:C) confirm a proof-of-concept exploit is publicly available with an official vendor fix and confirmed reporting, and no EPSS or SSVC values were provided in the input so probabilistic exploitation likelihood cannot be quantified. This CVE is not listed in CISA KEV, so exploitation status is best characterized as publicly available exploit code exists rather than confirmed in-the-wild use; the real priority is elevated for any deployment where the web console or agent endpoints are reachable from untrusted networks, particularly because the patch diff shows the project also changed default web_host binding from 0.0.0.0 to 127.0.0.1, implying many existing deployments were inadvertently internet-exposed. |
| Exploit ScenarioDerived | An attacker locates an internet-exposed chatgpt-on-wechat / CowAgent instance (default pre-2.0.9 builds bind the web console to 0.0.0.0 with no password required) and interacts with the agent in a way that invokes the Bash Tool, supplying input crafted to break out of the safety-check wrapper in _get_safety_warning and append attacker-controlled shell metacharacters. Using the publicly available proof-of-concept from the linked issue, the attacker achieves command execution under the agent process account and uses it to read configuration secrets, pivot to other internal services, or stage further tooling. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 01, 2026
OS command injection in zhayujie chatgpt-on-wechat (also known as CowAgent) versions up to and including 2.0.8 allows remote attackers to execute arbitrary operating system commands by abusing the _get_safety_warning function within the Bash Tool component (agent/tools/bash/bash.py). Publicly available exploit code exists for this issue, increasing the likelihood of opportunistic abuse, though it is not currently listed in CISA KEV. The vendor has released version 2.0.9 (commit 16d9b449c9aa53ccee44144a762a2737d7ba4fc4) addressing the flaw.
RemediationAI
Vendor-released patch: upgrade to chatgpt-on-wechat / CowAgent version 2.0.9 or later, which incorporates commit 16d9b449c9aa53ccee44144a762a2737d7ba4fc4 fixing the Bash Tool input handling, available at https://github.com/zhayujie/CowAgent/releases/tag/2.0.9 with the diff at https://github.com/zhayujie/CowAgent/commit/16d9b449c9aa53ccee44144a762a2737d7ba4fc4. If immediate upgrade is not possible, restrict reachability of the agent and web console by setting web_host to 127.0.0.1 in config.json (the 2.0.9 release changes the default to localhost-only, so replicating this manually is an effective interim control at the cost of losing remote console access), and if 0.0.0.0 binding is required set a strong web_password to gate access - note this only blunts opportunistic exploitation and does not prevent abuse by anyone with valid console credentials. As a deeper compensating control, disable or remove the Bash Tool from the agent's tool registry so that arbitrary shell execution paths are not exposed, accepting that any agent workflows depending on shell execution will break; corroborating advisory information is tracked at https://vuldb.com/vuln/367493.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
chatgpt-on-wechat (rebranded CowAgent) is a Python-based agent framework that bridges large language model chat capabilities to WeChat and other channels, exposing a web console and agent tooling including a Bash Tool that can execute shell commands as part of agent workflows. The vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), specifically located in the _get_safety_warning function of agent/tools/bash/bash.py, where input intended to be evaluated for safety is instead passed in a way that permits injection of additional shell metacharacters or commands. The CPE cpe:2.3:a:zhayujie:chatgpt-on-wechat covers all versions of the product up to the fix, and the related patch commit on the CowAgent repository also tightens the web console's default bind behavior (web_host) and password handling, indicating that exposure of the Bash Tool is closely tied to how the web channel is deployed.
Know when Chatgpt On Wechat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A weakness has been identified in zhayujie chatgpt-on-wechat up to 2.0.8. This issue affects the function _get_safety_warning of the file agent/tools/bash/bash.py of the component Bash Tool. Executing a manipulation can lead to os command injection. The attack can be launched remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 2.0.9 is capable of addressing this issue. This patch is called 16d9b449c9aa53ccee44144a762a2737d7ba4fc4. It is recommended to upgrade the affected component.
Executive ViewAI
A remote command injection vulnerability in chatgpt-on-wechat (versions ≤2.0.8) enables attackers to execute arbitrary operating system commands on affected systems, risking complete infrastructure compromise. Public exploit availability increases the likelihood of near-term attacks against deployed instances. Any organization using this chatbot integration tool in production requires immediate remediation.
Apply vendor patch to version 2.0.9.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-33535
GHSA-qvrw-783g-pmvr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB