Cloudanix VulnDB

CVE-2024-31755

High · 7.6

CVSS

7.6

EPSS

0.6%

Published

Apr 26, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in software used for security testing can cause the program to crash when handling certain data, interrupting testing work.

Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Segmentation violation triggered via the second parameter to cJSON_SetValuestring in cJSON.c, resulting in memory corruption and process crash.

Why it matters to the business

Disrupts Caldera-based adversary emulation and red-team operations by causing unexpected service termination when processing certain JSON data.

How an attack unfolds

An attacker supplies crafted input that reaches cJSON_SetValuestring with a malicious second argument, forcing a segmentation fault and denial of service.

How to fix it

Update mitre/caldera to commit a1f6a919cbee846412fb273d357ccf7eea7de800 or later; rebuild and redeploy affected instances.

How to confirm the fix worked

Confirm the running binary or source tree contains commit a1f6a919cbee846412fb273d357ccf7eea7de800; re-test cJSON_SetValuestring paths with previously crashing inputs.

Typical attack path

  1. Identify an endpoint or API in Caldera that accepts JSON input processed by cJSON
  2. Craft a payload that triggers the second parameter of cJSON_SetValuestring with invalid data
  3. Send the payload to induce segmentation violation and crash the process
  4. Repeat to maintain denial of service against emulation services

How to detect it

Review Caldera application and system logs for unexpected segmentation faults or process terminations around JSON handling routines; correlate with inbound requests containing JSON payloads.

What your security team should do

  • Upgrade all Caldera deployments to the fixed commit immediately
  • Monitor for service restarts or crashes in Caldera logs
  • Restrict untrusted JSON input sources until patched
  • Review downstream dependents for similar cJSON usage

The record

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.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 cjson 0 1.7.14-1+deb11u1
Debian:12 cjson 0 No fix
Debian:13 cjson 0 1.7.18-1
Mageia:9 cjson 0 1.7.15-2.2.mga9
SUSE:Package Hub 15 SP5 cJSON 0 1.7.18-bp155.3.3.1
Ubuntu:22.04:LTS cjson 0 No fix
Ubuntu:23.10 cjson 0 1.7.16-1ubuntu0.2
Ubuntu:24.04:LTS cjson 0 No fix
Ubuntu:24.10 cjson 0 No fix
Ubuntu:Pro:22.04:LTS cjson 0 1.7.15-1ubuntu0.1~esm2
Ubuntu:Pro:24.04:LTS cjson 0 1.7.17-1ubuntu0.1~esm2
openSUSE:Leap 15.5 cJSON 0 1.7.18-bp155.3.3.1
openSUSE:Tumbleweed cJSON 0 1.7.18-1.1

Related vulnerabilities