Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-5386

CVE-2024-5386: Lunary Auth Bypass Vulnerability

CVE-2024-5386 is an authentication bypass flaw in Lunary-AI version 1.2.2 that enables account hijacking through password reset token leakage. This article covers the technical details, affected versions, and mitigation.

Published: February 6, 2026

CVE-2024-5386 Overview

CVE-2024-5386 is a critical account hijacking vulnerability in lunary-ai/lunary version 1.2.2 caused by improper handling of password reset tokens. The flaw enables users with the low-privileged 'viewer' role to obtain password reset tokens belonging to other users, effectively allowing unauthorized account takeover through privilege escalation.

Critical Impact

This vulnerability allows low-privileged users to hijack any account in the system by exploiting leaked password reset tokens, leading to complete account compromise and potential data exfiltration.

Affected Products

  • lunary-ai/lunary version 1.2.2
  • Earlier versions of lunary-ai/lunary may also be affected

Discovery Timeline

  • 2026-02-02 - CVE-2024-5386 published to NVD
  • 2026-02-03 - Last updated in NVD database

Technical Details for CVE-2024-5386

Vulnerability Analysis

This vulnerability stems from excessive attack surface exposure in the lunary-ai/lunary application's password recovery functionality. When a user with the 'viewer' role sends a crafted request to the server, the application improperly responds with a password reset token in the recoveryToken parameter. This token exposure allows the attacker to reset the password of any user account without proper authorization checks.

The root issue is classified under CWE-1125 (Excessive Attack Surface), indicating that the application exposes functionality that should be restricted to higher-privileged roles or system processes only. The password reset mechanism lacks proper authorization controls to verify that the requesting user has legitimate access to the recovery token.

Root Cause

The vulnerability exists due to insufficient access control validation in the password reset token generation and retrieval process. The application fails to properly restrict access to the recoveryToken parameter based on user roles, allowing 'viewer' role users to access sensitive authentication tokens that should only be available to account owners or administrators.

The excessive attack surface exposed by the application allows lower-privileged users to invoke functionality intended for password recovery operations, which should be protected by strict authorization checks.

Attack Vector

The attack is network-based and requires the attacker to have low-level privileges (viewer role) within the lunary application. The exploitation process involves:

  1. An attacker authenticates with a low-privileged 'viewer' account
  2. The attacker sends a specially crafted request to the password reset endpoint
  3. The server responds with a recoveryToken for the targeted user account
  4. The attacker uses this token to reset the target user's password
  5. The attacker gains full access to the hijacked account

The vulnerability does not require user interaction and can be exploited with minimal complexity. Since the attack can affect resources beyond the vulnerable component's scope, it has significant impact on confidentiality and integrity.

For detailed technical information about the vulnerability and the fix, refer to the GitHub Commit Details and the Huntr Bug Bounty Listing.

Detection Methods for CVE-2024-5386

Indicators of Compromise

  • Unusual password reset token requests originating from low-privileged user sessions
  • Multiple password reset activities targeting different accounts from a single source
  • Unauthorized access to accounts following password reset token generation events
  • Anomalous API requests to password recovery endpoints from viewer-role accounts

Detection Strategies

  • Monitor API requests to password reset endpoints and flag requests from users with viewer-role privileges
  • Implement logging for all recoveryToken parameter access and correlate with user privilege levels
  • Create alerts for password reset events where the requesting user differs from the account owner
  • Deploy behavioral analysis to detect privilege escalation patterns in authentication workflows

Monitoring Recommendations

  • Enable detailed audit logging for all authentication and password management operations
  • Configure real-time alerting for suspicious password reset token generation activities
  • Establish baseline patterns for normal password recovery usage and alert on deviations
  • Review access logs regularly for viewer-role users accessing administrative or sensitive endpoints

How to Mitigate CVE-2024-5386

Immediate Actions Required

  • Upgrade lunary-ai/lunary to a patched version that addresses this vulnerability
  • Review user accounts for signs of unauthorized access or password changes
  • Audit viewer-role user activities for potential exploitation attempts
  • Implement additional authorization checks on password reset functionality

Patch Information

A security fix has been released by lunary-ai. The patch is available at commit fc7ab3d5621c18992da5dab3a2a9a8d227d42311. Organizations should update to the patched version immediately to prevent exploitation.

For patch details, see the GitHub Commit.

Workarounds

  • Restrict API access to password reset endpoints at the network level until patching is complete
  • Implement additional role-based access control checks at the application gateway
  • Temporarily disable or revoke viewer-role permissions for users who do not require them
  • Enable multi-factor authentication to add an additional layer of protection against account takeover
bash
# Example: Restrict access to password reset endpoints via nginx
location /api/password-reset {
    # Allow only from trusted admin networks
    allow 10.0.0.0/8;
    deny all;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechLunary

  • SeverityCRITICAL

  • CVSS Score9.6

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-1125
  • Technical References
  • GitHub Commit Details

  • Huntr Bug Bounty Listing
  • Related CVEs
  • CVE-2024-7475: Lunary Auth Bypass Vulnerability

  • CVE-2024-1741: Lunary Auth Bypass Vulnerability

  • CVE-2024-1740: Lunary Authentication Bypass Vulnerability

  • CVE-2025-5352: Lunary Analytics Stored XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English