PT-2020-6199 · Json-C+10 · Json-C+10

Tobias Stoeckmann

·

Published

2020-05-02

·

Updated

2025-11-03

·

CVE-2020-12762

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions json-c versions 0.14 and earlier
Description The issue is related to an integer overflow and out-of-bounds write in json-c, which can be triggered by a large JSON file. This can be demonstrated by the printbuf memappend function. The exploitation of this issue allows a remote attacker to access confidential data, compromise data integrity, and cause a denial of service.
Recommendations For json-c versions 0.14 and earlier, consider updating to a version that fixes the integer overflow and out-of-bounds write issue. As a temporary workaround, consider restricting the size of JSON files that can be processed to prevent exploitation. Additionally, restrict access to sensitive data and implement measures to prevent denial of service attacks until a patch is available.

Exploit

Fix

Memory Corruption

Integer Overflow

Weakness Enumeration

Related Identifiers

ALSA-2021:4382
ALSA-2023:6431
ALSA-2023:6976
ALT-PU-2020-2307
ALT-PU-2020-2322
ALT-PU-2021-1092
ALT-PU-2023-6478
ALT-PU-2023-6479
ALT-PU-2023-6481
ALT-PU-2023-6841
AZL-6506
BDU:2021-03538
CESA-2021_4382
CESA-2023_6976
CVE-2020-12762
DLA-2228-1
DLA-2228-2
DLA-2301-1
DLA-3461-1
DLA-4258-1
DSA-4741-1
INFSA-2023_6431
MGASA-2020-0240
MGASA-2023-0159
OESA-2023-1186
OPENSUSE-SU-2022:0184-1
OPENSUSE-SU-2022_0184-1
OPENSUSE-SU-2022_0184-2
OPENSUSE-SU-2024:12911-1
RHSA-2021:4382
RHSA-2021_4382
RHSA-2023:6431
RHSA-2023:6976
RHSA-2023_6431
RHSA-2023_6976
RHSA-2024:0411
RHSA-2024:0573
RHSA-2024:1086
RHSA-2024:1154
RLSA-2021:4382
SUSE-SU-2022:0184-1
SUSE-SU-2022:0184-2
SUSE-SU-2022:3001-1
SUSE-SU-2022_0184-1
SUSE-SU-2022_3001-1
SUSE-SU-2023:2135-1
SUSE-SU-2023_2135-1
SUSE-SU-2024:1775-1
SUSE-SU-2024:1846-1
SUSE-SU-2024_1775-1
SUSE-SU-2024_1846-1
USN-4360-1
USN-4360-2
USN-4360-3
USN-4360-4

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Debian
Linuxmint
Red Hat
Rocky Linux
Suse
Ubuntu
Json-C