CVE-2026-43628: Integer Underflow (Wrap or Wraparound) in ggml-org llama.cpp
llama.cpp builds b3978 through b9058 contain an integer underflow and out-of-bounds read vulnerability in the DRY sampler that allows unauthenticated attackers to trigger a heap buffer underflow by sending a crafted HTTP request with dry_allowed_length set to INT32_MIN to the /v1/completions or /v1/chat/completions endpoints. Attackers can exploit this vulnerability to crash the server with SIGSEGV causing denial of service for all connected users, or corrupt token sampling probabilities by reading garbage values from memory before the allocated buffer.
AI Analysis
Technical Summary
llama.cpp versions from build b3978 through b9058 contain an integer underflow vulnerability in the DRY sampler. When an attacker sends a specially crafted HTTP request to the /v1/completions or /v1/chat/completions endpoints with the dry_allowed_length parameter set to INT32_MIN, the integer underflow triggers a heap buffer underflow. This results in out-of-bounds memory reads that can cause the server process to crash with a segmentation fault or corrupt internal token sampling data by reading garbage values from memory before the allocated buffer.
Potential Impact
Successful exploitation results in denial of service by crashing the server process with SIGSEGV, affecting all connected users. Additionally, it can corrupt token sampling probabilities, potentially impacting the correctness of the model's output. No evidence of remote code execution or privilege escalation is indicated.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are currently available. Users should monitor vendor communications for updates and consider restricting access to the affected endpoints or validating input parameters to prevent exploitation until a patch is released.
CVE-2026-43628: Integer Underflow (Wrap or Wraparound) in ggml-org llama.cpp
Description
llama.cpp builds b3978 through b9058 contain an integer underflow and out-of-bounds read vulnerability in the DRY sampler that allows unauthenticated attackers to trigger a heap buffer underflow by sending a crafted HTTP request with dry_allowed_length set to INT32_MIN to the /v1/completions or /v1/chat/completions endpoints. Attackers can exploit this vulnerability to crash the server with SIGSEGV causing denial of service for all connected users, or corrupt token sampling probabilities by reading garbage values from memory before the allocated buffer.
CVSS v4.0
Score 8.5high
Affected software
ggml-org
llama.cpp
pkg:github/ggml-org/llama.cppRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
llama.cpp versions from build b3978 through b9058 contain an integer underflow vulnerability in the DRY sampler. When an attacker sends a specially crafted HTTP request to the /v1/completions or /v1/chat/completions endpoints with the dry_allowed_length parameter set to INT32_MIN, the integer underflow triggers a heap buffer underflow. This results in out-of-bounds memory reads that can cause the server process to crash with a segmentation fault or corrupt internal token sampling data by reading garbage values from memory before the allocated buffer.
Potential Impact
Successful exploitation results in denial of service by crashing the server process with SIGSEGV, affecting all connected users. Additionally, it can corrupt token sampling probabilities, potentially impacting the correctness of the model's output. No evidence of remote code execution or privilege escalation is indicated.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are currently available. Users should monitor vendor communications for updates and consider restricting access to the affected endpoints or validating input parameters to prevent exploitation until a patch is released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-01T18:22:45.641Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a750702bf8831d5395f59bf
Added to database: 08/06/2026, 22:13:22 UTC
Last enriched: 08/14/2026, 15:54:21 UTC
Last updated: 09/21/2026, 22:01:34 UTC
Views: 38
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.