Auth bypass in Lunary
CVE-2024-4146
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.
Vulnerability class: Broken Access Control
EPSS: 0.005 (42.3th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Lunary — versions 1.2.13
- Lunary-ai Lunary-ai/lunary — versions unspecified
Weakness classification (CWE)
References
- security@huntr.dev (Exploit, Issue Tracking)
- security@huntr.dev (Patch)
Frequently asked questions
- What is CVE-2024-4146?
- CVE-2024-4146 is a critical-severity vulnerability in Lunary, classified under Incorrect Authorization. CVSS score: 9.8/10. Published 2024-06-08.
- How severe is CVE-2024-4146?
- Critical severity. CVSS v3 base score is 9.8 out of 10.