cve/2024/CVE-2024-7456.md

18 lines
1.0 KiB
Markdown
Raw Normal View History

2025-09-29 16:08:36 +00:00
### [CVE-2024-7456](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-7456)
![](https://img.shields.io/static/v1?label=Product&message=lunary-ai%2Flunary&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=unspecified%3C%201.4.3%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-89%20Improper%20Neutralization%20of%20Special%20Elements%20used%20in%20an%20SQL%20Command&color=brighgreen)
### Description
A SQL injection vulnerability exists in the `/api/v1/external-users` route of lunary-ai/lunary version v1.4.2. The `order by` clause of the SQL query uses `sql.unsafe` without prior sanitization, allowing for SQL injection. The `orderByClause` variable is constructed without server-side validation or sanitization, enabling an attacker to execute arbitrary SQL commands. Successful exploitation can lead to complete data loss, modification, or corruption.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/77Philly/CVE-2024-7456scripts