CWE
89
Advisory Published
Updated

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

First published: Fri Nov 01 2024(Updated: )

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.

Credit: security@huntr.dev

Affected SoftwareAffected VersionHow to fix
lunary lunary=1.4.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-7456?

    CVE-2024-7456 has been classified as a high severity vulnerability due to the potential for SQL injection exploitation.

  • How do I fix CVE-2024-7456?

    To fix CVE-2024-7456, ensure that the `orderByClause` is properly sanitized before being included in the SQL query.

  • What software versions are affected by CVE-2024-7456?

    CVE-2024-7456 affects lunary version 1.4.2.

  • What types of attacks can CVE-2024-7456 enable?

    CVE-2024-7456 can enable attackers to execute arbitrary SQL commands, potentially allowing access to sensitive data.

  • Is CVE-2024-7456 mitigated in later versions of lunary?

    Yes, later versions of lunary may contain patches that address CVE-2024-7456, but users should verify specific updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203