{"id":"UBUNTU-CVE-2020-12762","details":"json-c through 0.14 has an integer overflow and out-of-bounds write via a large JSON file, as demonstrated by printbuf_memappend.","modified":"2026-04-22T12:28:36.683773Z","published":"2020-05-09T18:15:00Z","related":["USN-4360-1","USN-4360-4"],"upstream":["CVE-2020-12762"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-12762"},{"type":"REPORT","url":"https://github.com/json-c/json-c/pull/592"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4360-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4360-4"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-12762"}],"affected":[{"package":{"name":"json-c","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/json-c@0.11-3ubuntu1.2+esm3?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11-3ubuntu1.2+esm3"}]}],"versions":["0.11-2ubuntu1","0.11-3ubuntu1","0.11-3ubuntu1.2","0.11-3ubuntu1.2+esm1","0.11-3ubuntu1.2+esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"libjson-c2","binary_version":"0.11-3ubuntu1.2+esm3"},{"binary_name":"libjson0","binary_version":"0.11-3ubuntu1.2+esm3"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/json-c@0.11-4ubuntu2.6?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11-4ubuntu2.6"}]}],"versions":["0.11-4ubuntu2","0.11-4ubuntu2.1","0.11-4ubuntu2.2","0.11-4ubuntu2.5"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"0.11-4ubuntu2.6","binary_name":"libjson-c2"},{"binary_name":"libjson0","binary_version":"0.11-4ubuntu2.6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/json-c@0.12.1-1.3ubuntu0.3?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.1-1.3ubuntu0.3"}]}],"versions":["0.12.1-1.2","0.12.1-1.3","0.12.1-1.3ubuntu0.1","0.12.1-1.3ubuntu0.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libjson-c3","binary_version":"0.12.1-1.3ubuntu0.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/json-c@0.13.1+dfsg-7ubuntu0.3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.13.1+dfsg-7ubuntu0.3"}]}],"versions":["0.13.1+dfsg-4","0.13.1+dfsg-6","0.13.1+dfsg-7","0.13.1+dfsg-7ubuntu0.1","0.13.1+dfsg-7ubuntu0.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libjson-c4","binary_version":"0.13.1+dfsg-7ubuntu0.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-12762.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}