CRITICAL🇵🇱 Wersja polska

CVE-2024-4146

CVSS 9.8v3.1pub. 2024-06-08upd. 2024-11-21

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.

🤖 AI Analysis
How it works

The vulnerability exists in the `checkProjectAccess` method in the authorization middleware. The verification mechanism only checks whether the user belongs to the organization that owns the project, omitting the necessary verification of the `account_project` table for explicit access rights to the specific project. Such incomplete permission checking allows any user in a given organization to access projects they should not formally have access to.

Impact

The attacker gains full control over all project resources — they can create, read, modify, and delete any resources, leading to violations of confidentiality and integrity of sensitive organizational data.

Mitigation & patch

Apply the patch available in the vendor repository (commit c43b6c62035f32ca455f66d5fd22ba661648cde7 on GitHub) and update the application to the version containing the fix according to vendor references.

Who is affected

Lunary (lunary-ai/lunary) in version v1.2.13

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Lunary

    APP
    Lunary
    1.2.13
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
CWE
References

Related vulnerabilities

CVE-2025-5352CRITICAL9.6PL ✓ten sam produkt

Stored XSS w Lunary — wstrzyknięcie skryptu przez zmienną środowiskową

CVE-2024-9095CRITICAL9.8PL ✓ten sam produkt

Brak kontroli dostępu w API BigQuery — eksport całej bazy danych w Lunary

CVE-2024-7456CRITICAL9.8PL ✓ten sam produkt

SQL Injection w trasie /api/v1/external-users aplikacji Lunary

CVE-2024-7475CRITICAL9.1PL ✓ten sam produkt

Lunary: brak kontroli dostępu do konfiguracji SAML (nieautoryzowana zmiana)

CVE-2024-5328CRITICAL9.3PL ✓ten sam produkt

SSRF w Lunary – nieautoryzowane żądania przez endpoint SAML IdP