CVE-2020-12762 Integer overflow in n/a

High 7.8 Published Updated

An attacker can trigger an integer overflow and out-of-bounds write in json-c by providing a large JSON file, potentially leading to code execution or denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-12762?

CVE-2020-12762 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 9 May 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-190, CWE-787

Which versions are affected by CVE-2020-12762?

It affects 5 products.

Linux distribution packages (40)
json-c-devel AlmaLinux:8All versions0.13.1-2.el8
json-c-doc AlmaLinux:8All versions0.13.1-2.el8
libfastjson AlmaLinux:8All versions0.99.9-2.el8
libfastjson AlmaLinux:9All versions0.99.9-5.el9
libfastjson-devel AlmaLinux:9All versions0.99.9-5.el9
json-c-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:0.13.1-2.el8
json-c-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:0.13.1-2.el8
json-c-devel Red Hat:enterprise_linux:8::appstreamAll versions0:0.13.1-2.el8
libfastjson Red Hat:enterprise_linux:8::appstreamAll versions0:0.99.9-2.el8
libfastjson-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:0.99.9-2.el8
libfastjson-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:0.99.9-2.el8
json-c Red Hat:enterprise_linux:8::baseosAll versions0:0.13.1-2.el8
json-c-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:0.13.1-2.el8
json-c-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:0.13.1-2.el8
json-c-doc Red Hat:enterprise_linux:8::crbAll versions0:0.13.1-2.el8
libfastjson Red Hat:enterprise_linux:9::appstreamAll versions0:0.99.9-5.el9
libfastjson-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:0.99.9-5.el9
libfastjson-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:0.99.9-5.el9
libfastjson-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:0.99.9-5.el9
libfastjson-debugsource Red Hat:enterprise_linux:9::crbAll versions0:0.99.9-5.el9
libfastjson-devel Red Hat:enterprise_linux:9::crbAll versions0:0.99.9-5.el9
libfastjson Red Hat:rhel_eus:8.6::appstreamAll versions0:0.99.9-1.el8_6.1
libfastjson-debuginfo Red Hat:rhel_eus:8.6::appstreamAll versions0:0.99.9-1.el8_6.1
libfastjson-debugsource Red Hat:rhel_eus:8.6::appstreamAll versions0:0.99.9-1.el8_6.1
libfastjson Red Hat:rhel_eus:8.8::appstreamAll versions0:0.99.9-1.el8_8.1
libfastjson-debuginfo Red Hat:rhel_eus:8.8::appstreamAll versions0:0.99.9-1.el8_8.1
libfastjson-debugsource Red Hat:rhel_eus:8.8::appstreamAll versions0:0.99.9-1.el8_8.1
libfastjson Red Hat:rhel_eus:9.0::appstreamAll versions0:0.99.9-3.el9_0.1
libfastjson-debuginfo Red Hat:rhel_eus:9.0::appstreamAll versions0:0.99.9-3.el9_0.1
libfastjson-debugsource Red Hat:rhel_eus:9.0::appstreamAll versions0:0.99.9-3.el9_0.1
libfastjson Red Hat:rhel_eus:9.2::appstreamAll versions0:0.99.9-3.el9_2.1
libfastjson-debuginfo Red Hat:rhel_eus:9.2::appstreamAll versions0:0.99.9-3.el9_2.1
libfastjson-debugsource Red Hat:rhel_eus:9.2::appstreamAll versions0:0.99.9-3.el9_2.1
json-c Rocky Linux:8All versions0:0.13.1-2.el8
libfastjson Rocky Linux:8All versions0:0.99.9-2.el8
libfastjson Rocky Linux:9All versions0:0.99.9-5.el9
json-c SUSE:Enterprise Storage 6All versions0.13-3.3.1
json-c SUSE:Enterprise Storage 7All versions0.13-3.3.1
libfastjson SUSE:Enterprise Storage 7.1All versions0.99.8-150000.3.3.1
json-c SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions0.13-3.3.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Json-C Json-C, Siemens Sinec Ins.

How do I fix CVE-2020-12762?

Upgrade to a fixed version.

Is CVE-2020-12762 being exploited?

There is no known exploitation of CVE-2020-12762 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2020-12762, ALSA-2021:4382, ALSA-2023:6431, ALSA-2023:6976, AZL-6506, CLSA-2025-1751141300 and 34 more.

Is CVE-2020-12762 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free