Stack-based buffer overflow in json-c - CVE-2021-32292

 

Stack-based buffer overflow in json-c - CVE-2021-32292

Published: August 29, 2023


Vulnerability identifier: #VU80061
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-32292
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the parseit() function in json_parse.c. A remote attacker can pass specially crafted input to the application, trigger a stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

json-c
Debian Linux
Gentoo Linux
openEuler
Ubuntu
Isolation Segment
VMware Tanzu Application Service for VMs
json-c (Debian package)
libjson-c5 (Ubuntu package)
json-c-debugsource
json-c-help
json-c-debuginfo
json-c-devel
json-c
dev-libs/json-c
VMware Tanzu Operations Manager
HPE Moonshot 1500 Chassis Manager

How to mitigate CVE-2021-32292

Install updates from vendor's website.

json-c - update to 0.16
json-c (Debian package) - update to 0.15-2+deb11u1
libjson-c5 (Ubuntu package) - update to 0.15-3~ubuntu1.22.04.2
json-c-debugsource - update to 0.15-6
json-c-help - update to 0.15-6
json-c-debuginfo - update to 0.15-6
json-c-devel - update to 0.15-6
json-c - update to 0.15-6
dev-libs/json-c - update to 0.16
VMware Tanzu Operations Manager - update to 3.0.15
HPE Moonshot 1500 Chassis Manager - update to 4.0-b43

External References

Related Security Bulletins