CVE-2024-5386 Account Hijacking via Password Reset Token Leak in lunary-ai/lunary
Attackers with viewer roles can hijack other user accounts by exploiting a password reset token leak in the Lunary AI platform.
- 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-5386?
CVE-2024-5386 is a critical vulnerability in Lunary Lunary, published on 2 Feb 2026. 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.2, an account hijacking vulnerability exists due to a password reset token leak. A user with a 'viewer' role can exploit this vulnerability to hijack another user's account by obtaining the password reset token. The vulnerability is triggered when the 'viewer' role user sends a specific request to the server, which responds with a password reset token in the 'recoveryToken' parameter. This token can then be used to reset the password of another user's account without authorization. The issue results from an excessive attack surface, allowing lower-privileged users to escalate their privileges and take over accounts.
Weakness: CWE-1125
Which versions are affected by CVE-2024-5386?
It affects 1 product.
Products include Lunary Lunary.
How do I fix CVE-2024-5386?
No fix has been published for CVE-2024-5386 yet. Limit exposure of the affected software until one is available.
Is CVE-2024-5386 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-5386 exists.
Other vulnerabilities in Lunary Lunary
Sources
Also known as GHSA-r75x-2fcv-j4pm.