# CVE-2024-7456: SQL Injection in lunary-ai/lunary

- Severity: Critical 9.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.32%, higher than 84% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-11-01T12:05:12.189Z
- Modified: 2026-06-17T08:20:14.510Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- lunary-ai lunary-ai/lunary: from unspecified before 1.4.3
- lunary-ai lunary-ai\/lunary: before 1.4.3
- lunary lunary: 1.4.2

## Every score

- @huntr_ai: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/bfb3015e-5642-4d94-ab49-e8b49c4e07e4> (exploit, third-party-advisory)
- <https://github.com/lunary-ai/lunary/commit/6a0bc201181e0f4a0cc375ccf4ef0d7ae65c8a8e> (product)

## Sources

- CVE List: [CVE-2024-7456](https://www.cve.org/CVERecord?id=CVE-2024-7456), CVE Terms of Use, modified 2024-11-01
- NVD: [CVE-2024-7456](https://nvd.nist.gov/vuln/detail/CVE-2024-7456), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-7456 · Whole record: https://cve.day/CVE-2024-7456.json · Rebuilt by cve.day 2026-11-25T22:58:47.578Z
