Bug 2277268 (CVE-2024-31755)

Summary: CVE-2024-31755 cjson: segmentation violation trigger through the second parameter of function cJSON_SetValuestring at cJSON.c
Product: [Other] Security Response Reporter: Rohit Keshri <rkeshri>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: anthomas, barsnick, bbuckingham, bcourt, ehelms, ggainey, jsherril, juwatts, lzap, mhulan, nmoumoul, orabin, osousa, pcreech, rchan, smallamp
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: cJSON 1.7.18 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in cJSON. This issue contains a segmentation violation, which can trigger through the second parameter of the cJSON_SetValuestring function at cJSON.c.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2277269, 2277270, 2277271, 2277272, 2277273, 2277274    
Bug Blocks: 2277275    

Description Rohit Keshri 2024-04-26 04:23:07 UTC
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.

https://github.com/DaveGamble/cJSON/issues/839

Comment 1 Rohit Keshri 2024-04-26 04:26:32 UTC
Created cjson tracking bugs for this issue:

Affects: epel-all [bug 2277269]
Affects: fedora-all [bug 2277270]


Created mmc tracking bugs for this issue:

Affects: fedora-all [bug 2277271]

Comment 3 barsnick 2024-09-02 20:50:18 UTC
Nice with all the tracking bugs, but a fix has been available since April 26 2024, and a new release containing the fix since May 13.
https://github.com/DaveGamble/cJSON/releases/tag/v1.7.18

Why hasn't a new release of the packages been triggered?

Comment 5 errata-xmlrpc 2025-06-12 14:50:04 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.17 for RHEL 9

Via RHSA-2025:9022 https://access.redhat.com/errata/RHSA-2025:9022

Comment 6 errata-xmlrpc 2025-06-17 14:54:05 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.16 for RHEL 8
  Red Hat Satellite 6.16 for RHEL 9

Via RHSA-2025:9203 https://access.redhat.com/errata/RHSA-2025:9203

Comment 7 errata-xmlrpc 2025-06-26 15:56:29 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.15 for RHEL 8

Via RHSA-2025:9838 https://access.redhat.com/errata/RHSA-2025:9838