Security Resilience

CVE-2024-5386

Lunary ≤ 1.2.14

Public PoC
Published
02 February 2026
Modified
11 February 2026
Patch / advisory
CVSS Score v3.1 8.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0053 46th percentile
Risk Priority 64 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-5386 is a high-severity Excessive Attack Surface (CWE-1125) vulnerability in Lunary. Its CVSS base score is 8.8 (High).

Operationally, ranked at the 46th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as LLM Application Platforms; in the Privacy and Disclosure risk domain.

The strongest mitigations our analysis identified map to CM-7 (Least Functionality) and SC-25 (Thin Nodes) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2024-5386 is an account hijacking vulnerability in lunary-ai/lunary version 1.2.2, stemming from a password reset token leak. The flaw arises due to an excessive attack surface that exposes the 'recoveryToken' parameter in server responses, enabling unauthorized access. It carries a CVSS v3.1 base score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) and maps to CWE-1125.

A low-privileged user with a 'viewer' role can exploit the vulnerability by sending a specific request to the server, which leaks a password reset token for another user's account. The attacker can then use this token to reset the target account's password without further authorization, resulting in full account takeover and privilege escalation from viewer-level access.

Patches and mitigation details are available in the fixing commit at https://github.com/lunary-ai/lunary/commit/fc7ab3d5621c18992da5dab3a2a9a8d227d42311 and the associated Huntr bounty report at https://huntr.com/bounties/602eb4a1-305d-46d6-b975-5a5d8b040ad1.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

AI Security AnalysisAI

AI Category
LLM Application Platforms
Risk Domain
Privacy and Disclosure
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Matched keywords: ai, lunary

Related Threats

CVEs Like This One

CVE-2024-1902Same product: Lunary Lunary
CVE-2024-5248Same product: Lunary Lunary
CVE-2024-1625Same product: Lunary Lunary
CVE-2024-10273Same product: Lunary Lunary
CVE-2024-1626Same product: Lunary Lunary
CVE-2024-3760Same product: Lunary Lunary
CVE-2024-7472Same product: Lunary Lunary
CVE-2024-7473Same product: Lunary Lunary
CVE-2024-9099Same product: Lunary Lunary
CVE-2024-6867Same product: Lunary Lunary

Affected Assets

lunary
lunary
≤ 1.2.14

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 8 hardening rules · 4 OS baselines
Validate
Prove the fix (OWASP ASVS)

—

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Least Functionality directly limits the number of exposed interfaces and services, structurally preventing an excessive attack surface from being introduced.

Thin nodes enforce minimal functionality and storage, directly limiting the quantitative attack surface.

Least privilege reduces the privileges available through existing interfaces but does not remove the interfaces themselves.

Separating user and system functionality reduces reachable entry points and therefore shrinks the attack surface.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 full match
blocks

Secure SDLC practices explicitly include attack-surface measurement and minimization during design and implementation.

PR.PS-01 mostly match
blocks

Hardened baselines and configuration management directly reduce unnecessary services, ports, and features that enlarge attack surface.

PR.PS-05 mostly match
blocks

Restricting execution to only permitted software prevents addition of extraneous components that increase attack surface.

ID.AM-05 partial match
blocks

Prioritization helps focus reduction efforts on high-value assets but does not itself limit the quantitative attack surface.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

blocks

Configuration management defines and enforces secure baselines, which reduces the attack surface by disabling unnecessary functions and services, but it does not block exploitation of an already-excessive attack surface that remains present.

prevents

Training can raise developer awareness of attack-surface concepts and influence design choices toward fewer exposed endpoints, but excessive attack surface is fundamentally an architectural and feature-scope property driven by design trade-offs and time pressure, not a knowledge gap that education reliably closes.

blocks

A.8.1 hardens user endpoints through software restrictions, patching, firewalls, access controls, malware protection, and port/wireless disabling, which blocks some exploitation of an excessive endpoint attack surface, but it cannot stop exploitation of the remaining permitted browser/application and user-facing surface.

removes

A.8.18 item (f) explicitly mandates removing or disabling unnecessary utility programs, and items (g) and (h) further reduce their availability — a direct removal action on the utility-program portion of the attack surface. CWE-1125 is broader than utility programs (it covers input points, output points, APIs, and other vectors), so the remainder is nameable and bounded: attack surface elements outside the privileged-utility scope are untouched.

blocks

A.8.20's firewalls, filtering, authentication, and disabled protocols block exploitation of the network-reachable portion of the attack surface from untrusted networks, but the attack surface itself is not reduced and application-level or internally-reachable input/output points remain exploitable, leaving a nameable remainder.

blocks

A.8.21 mandates authentication, authorization, encryption and connection controls on network services, which blocks exploitation of those specific attack-surface elements, but the weakness (an architecturally excessive attack surface) remains present and the clause does not reach non-network-service entry points or reduce the surface's quantitative measure.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over our cross-walk; rows rated `none` are excluded, and each rule says how its mapping was checked.

Definition changed on 29 October 2026. Until then this section listed every rule rated above none, partial included. From that date it lists rules whose mapping is rated full or mostly and checked at llm_unverified or higher; partial mappings show when you ask.

Oracle Linux 8 (2 partial rules)
  • V-248823 OL 8 must not have the telnet-server package installed. blocks CWE-1125
  • V-248827 OL 8 must not have the rsh-server package installed. blocks CWE-1125
RHEL 7 (1 rule, 1 more partial)
  • V-204502 The Red Hat Enterprise Linux operating system must not have the telnet-server package installed. blocks CWE-1125
  • V-204442 The Red Hat Enterprise Linux operating system must not have the rsh-server package installed. blocks CWE-1125
RHEL 8 (1 partial rule)
  • V-230487 RHEL 8 must not have the telnet-server package installed. blocks CWE-1125

References