Skip to main content

Chatgpt On Wechat Cowagent CVE-2026-5998

| EUVDEUVD-2026-21277 MEDIUM
Path Traversal (CWE-22)
2026-04-10 VulDB GHSA-m63g-rhjw-f2v6
5.5
CVSS 4.0 · NVD
Share

Severity by source

NVD PRIMARY
5.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

5
PoC Detected
Apr 10, 2026 - 02:16 vuln.today
Public exploit code
EUVD ID Assigned
Apr 10, 2026 - 01:45 euvd
EUVD-2026-21277
Analysis Generated
Apr 10, 2026 - 01:45 vuln.today
Patch released
Apr 10, 2026 - 01:45 nvd
Patch available
CVE Published
Apr 10, 2026 - 01:30 nvd
MEDIUM 5.5

DescriptionCVE.org

A flaw has been found in zhayujie chatgpt-on-wechat CowAgent up to 2.0.4. This affects the function dispatch of the file agent/memory/service.py of the component API Memory Content Endpoint. This manipulation of the argument filename causes path traversal. The attack can be initiated remotely. The exploit has been published and may be used. Upgrading to version 2.0.5 mitigates this issue. Patch name: 174ee0cafc9e8e9d97a23c305418251485b8aa89. It is recommended to upgrade the affected component. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.

AnalysisAI

Path traversal in zhayujie chatgpt-on-wechat CowAgent up to version 2.0.4 allows unauthenticated remote attackers to read arbitrary files via the filename parameter in the API Memory Content Endpoint (agent/memory/service.py). The vulnerability has a publicly available exploit, carries a moderate CVSS score of 5.3 reflecting limited confidentiality impact, and has been patched by the vendor in version 2.0.5 with patch commit 174ee0cafc9e8e9d97a23c305418251485b8aa89.

Technical ContextAI

The vulnerability resides in the API Memory Content Endpoint of the CowAgent component, specifically in the file agent/memory/service.py. The root cause is improper input validation on the filename parameter during the dispatch function, enabling CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) exploitation. An attacker can inject path traversal sequences (such as ../ or absolute paths) into the filename argument to escape the intended directory boundary and access files outside the application's designated memory storage location. This is a classic path traversal attack against a REST API endpoint that performs file operations without sanitizing user-supplied path components.

RemediationAI

Vendor-released patch: upgrade to version 2.0.5 or later, which is available at https://github.com/zhayujie/chatgpt-on-wechat/releases/tag/2.0.5. The specific patch commit is 174ee0cafc9e8e9d97a23c305418251485b8aa89. Organizations should immediately update their CowAgent deployment to the patched version to remediate the path traversal vulnerability. No workarounds are documented; patching is the primary mitigation path. The vendor has responded professionally and expedited the fix release.

Share

CVE-2026-5998 vulnerability details – vuln.today

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