Skip to main content

lwjson CVE-2026-29975

| EUVDEUVD-2026-28787 HIGH
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-05-08 mitre GHSA-hr45-w7f7-w9j6
7.5
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
7.5 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
Analysis Generated
May 08, 2026 - 19:24 vuln.today
CVSS changed
May 08, 2026 - 19:22 NVD
7.5 (HIGH)
CVE Published
May 08, 2026 - 00:00 nvd
UNKNOWN (no severity yet)
CVE Published
May 08, 2026 - 00:00 nvd
HIGH 7.5

DescriptionCVE.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.

AnalysisAI

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.

Technical ContextAI

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.

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.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

Share

CVE-2026-29975 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy