CVE-2023-33979
MediumCVSS 6.5Exploitation Probability (EPSS)
Low risk50th percentile - higher than 50% of all known CVEs
Summary
A vulnerability was found in gpt_academic version 3.37 and prior, allowing information disclosure through manipulation of the file argument in the Configuration File Handler component. This enables reading sensitive configuration files in some working directories.
Risk Assessment
This vulnerability may lead to sensitive information leakage, posing a serious threat to the security of user data relying on configuration files.
Recommendation
It is recommended to use environment variables instead of `config*.py` files for project configuration or to use docker-compose installation to secure the configuration.
Original NVD description (English source)
gpt_academic provides a graphical interface for ChatGPT/GLM. A vulnerability was found in gpt_academic 3.37 and prior. This issue affects some unknown processing of the component Configuration File Handler. The manipulation of the argument file leads to information disclosure. Since no sensitive files are configured to be off-limits, sensitive information files in some working directories can be read through the `/file` route, leading to sensitive information leakage. This affects users that uses file configurations via `config.py`, `config_private.py`, `Dockerfile`. A patch is available at commit 1dcc2873d2168ad2d3d70afcb453ac1695fbdf02. As a workaround, one may use environment variables instead of `config*.py` files to configure this project, or use docker-compose installation to configure this project.

