# CVE-2024-6582: Broken Access Control in lunary-ai/lunary

- Severity: Medium 6.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/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.42%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-09-13T16:11:39.817Z
- Modified: 2026-09-10T03:50:19.033Z
- Also known as: GHSA-w73r-8mm4-cfvf
- Weaknesses: CWE-287, CWE-306
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

## Description

A broken access control vulnerability exists in the latest version of lunary-ai/lunary. The `saml.ts` file allows a user from one organization to update the Identity Provider (IDP) settings and view the SSO metadata of another organization. This vulnerability can lead to unauthorized access and potential account takeover if the email of a user in the target organization is known.

(As written by CVE List.)

## Affected

- lunary-ai lunary-ai/lunary: from unspecified before 1.4.9
- lunary-ai lunary-ai\/lunary: before 1.4.9
- lunary (npm): before 1.4.9
- lunary lunary: before 1.4.9

## Every score

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

## References

- <https://huntr.com/bounties/251d138c-3911-4a81-96e5-5a4ab59a0b59> (exploit, third-party-advisory, web)
- <https://github.com/lunary-ai/lunary/commit/1f043d8798ad87346dfe378eea723bff78ad7433> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6582> (advisory)
- <https://github.com/lunary-ai/lunary> (package)

## Sources

- CVE List: [CVE-2024-6582](https://www.cve.org/CVERecord?id=CVE-2024-6582), CVE Terms of Use, modified 2024-11-03
- GitHub Advisory Database: [GHSA-w73r-8mm4-cfvf](https://github.com/advisories/GHSA-w73r-8mm4-cfvf), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-6582](https://nvd.nist.gov/vuln/detail/CVE-2024-6582), Public domain, modified 2026-06-17

---

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