Skip to main content
Vulnerability Database/CVE-2026-88358

CVE-2026-88358: simdjson Library Heap Buffer Overflow DOS Vulnerability

CVE-2026-88358 is a heap out-of-bounds read vulnerability in simdjson 4.6.1 that causes application crashes through malformed JSON input. This post covers technical analysis, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-88358 Overview

CVE-2026-88358 is a one-byte heap out-of-bounds read [CWE-125] in the simdjson JSON parsing library version 4.6.1. The flaw resides in dom::parser::parse_unpadded() and is triggered when json_iterator::walk_document() reads buf[len] after exhausting the input buffer. A specially crafted truncated JSON document whose final structural token closes a nested array or object reaches the vulnerable path. Successful exploitation causes application termination, resulting in denial of service.

Critical Impact

Remote attackers can crash any application that parses untrusted JSON through simdjson's unpadded parser, enabling network-reachable denial of service against services that ingest attacker-controlled JSON payloads.

Affected Products

  • simdjson 4.6.1 (dom::parser::parse_unpadded())
  • Applications and services linking simdjson 4.6.1 as a JSON parsing dependency
  • Downstream language bindings and wrappers that invoke the unpadded parsing API

Discovery Timeline

  • 2026-09-24 - CVE-2026-88358 published to the National Vulnerability Database (NVD)
  • 2026-09-29 - Last updated in NVD database

Technical Details for CVE-2026-88358

Vulnerability Analysis

The vulnerability is a bounded out-of-bounds read of a single byte beyond the end of the caller-supplied JSON buffer. simdjson exposes two parsing paths: a padded path that assumes SIMDJSON_PADDING bytes of trailing scratch space, and an unpadded path invoked via parse_unpadded() for callers that cannot guarantee that padding.

When the unpadded path processes a truncated document, json_iterator::walk_document() dispatches on the final structural token. If that token closes a nested array or object, the walker performs a lookahead at buf[len], which lies one byte past the allocated input. Because the read is only a single byte and the walker does not depend on its value for control flow in an attacker-useful way, confidentiality and integrity are not affected. However, when the trailing byte falls outside a mapped page the process aborts, producing a denial-of-service condition.

Root Cause

The walk_document() template was instantiated identically for both padded and unpadded inputs. The implementation implicitly assumed trailing padding, so bounds checks for the final structural token were omitted. The patch adds a new template parameter that encodes whether the buffer is unpadded, allowing the walker to guard the terminal lookahead.

Attack Vector

The attack vector is network-reachable where an application accepts attacker-controlled JSON and routes it through simdjson's unpadded parser. User interaction is required in the form of parsing the crafted document. No privileges or authentication are needed on the parser itself. The payload is a minimal truncated JSON object or array whose last byte is the closing ] or } of a nested container.

c
     json_iterator iter(dom_parser, STREAMING ? dom_parser.next_structural_index : 0);
     if (dom_parser._unpadded) {
       tape_builder_impl<true> builder(doc);
-      return iter.walk_document<STREAMING>(builder);
+      return iter.walk_document<STREAMING, true>(builder);
     } else {
       tape_builder_impl<false> builder(doc);
-      return iter.walk_document<STREAMING>(builder);
+      return iter.walk_document<STREAMING, false>(builder);
     }
   }
 };

Source: simdjson commit 20b28712. The patch threads the unpadded flag into walk_document() so the walker can suppress the one-byte lookahead when the buffer has no trailing padding.

Detection Methods for CVE-2026-88358

Indicators of Compromise

  • Repeated process crashes or SIGSEGV signals in services whose stack traces reference simdjson::dom::parser::parse_unpadded or json_iterator::walk_document.
  • AddressSanitizer heap-buffer-overflow READ of size 1 reports pointing at simdjson source files under src/generic/stage2/.
  • Truncated inbound JSON payloads whose final byte is ] or } closing a nested container, correlated with service restarts.

Detection Strategies

  • Inventory binaries and container images that statically or dynamically link simdjson, flagging builds at version 4.6.1 or earlier for the fix.
  • Run fuzz harnesses that feed truncated nested JSON into parse_unpadded() under AddressSanitizer to confirm exposure in locally built artifacts.
  • Correlate web application firewall (WAF) and reverse proxy logs for malformed JSON requests immediately preceding backend process restarts.

Monitoring Recommendations

  • Alert on crash-loop patterns in JSON-processing microservices and ingestion pipelines.
  • Monitor orchestration platforms such as Kubernetes for pods whose lastState.terminated.reason is Error or OOMKilled following JSON ingest.
  • Track EPSS and vendor advisory updates for simdjson to catch any revised exploit guidance.

How to Mitigate CVE-2026-88358

Immediate Actions Required

  • Upgrade simdjson to the version containing commit 20b28712ffce8320237b75a587d35a2e89140577 or any later release that includes pull request #2817.
  • Rebuild and redeploy all first-party binaries, container images, and language bindings that embed simdjson 4.6.1.
  • Add input-size and well-formedness checks at ingress to reject obviously truncated JSON before it reaches the parser.

Patch Information

The fix is tracked in simdjson issue #2815 and merged via pull request #2817. The patched implementation lives in src/generic/stage2/tape_builder.h and adds a template parameter to walk_document() that disables the one-byte terminal lookahead when the input buffer is unpadded. Consumers must rebuild against the fixed source; no runtime configuration change is sufficient on its own.

Workarounds

  • Switch callers from parse_unpadded() to the padded parse() API and allocate buffers with SIMDJSON_PADDING trailing bytes.
  • Front JSON endpoints with a validating proxy that rejects payloads whose final non-whitespace byte closes a nested container without a matching outer terminator.
  • Enable automatic process supervision so that a crash from this bug cannot be used to achieve sustained outage of the service.
bash
# Verify the linked simdjson version in a build
strings ./your_service | grep -i 'simdjson'

# Pin a fixed version in CMake-based projects
# (replace <FIXED_VERSION> with the release that includes PR #2817)
FetchContent_Declare(
  simdjson
  GIT_REPOSITORY https://github.com/simdjson/simdjson.git
  GIT_TAG        <FIXED_VERSION>
)
FetchContent_MakeAvailable(simdjson)

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.