CVE-2024-58400
Tenable Plugin
Checking the public Tenable catalog…
AI Threat Summary
CVE-2024-58400 is a high-severity vulnerability with a CVSS score of 8.2 affecting the target software. Authentication can be bypassed allowing unauthenticated access. Threat hunters should monitor for exploit attempts and apply vendor patches immediately.
Description
llama.cpp before b3701 contains an out-of-bounds read vulnerability in llama_decode_internal and llama_encode_internal that allows remote unauthenticated attackers to read memory by supplying unvalidated token IDs. Attackers can send integer-array prompts to the llama-server /completion endpoint with IDs outside 0 to n_vocab to read embedding memory out of bounds or crash the process.
Attack Chain
Attacker identifies authentication endpoint and tests for bypass conditions
Attacker exploits CVE-2024-58400 authentication flaw to gain unauthorized access without valid credentials
Attacker enumerates accessible resources, users, and configurations
Attacker exfiltrates sensitive data accessible without proper authorization
MITRE ATT&CK Techniques
Indicators of Compromise
| Type | Value | Description | |
|---|---|---|---|
| user_agent | Mozilla/5.0 (compatible; exploit/1.0) |
Generic exploit scanner user agent pattern | |
| url | /api/vuln-endpoint?payload=<malicious> |
Exploit attempt against application endpoint — monitor access logs for anomalous params |
Remediation
Quick Facts
| CVE ID | CVE-2024-58400 |
| CVSS Score | 8.2 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
| Published | 2026-10-27 |
| Exploited | No |
| CISA KEV | No |
| PoC | Available |
References
- https://github.com/ggml-org/llama.cpp/blob/b3681/examples/se…
- https://github.com/ggml-org/llama.cpp/commit/eae597182cb61bb…
- https://github.com/ggml-org/llama.cpp/commit/faf69d4237c9ae4…
- https://github.com/ggml-org/llama.cpp/pull/9359
- https://github.com/ggml-org/llama.cpp/releases/tag/b3701
- https://www.vulncheck.com/advisories/llama-cpp-before-b3701-…