Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. lunary
  4. ›
  5. CVE-2024-4146

CVE-2024-4146: lunary-ai/lunary allows users unauthorized access to projects

June 8, 2024 (updated November 18, 2024)

Withdrawn: This advisory was incorrectly linked the the npm package lunary. The advisory is valid, but not for that packlage.

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.

References

  • github.com/advisories/GHSA-w5xm-mx47-v7c8
  • github.com/lunary-ai/lunary
  • github.com/lunary-ai/lunary/commit/c43b6c62035f32ca455f66d5fd22ba661648cde7
  • huntr.com/bounties/a749e696-b398-4260-b2d0-b0054b9fffa7
  • nvd.nist.gov/vuln/detail/CVE-2024-4146

Code Behaviors & Features

Detect and mitigate CVE-2024-4146 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.26

Fixed versions

  • 1.2.26

Solution

Upgrade to version 1.2.26 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization
  • CWE-863: Incorrect Authorization

Source file

npm/lunary/CVE-2024-4146.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:46 +0000.