Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted JSON with escaped backslash sequences
-
DeliveryApplication invokes lwjson_stream_parse()
-
ExploitParser misidentifies escaped quote as string delimiter
-
ExecutionInfinite loop awaiting string termination
-
PersistThread/process hangs consuming resources
-
ImpactService denial for legitimate users
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Remote network access to an application or service that accepts JSON input AND specifically implements the lwjson streaming parser API (lwjson_stream_parse() function) rather than the standard lwjson parser. The vulnerability triggers when processing JSON strings containing escaped backslashes followed by quote characters, which are valid according to JSON specification but mishandled by the flawed end-of-string detection logic. No special privileges, user interaction, or non-default configuration required - the CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms this is exploitable against default configurations by unauthenticated remote attackers. Limiting factors: applications using only the non-streaming lwjson parser API remain unaffected, and services that implement strict JSON payload size limits or parsing timeouts may mitigate impact by terminating hung parser instances. The vulnerability requires that the application actually processes the malicious JSON through lwjson_stream_parse() - simple reception of the payload without parsing does not trigger the condition. |
| Impact | The CVSS 7.5 score reflects HIGH severity due to the network attack vector (AV:N), low complexity (AC:L), and no authentication requirements (PR:N), enabling remote unauthenticated exploitation against any exposed application using the vulnerable streaming parser. However, real-world risk depends heavily on deployment context. The EPSS exploitation probability is not provided in available data, and CISA KEV does not list this CVE, indicating no confirmed active exploitation campaigns. The vulnerability requires that target applications specifically use lwjson_stream_parse() rather than the standard lwjson parser - many lwjson implementations may use only the non-streaming API and remain unaffected. Attack complexity is genuinely low as the malicious payload is well-formed JSON that would pass initial validation checks. The impact is purely availability (A:H with C:N/I:N), limiting appeal for data theft or system compromise scenarios. Without confirmed POC weaponization or real-world exploitation, this represents a moderate priority for organizations using lwjson in network-facing services with streaming JSON parsing, but lower priority than vulnerabilities enabling code execution or data exfiltration. Key uncertainty: affected version range beyond 1.8.1 is not confirmed - vulnerability may exist in earlier versions but patch status for subsequent releases requires vendor verification. |
| Exploit ScenarioDerived | An attacker identifies a web service or IoT device API that accepts JSON input and uses lwjson 1.8.1 streaming parser. The attacker crafts a POST request containing JSON with a string field ending in an escaped backslash followed by a quote, such as {"data":"malicious payload ending with \\\"}. When the application calls lwjson_stream_parse() on this input, the parser enters an infinite loop waiting for a string termination that never occurs due to the escaped quote misdetection. The application thread hangs indefinitely consuming CPU resources. By sending multiple such requests, the attacker exhausts available application threads or processes, preventing legitimate users from accessing the service. The attack requires no authentication and uses syntactically valid JSON, bypassing simple input validation. The referenced POC at the GitHub gist likely demonstrates this exact payload construction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
Denial of service in lwjson 1.8.1 streaming parser allows remote unauthenticated attackers to cause indefinite application hang by sending JSON strings containing escaped backslashes followed by quotes (e.g., "text\\\"). The vulnerability stems from flawed end-of-string detection logic in lwjson_stream.c that fails to properly count consecutive backslashes before quote characters. With CVSS 7.5 (AV:N/AC:L/PR:N/UI:N) and no authentication required, this represents a readily exploitable availability risk for applications using lwjson_stream_parse(), though no active exploitation or POC weaponization is confirmed at time of analysis.
RemediationAI
Upgrade lwjson to a patched version once released by the maintainer (https://github.com/MaJerle/lwjson). At time of analysis, no vendor-released patch version is confirmed in available references, though the GitHub repository link (https://github.com/MaJerle/lwjson/tree/develop) and specific vulnerable code location (https://github.com/MaJerle/lwjson/blob/develop/lwjson/src/lwjson/lwjson_stream.c#L362-L364) suggest maintainer awareness. A proof-of-concept demonstrating the vulnerability exists at https://gist.github.com/dwilliams27/b99fd41be5d6848691797042cbfc1103, which may aid in testing fixes. If immediate patching is not feasible, implement input validation to reject or sanitize JSON strings containing sequences of multiple consecutive backslashes before quote characters, though this may break legitimate use cases requiring escaped backslashes. Alternative mitigation: replace lwjson_stream_parse() with the standard non-streaming lwjson parser if application design permits buffering entire JSON payloads in memory, trading memory consumption for elimination of this vulnerability. For critical systems, implement watchdog timers or parsing timeouts to detect and terminate hung parser instances, limiting DOS impact to individual requests rather than full application failure, though this addresses symptoms rather than root cause.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
lwjson is a lightweight JSON parser library designed for embedded systems and resource-constrained environments. The vulnerability resides in the streaming parser implementation (lwjson_stream.c), specifically in the string termination detection logic around lines 362-364. The flawed code checks only the immediately preceding character to determine if a closing quote is escaped, rather than implementing proper backslash escape sequence parsing that counts consecutive backslashes. In JSON specification (RFC 8259), a backslash escapes the following character, so an even number of consecutive backslashes before a quote means the quote is NOT escaped. The lwjson parser incorrectly treats any quote preceded by a single backslash as escaped, causing strings like "text\\" (which should terminate after the final quote) to never complete parsing. This is classified as CWE-835 (Loop with Unreachable Exit Condition / Infinite Loop), a subset of improper input validation vulnerabilities that can lead to resource exhaustion.
Know when N A gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionCVE.org
lwjson 1.8.1 contains an improper input validation vulnerability in the streaming JSON parser (lwjson_stream.c). The end-of-string detection logic incorrectly identifies escaped quote characters by only checking the immediately preceding character rather than counting consecutive backslashes, causing valid JSON strings ending with an escaped backslash (like "\\") to never terminate parsing. A remote attacker can send well-formed JSON to cause applications using lwjson_stream_parse() to hang indefinitely, resulting in denial of service.
Executive ViewAI
lwjson 1.8.1 contains a remotely exploitable denial-of-service vulnerability that allows unauthenticated attackers to hang applications indefinitely by sending malformed JSON with escaped backslashes, directly impacting availability for any service parsing untrusted JSON input. Organizations using lwjson for streaming JSON processing should immediately assess exposure and plan mitigation, as this vulnerability requires no authentication and can be triggered over the network with minimal complexity.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement strict input validation rejecting JSON payloads with patterns of multiple consecutive backslashes preceding quotes; (2) Deploy connection-level rate limiting and request throttling on endpoints accepting JSON input; (3) Set aggressive application timeouts on JSON parsing operations to prevent indefinite hangs; (4) Isolate lwjson processing in separate service processes to prevent single point of failure across application.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2026-28787
GHSA-hr45-w7f7-w9j6
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB