Security Resilience

CVE-2024-5277

Auth Bypass in Lunary ≤ 1.4.9

Public PoCAuth Bypass
Published
06 June 2024
Modified
21 November 2024
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS Score 0.0035 30th percentile
Risk Priority 55 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-5277 is a high-severity Weak Password Recovery Mechanism for Forgotten Password (CWE-640) vulnerability in Lunary. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Valid Accounts (T1078); ranked at the 30th 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 Supply Chain and Deployment risk domain.

The strongest mitigations our analysis identified map to IA-12 (Identity Proofing) and IA-5 (Authenticator Management) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

In lunary-ai/lunary version 1.2.4, a vulnerability exists in the password recovery mechanism where the reset password token is not invalidated after use. This allows an attacker who compromises the recovery token to repeatedly change the password of a victim's account.…

more

The issue lies in the backend's handling of the reset password process, where the token, once used, is not discarded or invalidated, enabling its reuse. This vulnerability could lead to unauthorized account access if an attacker obtains the recovery token.

CWE(s)

AI Security AnalysisAI

AI Category
LLM Application Platforms
Risk Domain
Supply Chain and Deployment
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Lunary-ai/lunary is an open-source LLM observability and evaluation platform for AI/ML applications, categorized under Other Platforms as it provides infrastructure for monitoring and managing AI deployments.

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1078 Valid Accounts Stealth
Adversaries may obtain and abuse credentials of existing accounts as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
T1078.004 Cloud Accounts Stealth
Valid accounts in cloud environments may allow adversaries to perform actions to achieve Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1531 Account Access Removal Impact
Adversaries may interrupt availability of system and network resources by inhibiting access to accounts utilized by legitimate users.
T1584.006 Web Services Resource Development
Adversaries may compromise access to third-party web services that can be used during targeting.
T1586 Compromise Accounts Resource Development
Adversaries may compromise accounts with services that can be used during targeting.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-6867Same product: Lunary Lunary
CVE-2024-5389Same product: Lunary Lunary
CVE-2024-4147Same product: Lunary Lunary
CVE-2024-8765Same product: Lunary Lunary
CVE-2024-1625Same product: Lunary Lunary
CVE-2024-7473Same product: Lunary Lunary
CVE-2024-7476Same product: Lunary Lunary
CVE-2024-5131Same product: Lunary Lunary
CVE-2024-6087Same product: Lunary Lunary
CVE-2024-5130Same product: Lunary Lunary

Affected Assets

lunary
lunary
≤ 1.4.9

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Identity proofing at appropriate assurance levels ensures forgotten-password recovery cannot succeed without strong verification of the user.

Authenticator management requires secure distribution, reset, and verification procedures that directly address weak password recovery flows.

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.AA-01 mostly match
blocks

Credential lifecycle management directly includes password reset/recovery flows.

PR.AA-02 mostly match
blocks

Identity proofing is the core control that prevents weak or bypassed recovery mechanisms.

PR.AA-03 partial match
blocks

Authentication policy covers strength/MFA but does not address recovery path weaknesses.

PR.PS-06 partial match
blocks

Secure SDLC reduces implementation flaws but is not specific to password-recovery design.

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.

finds

A.8.29's combined programme (code review, static analysis, vulnerability scanning, penetration testing) reaches CWE-640 from both SOURCE and RUNTIME angles: pentesters routinely exercise password recovery flows for brute-force, token reuse, and information disclosure (the exact failure modes in the 2024-2025 CVE examples), and code review catches implementation flaws like missing throttling or returning the original password; the remainder is design-level weaknesses (e.g., security questions that are too common or guessable from social media) where the code looks reasonable and the weakness only surfaces under a review of the recovery design itself.

prevents

A.5.17(b) requires identity verification before providing new, replacement or temporary authentication information, and (c) requires secure transmission — both directly touch the recovery flow and prevent some weak-recovery designs (e.g. no verification, cleartext delivery). The clause does not address throttling on reset attempts, token invalidation after use, security-question design, or other recovery-specific weaknesses catalogued under CWE-640, so a meaningful remainder is left.

prevents

Training helps developers recognize weak recovery designs (throttling, security questions, token invalidation) but the weakness is a detailed design/implementation choice that training alone does not prevent; the stronger controls are secure coding standards and security testing, leaving training as a minority effect.

prevents

Secure-coding standards can prevent weak recovery implementations, yet the control is wider in scope.

prevents

A.8.30 carries its effect through the secure-development practices its contract requires of the supplier (8.25 to 8.29), so a well-implemented clause reduces ordinary software weaknesses in delivered code the way those practices do; CWE-640 is a regular design/implementation CWE that secure design and coding practices address, but the clause depends on those other controls being properly implemented, capping the effect at `partial`.

finds

A.8.8's reach is disclosure-based (vulnerability scanning, CVE feeds, supplier reporting), and CWE-640 does surface as CVEs in third-party products (WordPress plugins, web conference tools, etc.), so A.8.8 finds the disclosed minority of instances; first-party custom password-recovery code that never receives a CVE is outside its reach, which is A.8.29's territory.

References