CVE-2024-8763 Regular Expression Denial of Service (ReDoS) in lunary-ai/lunary
HighCVSS 7.5
EPSS 0.82%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
Description
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the lunary-ai/lunary repository, specifically in the compileTextTemplate function. The affected version is git be54057. An attacker can exploit this vulnerability by manipulating the regular expression /{{(.*?)}}/g, causing the server to hang indefinitely and become unresponsive to any requests. This is due to the regular expression's susceptibility to second-degree polynomial time complexity, which can be triggered by a large number of braces in the input.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| lunary | < 1.4.23 | 1.4.23 | Fixed |
| lunary-ai/lunary | < 1.4.23 | 1.4.23 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| lunary-ai/lunary | < 1.4.23 | 1.4.23 |
| lunary | < 1.4.23 | 1.4.23 |
References
- huntr.com exploit third-party-advisory
- github.com patch