# CVE-2026-5998: zhayujie chatgpt-on-wechat CowAgent API Memory Content Endpoint service.py dispatch path traversal

- Severity: Medium 6.9 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-10T01:30:17.358Z
- Modified: 2026-10-26T22:10:00.163Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulDB

## Description

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.

(As written by CVE List.)

## Affected

- zhayujie chatgpt-on-wechat CowAgent: 2.0.0; 2.0.1; 2.0.2; 2.0.3; 2.0.4 (not affected: 2.0.5)

## Every score

- VulDB: CVSS:4.0 6.9 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`
- VulDB: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:O/RC:C`
- VulDB: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N/E:POC/RL:OF/RC:C`

## References

- <https://github.com/zhayujie/chatgpt-on-wechat/issues/2734#issue-4178013778> (exploit, issue-tracking)
- <https://vuldb.com/vuln/356552> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/356552/cti> (permissions-required, signature)
- <https://vuldb.com/submit/793558> (third-party-advisory)
- <https://github.com/zhayujie/chatgpt-on-wechat/issues/2734> (issue-tracking)
- <https://github.com/zhayujie/chatgpt-on-wechat/commit/174ee0cafc9e8e9d97a23c305418251485b8aa89> (patch)
- <https://github.com/zhayujie/chatgpt-on-wechat/releases/tag/2.0.5> (patch)

## Sources

- CVE List: [CVE-2026-5998](https://www.cve.org/CVERecord?id=CVE-2026-5998), CVE Terms of Use, modified 2026-04-10
- NVD: [CVE-2026-5998](https://nvd.nist.gov/vuln/detail/CVE-2026-5998), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-5998 · Whole record: https://cve.day/CVE-2026-5998.json · Rebuilt by cve.day 2026-11-25T22:59:18.474Z
