SecurityContext

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

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
https://huntr.com/bounties/bfb3015e-5642-4d94-ab49-e8b49c4e07e4nvd2024-11-01
https://github.com/77Philly/CVE-2024-7456scriptspoc-in-github2024-11-02

References

UrlSourceTags
https://huntr.com/bounties/bfb3015e-5642-4d94-ab49-e8b49c4e07e4nvdExploit, Third Party Advisory
https://github.com/lunary-ai/lunary/commit/6a0bc201181e0f4a0cc375ccf4ef0d7ae65c8a8envdProduct

Products

ProductAffectedPlatform boundSourcesUrl
lunary:lunary= 1.4.2nonvd/v1/products/lunary/lunary

Projects

RepositoryLink kindsIndexedUrl
lunary-ai/lunarycommityes/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