CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2024 · Gaizhenbiao

CVE-2024-5982
Gaizhenbiao Chuanhuchatgpt vulnerability

A path traversal vulnerability exists in the latest version of gaizhenbiao/chuanhuchatgpt. The vulnerability arises from unsanitized input handling in multiple features, including user upload, directory creation, and template loading. Specifically, the load_chat_history function in modules/models/base_model.py allows arbitrary file uploads, potentially leading to remote code execution (RCE). The get_history_names function in utils.py permits arbitrary directory creation. Additionally, the load_template function in utils.py can be exploited to leak the first column of CSV files. These issues stem from improper sanitization of user inputs concatenated with directory paths using os.path.join.

High priority: this vulnerability is rated critical and can be attacked over the network without a login.

Affected products

Chuanhuchatgpt. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Gaizhenbiao Chuanhuchatgpt runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Gaizhenbiao products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.