CVE-2024-7456: Lunary AI - SQL Injection
- Cve: CVE-2024-7456
- Name: Lunary AI - SQL Injection
- 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.
- Impact: Attackers can execute arbitrary SQL commands, leading to data loss, modification, or corruption.
- Remediation: Sanitize and validate 'orderByClause' on the server side before use in SQL queries.
- Vulnerability type: sql_injection
- Vulnerability impact: data_tampering, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01398
- Epss percentile: 0.73165
- Assignee: [email protected]
- Published at: 2024-11-01T12:15:03Z
- Age in days: 753
- Modified at: 2026-06-17T08:20:14Z
- Public exploits total: 2
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-7456
- Nvd status: analyzed
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://huntr.com/bounties/bfb3015e-5642-4d94-ab49-e8b49c4e07e4 | nvd | 2024-11-01 |
| https://github.com/77Philly/CVE-2024-7456scripts | poc-in-github | 2024-11-02 |
References
| Url | Source | Tags |
|---|---|---|
| https://huntr.com/bounties/bfb3015e-5642-4d94-ab49-e8b49c4e07e4 | nvd | Exploit, Third Party Advisory |
| https://github.com/lunary-ai/lunary/commit/6a0bc201181e0f4a0cc375ccf4ef0d7ae65c8a8e | nvd | Product |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| lunary:lunary | = 1.4.2 | no | nvd | /v1/products/lunary/lunary |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| lunary-ai/lunary | commit | yes | /v1/repositories/lunary-ai/lunary |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2024-11-01
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts