CVE-2024-12391: binary-husky/gpt_academic · ReDoS
Affects binary-husky/gpt_academicSource CVE Database V5
Not known to be exploited · CVSS 6.5 Medium.
Data as of 26 Oct 2026, 06:15 UTC
- EPSS
- 0.9% chance of exploitation in 30 days – higher than 60% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Mar 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
AI-suggested
To mitigate CVE-2024-12391, organizations should implement several specific measures beyond generic advice: 1) Restrict the ability to supply arbitrary regular expressions to trusted users only, enforcing strict access controls on interfaces that accept regex input. 2) Sanitize and validate all user-supplied regular expressions to detect and reject patterns known to cause exponential backtracking or excessive complexity. 3) Employ regex execution timeouts or resource limits within the Python environment to prevent long-running regex operations from hanging the server. 4) Monitor CPU and memory usage of processes running regex operations to detect anomalous spikes indicative of ReDoS attempts. 5) Where possible, replace vulnerable regex patterns with safer alternatives or use regex libraries that provide guaranteed linear-time matching. 6) Keep the binary-husky/gpt_academic software up to date and apply patches promptly once available. 7) Consider isolating regex processing in sandboxed environments or separate worker processes to contain potential DoS impacts. 8) Conduct regular security reviews of code that accepts or processes regex input to identify and remediate similar risks proactively.
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.