Skip to content
OpenAdvisories
High · 7.8 CVE-2020-12762 EUVD-2020-5047GHSA-3797-gmjf-45gm

json-c through 0.14 has an integer overflow and out-of-bounds write via a large JSON file, as demonstrated by printbuf_memappend.

Published May 9, 2020 · Updated Oct 14, 2026 · Assigned by mitre

Description

json-c through 0.14 has an integer overflow and out-of-bounds write via a large JSON file, as demonstrated by printbuf_memappend.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 json-c 0.13.1+dfsg-8 —
Debian 14 libfastjson 1.2304.0-1 —
Debian 13 json-c 0.13.1+dfsg-8 —
Debian 13 libfastjson 1.2304.0-1 —
Debian 12 json-c 0.13.1+dfsg-8 —
Debian 12 libfastjson 1.2304.0-1 —
Debian 11 libfastjson 0.99.9-1+deb11u1 DLA-4258-1
Debian 10 json-c 0.12.1+ds-2+deb10u1 DSA-4741-1
Debian 10 libfastjson 0.99.8-2+deb10u1 DLA-3461-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 json-c 0.12.1-1.1+deb9u1 DLA-2301-1
Debian 8 json-c 0.11-4+deb8u1 DLA-2228-2, DLA-2228-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS json-c 0.13.1+dfsg-7ubuntu0.3 USN-4360-4, USN-4360-1
Ubuntu 18.04 LTS json-c 0.12.1-1.3ubuntu0.3 USN-4360-4, USN-4360-1
Ubuntu 16.04 LTS json-c 0.11-4ubuntu2.6 USN-4360-4, USN-4360-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS json-c 0.11-3ubuntu1.2+esm3 USN-4360-4, USN-4360-1
ReleasePackageFixed inAdvisory
RHEL 9 libfastjson +1 0.99.9-5.el9 RHSA-2023:6431
RHEL 8 json-c +2 0.13.1-2.el8 RHSA-2021:4382
RHEL 8 libfastjson 0.99.9-2.el8 RHSA-2023:6976
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.2 EUS libfastjson 0.99.9-3.el9_2.1 RHSA-2024:1086
RHEL 9.0 EUS libfastjson 0.99.9-3.el9_0.1 RHSA-2024:1154
RHEL 8.8 EUS libfastjson 0.99.9-1.el8_8.1 RHSA-2024:0573
RHEL 8.6 EUS libfastjson 0.99.9-1.el8_6.1 RHSA-2024:0411

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 libfastjson +1 0.99.9-5.el9 ALSA-2023:6431
AlmaLinux 8 json-c-doc +1 0.13.1-2.el8 ALSA-2021:4382
AlmaLinux 8 libfastjson 0.99.9-2.el8 ALSA-2023:6976

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 libfastjson 0.99.9-5.el9 RLSA-2023:6431
Rocky Linux 8 json-c 0.13.1-2.el8 RLSA-2021:4382
Rocky Linux 8 libfastjson 0.99.9-2.el8 RLSA-2023:6976
ReleasePackageFixed inAdvisory
SLES 15 SP4 libfastjson 0.99.9-150400.3.3.1 SUSE-SU-2023:2135-1
SLES 15 SP3 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SLES 15 SP3 libfastjson 0.99.8-150000.3.3.1 SUSE-SU-2024:1775-1
SLES 15 SP2 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SLES 15 SP2 libfastjson 0.99.8-150000.3.3.1 SUSE-SU-2024:1775-1
SLES 15 SP1 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SLES 15 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
Show 25 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 json-c 0.12.1-4.3.1 SUSE-SU-2022:3001-1
SLES 12 SP5 libfastjson 0.99.8-3.6.1 SUSE-SU-2024:1846-1
SLES 12 SP4 json-c 0.12.1-4.3.1 SUSE-SU-2022:3001-1
SLES 12 SP3 json-c 0.12.1-4.3.1 SUSE-SU-2022:3001-1
SLES 12 SP2 json-c 0.12.1-4.3.1 SUSE-SU-2022:3001-1
SLES for SAP 15 SP3 libfastjson 0.99.8-150000.3.3.1 SUSE-SU-2024:1775-1
SLES for SAP 15 SP2 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SLES for SAP 15 SP2 libfastjson 0.99.8-150000.3.3.1 SUSE-SU-2024:1775-1
SLES for SAP 15 SP1 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SLES for SAP 15 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SLES for SAP 12 SP5 json-c 0.12.1-4.3.1 SUSE-SU-2022:3001-1
SLES for SAP 12 SP5 libfastjson 0.99.8-3.6.1 SUSE-SU-2024:1846-1
SLES for SAP 12 SP4 json-c 0.12.1-4.3.1 SUSE-SU-2022:3001-1
SLE Real Time 15 SP2 json-c 0.13-3.3.1 SUSE-SU-2022:0184-2
SLE Micro 5.1 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SLE Micro 5.0 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SLE HPC 15 SP3 libfastjson 0.99.8-150000.3.3.1 SUSE-SU-2024:1775-1
SLE HPC 15 SP2 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SLE HPC 15 SP2 libfastjson 0.99.8-150000.3.3.1 SUSE-SU-2024:1775-1
SLE HPC 15 SP1 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SLE HPC 15 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SUSE OpenStack Cloud Crowbar 9 json-c 0.12.1-4.3.1 SUSE-SU-2022:3001-1
SUSE OpenStack Cloud 9 json-c 0.12.1-4.3.1 SUSE-SU-2022:3001-1
SUSE Manager Server 4.1 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SUSE Manager Retail Branch Server 4.1 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SUSE Manager Proxy 4.1 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SUSE Enterprise Storage 7.1 libfastjson 0.99.8-150000.3.3.1 SUSE-SU-2024:1775-1
SUSE Enterprise Storage 7 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
SUSE Enterprise Storage 6 json-c 0.13-3.3.1 SUSE-SU-2022:0184-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.4 libfastjson 0.99.9-150400.3.3.1 SUSE-SU-2023:2135-1
openSUSE Leap 15.3 json-c 0.13-3.3.1 openSUSE-SU-2022:0184-1
ReleasePackageFixed inAdvisory
Alpine v3.24 json-c 0.14-r1 —
Alpine v3.24 libfastjson 1.2304.0-r0 —
Alpine v3.23 json-c 0.14-r1 —
Alpine v3.23 libfastjson 1.2304.0-r0 —
Alpine v3.22 json-c 0.14-r1 —
Alpine v3.22 libfastjson 1.2304.0-r0 —
Alpine v3.21 json-c 0.14-r1 —
Alpine v3.21 libfastjson 1.2304.0-r0 —
Alpine v3.20 json-c 0.14-r1 —
Alpine v3.20 libfastjson 1.2304.0-r0 —
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 json-c 0.14-r1 —
Alpine v3.19 libfastjson 1.2304.0-r0 —
Alpine v3.18 json-c 0.14-r1 —
Alpine v3.18 libfastjson 1.2304.0-r0 —
Alpine v3.17 json-c 0.14-r1 —
Alpine v3.17 libfastjson 1.2304.0-r0 —
Alpine v3.16 json-c 0.14-r1 —
Alpine v3.16 libfastjson 1.2304.0-r0 —
Alpine v3.15 json-c 0.14-r1 —
Alpine v3.15 libfastjson 1.2304.0-r0 —
Alpine v3.14 json-c 0.14-r1 —
Alpine v3.13 json-c 0.14-r1 —
Alpine v3.12 json-c 0.14-r1 —
Alpine v3.11 json-c 0.13.1-r1 —
Alpine v3.10 json-c 0.13.1-r1 —
Alpine v3.9 json-c 0.13.1-r1 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 json-c +2 0.14-8.amzn2023.0.2 ALAS2023-2023-232
Amazon Linux 2023 libfastjson +1 0.99.9-1.amzn2023.0.3 ALAS2023-2023-205
Amazon Linux 2 json-c +2 0.11-4.amzn2.0.4 ALAS2-2020-1442
Amazon Linux 2 libfastjson +1 0.99.4-3.amzn2.0.1 ALAS2-2023-2079

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) json-c 0.15-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 libfastjson +1 0.99.9-5.el9 ELSA-2023-6431
Oracle Linux 8 json-c +2 0.13.1-2.el8 ELSA-2021-4382
Oracle Linux 8 libfastjson 0.99.9-2.el8 ELSA-2023-6976

Advisories 46

References