Check out the latest research from IONIX: NEW! State of the WAF Report

New CVE Detected

CVE-2024-58400 – Out-of-Bounds Read (DoS / Memory Disclosure) – llama.cpp before b3701

Be the first to know when new zero-days emerge:

Summary

CVE-2024-58400 is an out-of-bounds read vulnerability (CWE-129, Improper Validation of Array Index) in llama.cpp, affecting all versions before b3701. A remote, unauthenticated attacker can send crafted token IDs to the llama-server /completion endpoint to read memory out of bounds or crash the process. The CVE record lists a CVSS v4.0 score of 8.8 (High) and a CVSS v3.1 score of 8.2 (High).

Technical details

  • Root cause: llama_decode_internal and llama_encode_internal do not validate that token IDs fall within the valid vocabulary range before using them to index embedding memory.
  • Trigger conditions: The attacker sends an integer-array prompt to the llama-server /completion endpoint containing IDs outside the range 0 to n_vocab.
  • Attack vector: Network. No authentication or user interaction is required.
  • Impact: Out-of-bounds read of embedding memory (limited confidentiality impact) or a process crash (denial of service).

Affected software

  • llama.cpp (ggml-org): all versions before b3701

Severity

  • CVSS v4.0 base score: 8.8 (High), CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
  • CVSS v3.1 base score: 8.2 (High), CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

Mitigation and recommended actions

  • Immediate: upgrade llama.cpp to b3701 or later (fixed via pull request #9359).
  • If you cannot upgrade immediately: do not expose llama-server to untrusted networks. Restrict access with network controls such as firewall rules or an authenticated reverse proxy.

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge