CVE-2024-5248 Improper Access Control in lunary-ai/lunary

Medium 6.5 Published Updated

Attackers with Prompt Editor role can access full organization user lists due to missing permission checks on the user endpoint.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-5248?

CVE-2024-5248 is a medium-severity missing authorization vulnerability in Lunary Lunary, published on 6 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In lunary-ai/lunary version 1.2.5, an improper access control vulnerability exists due to a missing permission check in the `GET /v1/users/me/org` endpoint. The platform's role definitions restrict the `Prompt Editor` role to prompt management and project viewing/listing capabilities, explicitly excluding access to user information. However, the endpoint fails to enforce this restriction, allowing users with the `Prompt Editor` role to access the full list of users in the organization. This vulnerability allows unauthorized access to sensitive user information, violating the intended access controls.

Weakness: CWE-862

Which versions are affected by CVE-2024-5248?

It affects 1 product.

Products include Lunary Lunary.

How do I fix CVE-2024-5248?

No fix has been published for CVE-2024-5248 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2024-5248 being exploited?

There is no known exploitation of CVE-2024-5248 in the wild and no public exploit code.

All Lunary Lunary vulnerabilities

Sources

Also known as GHSA-p7rq-f88g-ghwx.

Is CVE-2024-5248 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free