Skip to content
MediumVulnerabilityLLM-specific

CVE-2024-12391: binary-husky/gpt_academic ReDoS via user-provided regex in source parsing

Identifier
CVE-2024-12391
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.9%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2024-12391 affects binary-husky/gpt_academic as of commit 310122f. The function '解析项目源码(手动指定和筛选源码文件类型)' runs user-provided regular expressions, and certain patterns make the Python RE engine take exponential time. An attacker who controls both the regex and the search string can hang the server for an arbitrary duration.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.