CVE-2020-12762
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.89% (higher than 80% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
json-c json-cbefore 0.15-20200726NVD
fedoraproject fedora30, 31, 32NVD
debian debian_linux8.0, 9.0, 10.0NVD
canonical ubuntu_linux12.04, 14.04, 16.04, 18.04, 19.10, 20.04NVD
siemens sinec_ins1.0NVD

All scores

CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

CWE-190CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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

NVD (es)

json-c versiones hasta 0.14, presenta un desbordamiento de enteros y una escritura fuera de límites por medio de un archivo JSON grande, como es demostrado por la función printbuf_memappend.

References

https://github.com/json-c/json-c/pull/592exploit, patch, third-party-advisory
https://github.com/rsyslog/libfastjson/issues/161exploit, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CQQRRGBQCAWNCCJ2HN3W5SSCZ4QGMXQI/vendor-advisory
https://usn.ubuntu.com/4360-1/third-party-advisory, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBR36IXYBHITAZFB5PFBJTED22WO5ONB/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W226TSCJBEOXDUFVKNWNH7ETG7AR6MCS/vendor-advisory
https://lists.debian.org/debian-lts-announce/2020/05/msg00032.htmlmailing-list, third-party-advisory
https://lists.debian.org/debian-lts-announce/2020/05/msg00034.htmlmailing-list, third-party-advisory
https://usn.ubuntu.com/4360-4/third-party-advisory, vendor-advisory
https://security.gentoo.org/glsa/202006-13third-party-advisory, vendor-advisory
https://lists.debian.org/debian-lts-announce/2020/07/msg00031.htmlmailing-list, third-party-advisory
https://www.debian.org/security/2020/dsa-4741third-party-advisory, vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2020-12762 changed 2026-10-14CVE Terms of Use
NVDCVE-2020-12762 changed 2026-10-14Public domain