# CVE-2024-5127: Improper Access Control in lunary-ai/lunary

- Severity: Medium 5.4 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- 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.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-06T17:26:35.057Z
- Modified: 2026-06-17T08:15:15.350Z
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

In lunary-ai/lunary versions 1.2.2 through 1.2.25, an improper access control vulnerability allows users on the Free plan to invite other members and assign them any role, including those intended for Paid and Enterprise plans only. This issue arises due to insufficient backend validation of roles and permissions, enabling unauthorized users to join a project and potentially exploit roles and permissions not intended for their use. The vulnerability specifically affects the Team feature, where the backend fails to validate whether a user has paid for a plan before allowing them to send invite links with any role assigned. This could lead to unauthorized access and manipulation of project settings or data.

(As written by CVE List.)

## Affected

- lunary-ai lunary-ai/lunary: from unspecified before 1.2.25
- lunary-ai lunary: from 1.2.2 before 1.2.25
- lunary lunary: from 1.2.2 before 1.2.25

## Every score

- @huntr_ai: CVSS:3.0 5.4 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://huntr.com/bounties/719a5db3-f943-4100-a660-011cadf1bb32> (exploit, third-party-advisory)
- <https://github.com/lunary-ai/lunary/commit/b7bd3a830a0f47ba07d0fd57bf78c4dd8a216297> (patch)

## Sources

- CVE List: [CVE-2024-5127](https://www.cve.org/CVERecord?id=CVE-2024-5127), CVE Terms of Use, modified 2024-11-03
- NVD: [CVE-2024-5127](https://nvd.nist.gov/vuln/detail/CVE-2024-5127), Public domain, modified 2026-06-17

---

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