Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-5714 Overview
CVE-2024-5714 is an improper access control vulnerability in lunary-ai/lunary version 1.2.4. The backend fails to validate project identifiers against the current user's organization ID. A misconfigured attribute name (org_id used instead of orgId) prevents proper organization validation. Members holding team management permissions can manipulate project IDs in requests to invite users into projects belonging to other organizations. They can also move members across organizations and assign elevated privileges during the process. The flaw affects backend API endpoints that handle user invitation and modification. The issue is tracked under CWE-863: Incorrect Authorization.
Critical Impact
Authenticated team managers can escalate privileges and manipulate members across organizational boundaries, breaking the platform's multi-tenant isolation model.
Affected Products
- lunary-ai/lunary version 1.2.4
- Lunary deployments relying on the vulnerable user invitation API endpoint
- Lunary deployments relying on the vulnerable member modification API endpoint
Discovery Timeline
- 2024-06-27 - CVE-2024-5714 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-5714
Vulnerability Analysis
The vulnerability resides in Lunary's backend API endpoints responsible for user invitation and member modification. These endpoints accept project identifiers in requests without verifying that the targeted projects belong to the authenticated user's organization. An attacker with team management permissions in one organization can craft requests referencing project IDs owned by another organization. The backend accepts those requests and performs the privileged action.
Successful exploitation enables cross-tenant privilege escalation, member reassignment, and unsolicited invitations into third-party organizations. Because the issue affects authorization logic rather than authentication, attackers must already possess a valid team manager role on the instance.
Root Cause
Two defects combine to produce the flaw. First, the backend does not cross-check incoming project identifiers against the organization associated with the requesting user. Second, the code references an attribute named org_id when the correct property is orgId. The lookup silently returns undefined, bypassing the organization validation branch. The commit 43206ba corrects both the identifier mismatch and the missing authorization check.
Attack Vector
Exploitation requires network access to the Lunary API and valid credentials with team management privileges. The attacker submits an API request to the invitation or modification endpoint, substituting a project ID belonging to a foreign organization. Because the backend neither validates the project's parent organization nor properly reads the user's orgId, the request succeeds. The attacker can then invite users into that project, relocate existing members, or assign elevated roles. See the Huntr Security Bounty report for additional technical context.
Detection Methods for CVE-2024-5714
Indicators of Compromise
- API requests to user invitation or modification endpoints referencing project IDs outside the requester's organization
- Membership or role changes initiated by accounts that do not administer the affected project
- Invitation emails sent to users for projects they never requested access to
- Audit log entries showing privilege escalations without a corresponding administrative action
Detection Strategies
- Correlate the projectId parameter in API calls with the authenticated user's orgId and alert on mismatches
- Baseline normal team management activity per account and flag outliers that touch multiple organizations
- Review backend logs for requests to invitation endpoints that result in cross-organization membership changes
Monitoring Recommendations
- Enable verbose audit logging on all account, membership, and role mutation endpoints
- Forward Lunary application logs to a centralized SIEM for retention and correlation
- Alert on sudden increases in invitation or role-change API traffic from a single account
How to Mitigate CVE-2024-5714
Immediate Actions Required
- Upgrade Lunary to a version containing commit 43206ba that fixes the authorization logic
- Audit all organizations and projects for unexpected members, invitations, or role assignments made since deploying 1.2.4
- Revoke team management permissions from accounts that do not require them until the patch is applied
- Rotate credentials for accounts suspected of being used to exploit the flaw
Patch Information
The maintainers resolved the issue in commit 43206bacac3b43ad9f2db6dafd165e61a21e6b97. The patch corrects the attribute name from org_id to orgId and adds validation that project identifiers belong to the requesting user's organization. Operators running version 1.2.4 should upgrade to the first release containing this commit.
Workarounds
- Restrict access to the Lunary API using network controls so that only trusted operators can reach invitation and modification endpoints
- Reduce the number of accounts holding team management permissions to the minimum required
- Place a reverse proxy or API gateway in front of Lunary to inspect and block requests whose projectId does not match the caller's organization
# Configuration example
# Upgrade Lunary beyond vulnerable version 1.2.4
git pull origin main
git checkout 43206bacac3b43ad9f2db6dafd165e61a21e6b97
npm install
npm run build
# Restart the Lunary backend service after deployment
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

