{"id":"USN-4360-4","summary":"json-c vulnerability","details":"USN-4360-1 fixed a vulnerability in json-c. The security fix introduced a\nmemory leak that was reverted in USN-4360-2 and USN-4360-3. This update provides\nthe correct fix update for CVE-2020-12762.\n\nOriginal advisory details:\n\n It was discovered that json-c incorrectly handled certain JSON files.\n An attacker could possibly use this issue to execute arbitrary code.\n","modified":"2026-04-22T10:05:09.728716Z","published":"2020-05-28T11:33:22Z","related":["UBUNTU-CVE-2020-12762"],"upstream":["CVE-2020-12762","UBUNTU-CVE-2020-12762"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4360-4"},{"type":"REPORT","url":"https://ubuntu.com/security/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/usn/USN-4360-4.json","cves_map":{"ecosystem":"Ubuntu:Pro:14.04:LTS","cves":[{"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"}],"id":"CVE-2020-12762"}]}}},{"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":{"binaries":[{"binary_name":"libjson-c2","binary_version":"0.11-4ubuntu2.6"},{"binary_name":"libjson0","binary_version":"0.11-4ubuntu2.6"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-4360-4.json","cves_map":{"ecosystem":"Ubuntu:16.04:LTS","cves":[{"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"}],"id":"CVE-2020-12762"}]}}},{"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":{"binaries":[{"binary_name":"libjson-c3","binary_version":"0.12.1-1.3ubuntu0.3"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-4360-4.json","cves_map":{"ecosystem":"Ubuntu:18.04:LTS","cves":[{"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"}],"id":"CVE-2020-12762"}]}}},{"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":{"binaries":[{"binary_name":"libjson-c4","binary_version":"0.13.1+dfsg-7ubuntu0.3"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-4360-4.json","cves_map":{"ecosystem":"Ubuntu:20.04:LTS","cves":[{"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"}],"id":"CVE-2020-12762"}]}}}],"schema_version":"1.7.5"}