CVE-2024-10948 Arbitrary File Read via Upload Function in binary-husky/gpt_academic

Medium 6.5 Published Updated

Attackers can read arbitrary system files by manipulating upload paths, exposing sensitive data like credentials and configurations.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-10948?

CVE-2024-10948 is a medium-severity path traversal vulnerability in binary-husky/gpt_academic, published on 20 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability in the upload function of binary-husky/gpt_academic allows any user to read arbitrary files on the system, including sensitive files such as `config.py`. This issue affects the latest version of the product. An attacker can exploit this vulnerability by intercepting the websocket request during file upload and replacing the file path with the path of the file they wish to read. The server then copies the file to the `private_upload` folder and provides the path to the copied file, which can be accessed via a GET request. This vulnerability can lead to the exposure of sensitive system files, potentially including credentials, configuration files, or sensitive user data.

Weakness: CWE-22

Which versions are affected by CVE-2024-10948?

It affects 1 product.

Products include Binary-Husky Gpt Academic.

How do I fix CVE-2024-10948?

No fix has been published for CVE-2024-10948 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-10948 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-10948 exists.

Sources

Also known as GHSA-4w44-j4vc-r3rp.

Is CVE-2024-10948 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free