# CVE-2024-12391: Regular Expression Denial of Service (ReDoS) in binary-husky/gpt_academic

- Severity: Medium 6.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:10:33.279Z
- Modified: 2026-06-17T06:59:38.143Z
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- binary-husky binary-husky/gpt_academic: from unspecified up to latest
- binary-husky gpt_academic: 2024-10-15

## References

- <https://huntr.com/bounties/70b3f4f0-6b1b-4563-a18c-fe46502e6ba0> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2024-12391](https://www.cve.org/CVERecord?id=CVE-2024-12391), CVE Terms of Use, modified 2025-10-15
- NVD: [CVE-2024-12391](https://nvd.nist.gov/vuln/detail/CVE-2024-12391), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-12391 · Whole record: https://cve.day/CVE-2024-12391.json · Rebuilt by cve.day 2026-11-25T22:58:52.358Z
