CVE-2024-5124
Gaizhenbiao Chuanhuchatgpt ≤ 20240628
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NCVSS 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-5124 is a high-severity Observable Discrepancy (CWE-203) vulnerability in Gaizhenbiao Chuanhuchatgpt. Its CVSS base score is 7.5 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Gather Victim Identity Information (T1589); ranked in the top 27% of CVEs by exploit likelihood; 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 IA-6 (Authentication Feedback) and SI-11 (Error Handling) — 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.
A timing attack vulnerability exists in version 20240310 of the gaizhenbiao/chuanhuchatgpt repository, where passwords are compared using Python's '=' operator during authentication checks for a given username. This approach enables observable differences in comparison timing that leak information about password contents, corresponding to CWE-203. The flaw received a CVSS 7.5 score reflecting network-exploitable conditions with high impact on confidentiality and no requirements for authentication or user interaction.
An unauthenticated remote attacker can exploit the vulnerability by measuring response times across repeated authentication attempts with crafted inputs, allowing incremental guessing of valid user passwords and potential unauthorized access to accounts.
The referenced GitHub commit e46ec4ecd896bc3c88eb9a2f44e8593f3c6761b4 implements a fix for the affected password comparison logic, while the associated huntr.com bounty report documents the issue and its remediation. The EPSS score has remained flat at 0.4613 with no material increase observed after disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-46381
Vulnerability Data
A timing attack vulnerability exists in the gaizhenbiao/chuanhuchatgpt repository, specifically within the password comparison logic. The vulnerability is present in version 20240310 of the software, where passwords are compared using the '=' operator in Python. This method of comparison allows…
more
an attacker to guess passwords based on the timing of each character's comparison. The issue arises from the code segment that checks a password for a particular username, which can lead to the exposure of sensitive information to an unauthorized actor. An attacker exploiting this vulnerability could potentially guess user passwords, compromising the security of the system.
- 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
- The vulnerability is in gaizhenbiao/chuanhuchatgpt, an open-source ChatGPT-like web UI and assistant interface for LLMs such as OpenAI and others, listed on an AI/ML bug bounty platform (huntr).
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
- 1 hardening rule · 1 OS baseline
—
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Obscures authentication feedback so that success/failure differences are not observable to attackers.
Requires error messages to avoid revealing exploitable details, directly stopping observable response discrepancies.
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.
Secure SDLC practices directly prevent observable response discrepancies via consistent error handling and timing.
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.
Training helps developers recognize that uniform error messages, constant-time comparisons and non-leaking response patterns are security requirements, addressing the common knowledge-gap cases (error-message enumeration, basic auth timing); however, CWE-203 also covers deeper technical instances — cache/power/microarchitectural side channels, TTL and packet-level discrepancies — that exceed what general awareness training reaches, leaving a nameable remainder.
Secure coding standards can mandate consistent error messages, constant-time comparisons, and uniform response behavior, addressing the application-layer observable discrepancies (different error messages, response timing in auth flows). The remainder is nameable: hardware-level side channels (cache, power consumption, RAPL interfaces), subtle timing differences emerging from complex code paths, and network-level observable differences (TTL, packet behavior) are not caught by coding practice alone, and the clause's mechanism is human practice which is fallible.
A.8.30 carries its effect through the secure design, coding and testing practices (8.25-8.29) its contract requires of the supplier, so observable discrepancies in delivered code are reduced the way those practices reduce them — but the clause mandates a practice, not a mechanism, and what it catches depends on the rigour of the supplier's implementation, leaving a fallible remainder.
A.8.5's log-on procedure guidance (items c, d, e) directly blocks user enumeration via error messages and timing discrepancies during authentication, but the control does not address observable discrepancies outside the log-on process such as side-channel attacks or behavioral information leaks.