{"id":"CVE-2024-7456","published":"2024-11-01T12:05:12Z","modified":"2024-11-01T13:19:19Z","title":"SQL Injection in lunary-ai/lunary","vendor":"lunary-ai","product":"lunary-ai/lunary","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01398,"percentile":0.73126,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://huntr.com/bounties/bfb3015e-5642-4d94-ab49-e8b49c4e07e4","tags":[]},{"url":"https://github.com/lunary-ai/lunary/commit/6a0bc201181e0f4a0cc375ccf4ef0d7ae65c8a8e","tags":[]}],"priority":{"score":21.5,"factors":[{"name":"EPSS percentile","points":14.63},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"lunary-ai","affectedVersions":[{"vendor":"lunary-ai","product":"lunary-ai/lunary","versions":[">= unspecified, < 1.4.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-11-01T13:18:25.853129Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-48378","exploited":false,"provenance":"source"}}