PT-2025-12242 · Unknown · Lunary-Ai/Lunary
Published
2025-03-20
·
Updated
2025-07-02
·
CVE-2024-8763
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
lunary-ai/lunary version git be54057
Description
A Regular Expression Denial of Service (ReDoS) issue exists in the compileTextTemplate function. This is due to the regular expression
/{{(.*?)}}/g being susceptible to second-degree polynomial time complexity, which can be triggered by a large number of braces in the input. An attacker can exploit this by manipulating the regular expression, causing the server to hang indefinitely and become unresponsive to requests.Recommendations
For version git be54057, consider disabling the
compileTextTemplate function until a patch is available to prevent exploitation of the ReDoS vulnerability. Restrict input to prevent a large number of braces from being processed by the vulnerable regular expression /{{(.*?)}}/g.Exploit
Fix
DoS
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Lunary-Ai/Lunary