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

- Severity: Critical 9.8 (CVSS:3.1, scored by @huntr_ai) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-08T19:41:25.437Z
- Modified: 2026-09-10T03:50:16.128Z
- Also known as: GHSA-w5xm-mx47-v7c8
- Weaknesses: CWE-285, CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: @huntr_ai

## Description

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.

(As written by CVE List.)

## Affected

- lunary-ai lunary-ai/lunary: from unspecified before 1.2.26
- lunary lunary: 1.2.13
- lunary (npm): before 1.2.26

## Every score

- @huntr_ai: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/a749e696-b398-4260-b2d0-b0054b9fffa7> (exploit, issue-tracking, web)
- <https://github.com/lunary-ai/lunary/commit/c43b6c62035f32ca455f66d5fd22ba661648cde7> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-4146> (advisory)
- <https://github.com/lunary-ai/lunary> (package)

## Sources

- CVE List: [CVE-2024-4146](https://www.cve.org/CVERecord?id=CVE-2024-4146), CVE Terms of Use, modified 2024-08-30
- GitHub Advisory Database: [GHSA-w5xm-mx47-v7c8](https://github.com/advisories/GHSA-w5xm-mx47-v7c8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-4146](https://nvd.nist.gov/vuln/detail/CVE-2024-4146), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-4146 · Whole record: https://cve.day/CVE-2024-4146.json · Rebuilt by cve.day 2026-11-25T22:58:41.576Z
