CVE-2025-25185
JSON

7.5high

GPT Academic allows arbitary file read by tarfile uncompress within softlink

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.64% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

GPT Academic provides interactive interfaces for large language models. In 3.91 and earlier, GPT Academic does not properly account for soft links. An attacker can create a malicious file as a soft link pointing to a target file, then package this soft link file into a tar.gz file and upload it. Subsequently, when accessing the decompressed file from the server, the soft link will point to the target file on the victim server. The vulnerability allows attackers to read all files on the server.

Affected

Product or packageVersionsReported by
binary-husky gpt_academic<= 3.91CVE List, NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-59

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

GPT Academic provides interactive interfaces for large language models. In 3.91 and earlier, GPT Academic does not properly account for soft links. An attacker can create a malicious file as a soft link pointing to a target file, then package this soft link file into a tar.gz file and upload it. Subsequently, when accessing the decompressed file from the server, the soft link will point to the target file on the victim server. The vulnerability allows attackers to read all files on the server.

NVD (es)

GPT Academic proporciona interfaces interactivas para modelos de lenguaje de gran tamaño. En la versión 3.91 y anteriores, GPT Academic no tiene en cuenta correctamente los enlaces simbólicos. Un atacante puede crear un archivo malicioso como un enlace simbólico que apunte a un archivo de destino, luego empaquetar este archivo de enlace simbólico en un archivo tar.gz y cargarlo. Posteriormente, al acceder al archivo descomprimido desde el servidor, el enlace simbólico apuntará al archivo de destino en el servidor de la víctima. La vulnerabilidad permite a los atacantes leer todos los archivos del servidor.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-25185 changed 2025-03-03CVE Terms of Use
NVDCVE-2025-25185 changed 2026-06-17Public domain