CVE-2024-12391
JSON

6.5medium

Regular Expression Denial of Service (ReDoS) in binary-husky/gpt_academic

Severity
6.5medium CVSS:3.0 by @huntr_ai
Exploit likelihood
0.95% (higher than 62% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai

Description

A vulnerability in binary-husky/gpt_academic, as of commit 310122f, allows for a Regular Expression Denial of Service (ReDoS) attack. The function '解析项目源码(手动指定和筛选源码文件类型)' permits the execution of user-provided regular expressions. Certain regular expressions can cause the Python RE engine to take exponential time to execute, leading to a Denial of Service (DoS) condition. An attacker who controls both the regular expression and the search string can exploit this vulnerability to hang the server for an arbitrary amount of time.

Affected

Product or packageVersionsReported by
binary-husky binary-husky/gpt_academicfrom unspecified up to latestCVE List
binary-husky gpt_academic2024-10-15NVD

Classification

CWE-1333

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

What each source says

CVE List

A vulnerability in binary-husky/gpt_academic, as of commit 310122f, allows for a Regular Expression Denial of Service (ReDoS) attack. The function '解析项目源码(手动指定和筛选源码文件类型)' permits the execution of user-provided regular expressions. Certain regular expressions can cause the Python RE engine to take exponential time to execute, leading to a Denial of Service (DoS) condition. An attacker who controls both the regular expression and the search string can exploit this vulnerability to hang the server for an arbitrary amount of time.

NVD (es)

Una vulnerabilidad en binary-husky/gpt_academic, a partir de la confirmación 310122f, permite un ataque de denegación de servicio mediante expresiones regulares (ReDoS). La función '?????????????????????' permite la ejecución de expresiones regulares proporcionadas por el usuario. Ciertas expresiones regulares pueden provocar que el motor de Python RE tarde exponencialmente en ejecutarse, lo que provoca una denegación de servicio (DoS). Un atacante que controle tanto la expresión regular como la cadena de búsqueda puede explotar esta vulnerabilidad para bloquear el servidor durante un tiempo arbitrario.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-12391 changed 2025-10-15CVE Terms of Use
NVDCVE-2024-12391 changed 2026-06-17Public domain