{"id":"CVE-2024-7456","aliases":["CVE-2024-7456"],"related":[],"kind":"vulnerability","state":"published","title":"SQL Injection in lunary-ai/lunary","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Existe una vulnerabilidad de inyección SQL en la ruta `/api/v1/external-users` de la versión v1.4.2 de lunary-ai/lunary. La cláusula `order by` de la consulta SQL utiliza `sql.unsafe` sin una desinfección previa, lo que permite la inyección SQL. La variable `orderByClause` se construye sin validación ni desinfección del lado del servidor, lo que permite que un atacante ejecute comandos SQL arbitrarios. Una explotación exitosa puede provocar la pérdida, modificación o corrupción total de los datos.","source":"nvd"}],"published":"2024-11-01T12:05:12.189Z","modified":"2026-06-17T08:20:14.510Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.4.3","status":"affected"}],"vendor":"lunary-ai","product":"lunary-ai/lunary","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.4.3","status":"affected"}],"vendor":"lunary-ai","product":"lunary-ai\\/lunary","cpe":"cpe:2.3:a:lunary-ai:lunary-ai\\/lunary:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"status":"affected","version":"1.4.2"}],"vendor":"lunary","product":"lunary","cpe":"cpe:2.3:a:lunary:lunary:1.4.2:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.com/bounties/bfb3015e-5642-4d94-ab49-e8b49c4e07e4","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/lunary-ai/lunary/commit/6a0bc201181e0f4a0cc375ccf4ef0d7ae65c8a8e","tags":["product"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-11-01T13:18:25.853Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-7456","url":"https://www.cve.org/CVERecord?id=CVE-2024-7456","licence":"CVE Terms of Use","modified":"2024-11-01T13:19:19.973Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-7456","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-7456","licence":"Public domain","modified":"2026-06-17T08:20:14.510Z"}],"updatedAt":"2026-11-25T22:58:47.578Z","epss":{"score":0.02323,"percentile":0.84229,"date":"2026-11-30T12:00:22.000Z"}}