A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-29975

CVE-2026-29975: lwjson Streaming Parser DOS Vulnerability

CVE-2026-29975 is a denial of service flaw in lwjson 1.8.1 streaming parser that causes infinite hangs when processing JSON with escaped backslashes. This article covers the technical details, impact, and mitigation steps.

Published: May 18, 2026

CVE-2026-29975 Overview

CVE-2026-29975 is an improper input validation vulnerability in lwjson 1.8.1, a lightweight JSON parser commonly used in embedded systems. The flaw resides in the streaming JSON parser implemented in lwjson_stream.c. The end-of-string detection logic checks only the single character preceding a quote to decide whether the quote is escaped. It does not count consecutive backslashes, so a valid JSON string ending with an escaped backslash ("\\") is never recognized as terminated. A remote attacker who can deliver JSON to an application using lwjson_stream_parse() can trigger an infinite loop, producing a denial of service.

Critical Impact

Remote, unauthenticated attackers can send well-formed JSON that causes lwjson_stream_parse() to hang indefinitely, exhausting CPU and stalling the host application.

Affected Products

  • lwjson 1.8.1 (streaming parser lwjson_stream.c)
  • Applications and firmware embedding lwjson_stream_parse() for untrusted JSON input
  • Downstream embedded or IoT products bundling vulnerable versions of lwjson

Discovery Timeline

  • 2026-05-08 - CVE-2026-29975 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-29975

Vulnerability Analysis

The defect is an infinite loop condition classified under [CWE-835] (Loop with Unreachable Exit Condition). The streaming parser in lwjson_stream.c reads JSON character by character and must determine when a quoted string ends. Its termination logic inspects the byte directly before a closing quote to decide whether that quote is escaped by a backslash.

This single-character lookback ignores the parity of preceding backslashes. In JSON, \\ represents a literal backslash, so a string such as "\\" is a valid two-character payload containing one escaped backslash followed by a terminating quote. The parser sees a backslash immediately before the final quote and treats the quote as escaped. It then continues consuming bytes searching for a string terminator that never arrives.

The result is unbounded consumption of input or repeated state transitions inside the parser, blocking the calling thread. Because parsing typically runs inline with the network or message-handling loop in embedded applications, the entire service stalls.

Root Cause

The root cause is incorrect escape detection logic at the streaming string-termination check referenced at lwjson_stream.c lines 362-364. The implementation must count consecutive trailing backslashes and treat the quote as escaped only when the count is odd. Checking a single preceding byte fails when an even number of backslashes precedes the quote.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker submits a JSON document containing a string value ending in an escaped backslash, such as {"k":"\\"}, to any endpoint that feeds data into lwjson_stream_parse(). Parsing never returns, producing CPU exhaustion and denial of service on the target.

No verified public exploit code is available. See the reference gist and the lwjson repository for technical details on the parsing logic.

Detection Methods for CVE-2026-29975

Indicators of Compromise

  • Sustained 100% CPU utilization on threads or tasks invoking lwjson_stream_parse() shortly after receiving JSON input.
  • Application or firmware watchdog resets correlated with inbound JSON messages from external sources.
  • Stalled request handlers, message queues, or MQTT/HTTP workers that previously processed JSON without delay.

Detection Strategies

  • Perform a software bill of materials (SBOM) review to identify products and firmware that statically link lwjson 1.8.1 or earlier vulnerable revisions.
  • Add fuzz tests covering escaped-backslash sequences ("\\", "\\\\\\\\") and assert that lwjson_stream_parse() returns within a bounded time.
  • Instrument JSON parsing entry points with execution-time telemetry and alert when parse duration exceeds an expected upper bound.

Monitoring Recommendations

  • Monitor inbound message sizes and per-connection parse latency on services that expose JSON APIs to untrusted networks.
  • Log and rate-limit requests originating from clients that repeatedly send malformed or pathological JSON payloads.
  • Track watchdog reboots and thread-hang events on embedded devices and correlate them with network ingress logs.

How to Mitigate CVE-2026-29975

Immediate Actions Required

  • Inventory all systems and firmware images that include lwjson and identify those calling lwjson_stream_parse() on attacker-influenced data.
  • Place vulnerable endpoints behind a JSON-aware proxy or gateway that enforces strict string and message-size limits.
  • Apply parse timeouts at the caller so a stalled lwjson_stream_parse() invocation is forcibly aborted.

Patch Information

No fixed version is referenced in the NVD record at the time of publication. Track the upstream lwjson repository for a corrected escape-handling commit and rebuild dependent firmware once a patched release is available. The fix must count consecutive backslashes preceding a quote and treat the quote as escaped only when that count is odd.

Workarounds

  • Reject or sanitize JSON payloads at an upstream gateway before they reach lwjson_stream_parse(), especially strings ending in backslash sequences.
  • Run JSON parsing on a worker thread with a hard execution-time limit, terminating the task if the limit is exceeded.
  • Restrict maximum accepted JSON message length to a value far below available memory and processing budgets.
bash
# Configuration example: enforce a parse timeout and size cap in the caller
# (pseudocode wrapper around lwjson_stream_parse)
MAX_JSON_BYTES=4096
PARSE_TIMEOUT_MS=250
# Drop oversized payloads at the network layer before invoking the parser
# and run the parser under a watchdog that aborts hung invocations.

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLwjson

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.17%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-835
  • Technical References
  • GitHub Gist Resource

  • GitHub Code Snippet

  • GitHub lwjson Repository
  • Latest CVEs
  • CVE-2026-49199: Acer Predator Connect W6x Firmware RCE Flaw

  • CVE-2026-46344: Openquantumsafe Liboqs DOS Vulnerability

  • CVE-2026-44518: Openquantumsafe Liboqs DoS Vulnerability

  • CVE-2026-42951: MacGregor VDR Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

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.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English