CWE
285 863
EPSS
0.043%
Advisory Published
Advisory Published
Updated

CVE-2024-4146: Incorrect Authorization in lunary-ai/lunary

First published: Sat Jun 08 2024(Updated: )

In lunary-ai/lunary version v1.2.13, an incorrect authorization vulnerability exists that allows unauthorized users to access and manipulate projects within an organization they should not have access to. Specifically, the vulnerability is located in the `checkProjectAccess` method within the authorization middleware, which fails to adequately verify if a user has the correct permissions to access a specific project. Instead, it only checks if the user is part of the organization owning the project, overlooking the necessary check against the `account_project` table for explicit project access rights. This flaw enables attackers to gain complete control over all resources within a project, including the ability to create, update, read, and delete any resource, compromising the privacy and security of sensitive information.

Credit: security@huntr.dev security@huntr.dev

Affected SoftwareAffected VersionHow to fix
npm/lunary<1.2.26
1.2.26
lunary lunary=1.2.13

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-4146?

    CVE-2024-4146 is classified as a critical vulnerability due to its potential for unauthorized access and manipulation of sensitive projects.

  • How do I fix CVE-2024-4146?

    To fix CVE-2024-4146, upgrade lunary to version 1.2.26 or later where the vulnerability has been patched.

  • What versions of lunary are affected by CVE-2024-4146?

    CVE-2024-4146 affects lunary version 1.2.13 and prior versions.

  • What kind of attacks can exploit CVE-2024-4146?

    CVE-2024-4146 can be exploited by unauthorized users to access and manipulate projects within an organization.

  • Is CVE-2024-4146 related to authentication issues?

    Yes, CVE-2024-4146 stems from an incorrect authorization vulnerability in the checkProjectAccess method.

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