CVE-2024-31755
NixOS vulnerability analysis and mitigation

Overview

A segmentation violation vulnerability was discovered in cJSON version 1.7.17, identified as CVE-2024-31755. The vulnerability is triggered through the second parameter of the function cJSON_SetValuestring in cJSON.c. This security issue was initially reported on April 25, 2024, and affects the cJSON library, a lightweight JSON parser for C (NVD, MITRE).

Technical details

The vulnerability is classified as a NULL Pointer Dereference (CWE-476). The issue occurs when a NULL valuestring is passed to the cJSON_SetValuestring function, leading to a null pointer dereference in the strlen comparison operation. The CVSS v3.1 base score is 7.6 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H (NVD).

Impact

The vulnerability can potentially cause a denial of service (DoS) condition through segmentation faults when exploited. The impact affects the availability, confidentiality, and integrity of systems using the vulnerable cJSON library version (GitHub Issue).

Mitigation and workarounds

Several Linux distributions have released fixes for this vulnerability. Ubuntu has patched multiple versions: 24.04 LTS (noble) with version 1.7.17-1ubuntu0.1~esm2, 23.10 (mantic) with version 1.7.16-1ubuntu0.2, and 22.04 LTS (jammy) with version 1.7.15-1ubuntu0.1~esm2. Debian has also released fixes for bullseye (1.7.14-1+deb11u1), bookworm (1.7.15-1+deb12u2), and sid/trixie (1.7.18-3) (Ubuntu Security, Debian Tracker).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-11721CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesOct 14, 2025
CVE-2025-11719CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:thunderbird
NoYesOct 14, 2025
CVE-2025-11717CRITICAL9.1
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesOct 14, 2025
CVE-2025-11720HIGH8.1
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesOct 14, 2025
CVE-2025-11718MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesOct 14, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management