Skip to main content

chatgpt-on-wechat CVE-2026-10214

| EUVDEUVD-2026-33535 MEDIUM
OS Command Injection (CWE-78)
2026-06-01 VulDB GHSA-qvrw-783g-pmvr
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed CowAgent web console
  2. Delivery
    Connect to unauthenticated chat endpoint
  3. Exploit
    Submit prompt invoking Bash Tool
  4. Execution
    Inject shell metacharacters bypassing _get_safety_warning
  5. Persist
    Execute arbitrary OS commands as agent user
  6. Impact
    Harvest 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

chatgpt-on-wechat 2.0.7
chatgpt-on-wechat 2.0.2
chatgpt-on-wechat 2.0.4
chatgpt-on-wechat 2.0.8
chatgpt-on-wechat 2.0.1
chatgpt-on-wechat 2.0.6
chatgpt-on-wechat 2.0.0
chatgpt-on-wechat 2.0.3
chatgpt-on-wechat 2.0.5

Affected Packages

euvd chatgpt_on_wechat no fix

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

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
Jun 01, 2026 - 03:22 NVD
HIGH MEDIUM
CVSS changed
Jun 01, 2026 - 03:22 NVD
7.3 (HIGH) 5.5 (MEDIUM)

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch to version 2.0.9.

Threat Intelligence Overview

EPSS Score
0.8%
Top 25% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy