NULL pointer dereference in cJSON - CVE-2023-50472

 

NULL pointer dereference in cJSON - CVE-2023-50472

Published: December 26, 2023


Vulnerability identifier: #VU84771
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-50472
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a NULL pointer dereference error within the cJSON_SetValuestring() function in cJSON.c. A remote attacker can pass specially crafted data to the application and perform a denial of service (DoS) attack.


Affected software

cJSON
Red Hat Satellite
Red Hat Enterprise Linux for x86_64
Fedora
openEuler
python-sqlparse (Red Hat package)
cjson
cjson-debuginfo
cjson-debugsource
cjson-devel
cjson (Red Hat package)
rubygem-rack (Red Hat package)
satellite (Red Hat package)
rubygem-foreman_rh_cloud (Red Hat package)

How to mitigate CVE-2023-50472

Install updates from vendor's website.

cJSON - update to 1.7.17
Red Hat Satellite - update to 6.15.5.3
python-sqlparse (Red Hat package) - update to 0.5.0-1.el8pc
cjson - update to 1.7.15-5
cjson-debuginfo - update to 1.7.15-5
cjson-debugsource - update to 1.7.15-5
cjson-devel - update to 1.7.15-5
cjson - update to 1.7.17-1.el9
cjson (Red Hat package) - update to 1.7.18-1.el8sat
rubygem-rack (Red Hat package) - update to 2.2.14-1.el8sat
satellite (Red Hat package) - update to 6.15.5.3-1.el8sat
rubygem-foreman_rh_cloud (Red Hat package) - update to 9.0.61-1.el8sat

External References

Related Security Bulletins