Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2023-26819: CWE-440 Expected Behavior Violation in cJSON Project cJSON

0
Low
VulnerabilityCVE-2023-26819cvecve-2023-26819cwe-440
Published: Sat Apr 19 2025 (04/19/2025, 00:00:00 UTC)
Source: CVE
Vendor/Project: cJSON Project
Product: cJSON

Description

cJSON 1.7.15 might allow a denial of service via a crafted JSON document such as {"a": true, "b": [ null,9999999999999999999999999999999999999999999999912345678901234567]}.

AI-Powered Analysis

AILast updated: 11/03/2025, 20:20:48 UTC

Technical Analysis

CVE-2023-26819 is a vulnerability identified in the cJSON library version 1.7.15, a widely used lightweight JSON parser written in C. The issue stems from an expected behavior violation classified under CWE-440, where the library improperly handles crafted JSON input containing extremely large numeric values within arrays. For example, a JSON document like {"a": true, "b": [ null, 9999999999999999999999999999999999999999999999912345678901234567]} can trigger this vulnerability. The excessive numeric value causes the parser to consume excessive resources, potentially leading to a denial of service (DoS) condition by exhausting memory or CPU cycles during parsing. The CVSS v3.1 score is 2.9 (low severity), reflecting that exploitation requires local access (AV:L), high attack complexity (AC:H), no privileges (PR:N), and no user interaction (UI:N). The vulnerability impacts availability only, with no confidentiality or integrity compromise. No known exploits have been reported in the wild, and no official patches have been released as of the publication date. This vulnerability is particularly relevant for applications or embedded systems that use cJSON 1.7.15 to parse untrusted or external JSON data, as crafted input could disrupt service availability. The lack of a patch necessitates temporary mitigations such as input validation and limiting resource consumption during JSON parsing.

Potential Impact

For European organizations, the primary impact of CVE-2023-26819 is the potential for denial of service in systems relying on cJSON 1.7.15 for JSON parsing. This could affect embedded devices, IoT systems, or software components that process external JSON data without sufficient input validation. Disruptions could lead to service outages, impacting operational continuity, especially in critical infrastructure sectors such as manufacturing, automotive, telecommunications, and healthcare. Since the vulnerability requires local access and has high attack complexity, remote exploitation is unlikely, reducing the risk of widespread attacks. However, insider threats or compromised internal systems could leverage this vulnerability to degrade service availability. The absence of confidentiality or integrity impact limits the risk to data breaches or manipulation. European organizations with supply chains or products incorporating cJSON should assess their exposure and implement mitigations to prevent service interruptions.

Mitigation Recommendations

1. Implement strict input validation to reject JSON documents containing excessively large numeric values or unusually large arrays before parsing with cJSON. 2. Enforce resource limits on memory and CPU usage during JSON parsing to prevent exhaustion from malicious inputs. 3. Where possible, sandbox or isolate components using cJSON to contain potential denial of service effects. 4. Monitor application logs and system performance for signs of abnormal resource consumption related to JSON parsing. 5. Engage with cJSON maintainers or vendors for updates and apply patches promptly once available. 6. Consider upgrading to a later, patched version of cJSON or alternative JSON parsers with better input handling if feasible. 7. For embedded systems, review firmware update mechanisms to enable timely deployment of fixes. 8. Educate developers and system integrators about safe JSON handling practices and this specific vulnerability.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2023-02-27T00:00:00.000Z
Cisa Enriched
true

Threat ID: 682d984bc4522896dcbf7d12

Added to database: 5/21/2025, 9:09:31 AM

Last enriched: 11/3/2025, 8:20:48 PM

Last updated: 11/20/2025, 3:13:56 AM

Views: 29

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats