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-2024-31755: n/a

0
High
VulnerabilityCVE-2024-31755cvecve-2024-31755
Published: Fri Apr 26 2024 (04/26/2024, 00:00:00 UTC)
Source: CVE Database V5

Description

cJSON v1.7.17 was discovered to contain a segmentation violation, which can trigger through the second parameter of function cJSON_SetValuestring at cJSON.c.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 12:28:06 UTC

Technical Analysis

CVE-2024-31755 identifies a vulnerability in the widely used cJSON library version 1.7.17, specifically a segmentation violation triggered through the second parameter of the function cJSON_SetValuestring in the cJSON.c source file. The root cause relates to improper handling of null pointers (CWE-476), which can cause the application to crash or behave unpredictably when this function is called with crafted input. The vulnerability is exploitable remotely (AV:N) with low attack complexity (AC:L) and requires only low privileges (PR:L), without any user interaction (UI:N). The scope is unchanged (S:U), but the impact affects confidentiality and integrity to a limited extent (C:L/I:L) and availability to a high degree (A:H), resulting in a CVSS v3.1 base score of 7.6. This vulnerability can lead to denial of service conditions, potentially disrupting services relying on cJSON for JSON parsing and manipulation. Although no public exploits have been reported, the vulnerability's characteristics make it a candidate for exploitation in environments where cJSON is used, including embedded systems, IoT devices, and networked applications. The lack of available patches at the time of publication necessitates immediate risk mitigation by users and developers. The vulnerability underscores the importance of robust input validation and memory safety in JSON parsing libraries.

Potential Impact

The primary impact of CVE-2024-31755 is denial of service due to application crashes caused by segmentation faults when processing maliciously crafted JSON data. This can disrupt critical services, especially in environments where cJSON is embedded in IoT devices, embedded systems, or network-facing applications. Secondary impacts include potential limited confidentiality and integrity issues if the crash leads to memory corruption exploitable for further attacks, although this is not confirmed. Organizations relying on cJSON for JSON processing in their software stacks may experience service outages, degraded performance, or instability. The ease of remote exploitation with low privileges and no user interaction increases the risk of automated attacks targeting vulnerable systems. This can affect availability of services, cause operational disruptions, and potentially lead to reputational damage or financial loss. The absence of known exploits in the wild currently limits immediate widespread impact, but the vulnerability remains a significant risk if weaponized.

Mitigation Recommendations

To mitigate CVE-2024-31755, organizations should first monitor for updates or patches from the cJSON maintainers and apply them promptly once available. In the interim, developers should implement strict input validation and sanitization on all JSON data before passing it to cJSON_SetValuestring or related functions to prevent null pointer dereferences. Employing memory-safe wrappers or runtime protections such as AddressSanitizer during development can help detect and prevent exploitation. Restrict network access to services using vulnerable cJSON versions to trusted sources only, reducing exposure to remote attacks. Additionally, implement robust error handling to gracefully manage unexpected input and avoid crashes. Security teams should monitor logs and system behavior for signs of abnormal crashes or exploitation attempts. Where feasible, consider replacing cJSON with alternative, actively maintained JSON libraries with stronger security track records. Finally, conduct thorough code reviews and fuzz testing focused on JSON parsing components to uncover and remediate similar vulnerabilities proactively.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2024-04-05T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6dd5b7ef31ef0b58f0e2

Added to database: 2/25/2026, 9:47:01 PM

Last enriched: 2/26/2026, 12:28:06 PM

Last updated: 4/12/2026, 4:21:28 PM

Views: 10

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 more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses