New CVE Detected

CVE-2026-107183 – Remote Heap Corruption / RCE – llama.cpp b8227 through b11392

Get a free Attack Surface scan to see if you’re exposed.

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

Summary

CVE-2026-107183 is a use-after-free and double-free vulnerability in llama.cpp’s common_chat_peg_mapper::map chat-parsing function, affecting the llama-server component. An unauthenticated remote attacker can send a crafted request to the /completion endpoint to corrupt heap memory via a dangling pointer, potentially crashing the server or achieving remote code execution. The issue carries a CVSS score of 9.2 (Critical).

Technical details

  • Root cause: common_chat_peg_mapper stores current_tool as a raw pointer into the pending_tool_call optional container. When a TOOL_CLOSE token resets pending_tool_call, the underlying object (and its buffers) is destroyed, but current_tool is left dangling.
  • Trigger condition: if a subsequent TOOL_ID token is processed after the tool-close event, the parser writes through the dangling pointer, resulting in a use-after-free and a second deallocation (double free) of the same memory.
  • Attack vector: the flaw is reachable remotely and without authentication by submitting a crafted chat parser payload — specifically a tool-open, tool-id, tool-close, tool-id sequence — in a POST request to the llama-server /completion endpoint.
  • Impact: heap corruption that can crash the llama-server process (denial of service) or be leveraged as a heap write primitive; researchers reported chaining this flaw with a separate embeddings out-of-bounds read to achieve remote code execution on a stock model.

Affected software

  • ggml-org llama.cpp, build b8227 up to (but not including) build b11393
  • Specifically impacts deployments running the llama-server HTTP server with chat/tool-call parsing enabled and reachable over the network

Severity

  • CVSS Score: 9.2 (Critical)
  • CVSS v4.0 Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
  • CWE-416: Use After Free

Mitigation and recommended actions

  • Immediate: Upgrade llama.cpp to build b11393 or later, which clears the current_tool pointer when pending_tool_call is reset, eliminating the dangling-pointer condition.
  • If no patch can be applied immediately: restrict network exposure of llama-server instances (bind to localhost or place behind an authenticated reverse proxy/firewall rules that limit access to trusted hosts), and disable or avoid exposing tool-call/chat-parser functionality on the /completion endpoint to untrusted clients until patched.

References

Get a free Attack Surface scan to see if you’re exposed.

Get a free Attack Surface scan to see if you’re exposed.

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