{"id":"ALPINE-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-03-09T01:19:09.825659Z","published":"2020-05-09T18:15:11.283Z","upstream":["CVE-2020-12762"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2020-12762"}],"affected":[{"package":{"name":"json-c","ecosystem":"Alpine:v3.10","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.13.1-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.11","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.13.1-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0","0.14-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0","0.14-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0","0.14-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0","0.14-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0","0.14-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0","0.14-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0","0.14-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0","0.14-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0","0.14-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0","0.14-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0","0.14-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0","0.14-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"json-c","ecosystem":"Alpine:v3.9","purl":"pkg:apk/alpine/json-c?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.13.1-r1"}]}],"versions":["0.10-r0","0.11-r0","0.12-r0","0.12-r1","0.12.1-r0","0.12.1-r1","0.12.1-r2","0.12.1-r3","0.13.1-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"libfastjson","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/libfastjson?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2304.0-r0"}]}],"versions":["0.99.2-r0","0.99.4-r0","0.99.7-r0","0.99.8-r0","0.99.8-r1","0.99.8-r2","0.99.9-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"libfastjson","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/libfastjson?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2304.0-r0"}]}],"versions":["0.99.2-r0","0.99.4-r0","0.99.7-r0","0.99.8-r0","0.99.8-r1","0.99.8-r2","0.99.9-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"libfastjson","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/libfastjson?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2304.0-r0"}]}],"versions":["0.99.2-r0","0.99.4-r0","0.99.7-r0","0.99.8-r0","0.99.8-r1","0.99.8-r2","0.99.9-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"libfastjson","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/libfastjson?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2304.0-r0"}]}],"versions":["0.99.2-r0","0.99.4-r0","0.99.7-r0","0.99.8-r0","0.99.8-r1","0.99.8-r2","0.99.9-r0","0.99.9-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"libfastjson","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/libfastjson?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2304.0-r0"}]}],"versions":["0.99.2-r0","0.99.4-r0","0.99.7-r0","0.99.8-r0","0.99.8-r1","0.99.8-r2","0.99.9-r0","0.99.9-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"libfastjson","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/libfastjson?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2304.0-r0"}]}],"versions":["0.99.2-r0","0.99.4-r0","0.99.7-r0","0.99.8-r0","0.99.8-r1","0.99.8-r2","0.99.9-r0","0.99.9-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"libfastjson","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/libfastjson?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2304.0-r0"}]}],"versions":["0.99.2-r0","0.99.4-r0","0.99.7-r0","0.99.8-r0","0.99.8-r1","0.99.8-r2","0.99.9-r0","0.99.9-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"libfastjson","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/libfastjson?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2304.0-r0"}]}],"versions":["0.99.2-r0","0.99.4-r0","0.99.7-r0","0.99.8-r0","0.99.8-r1","0.99.8-r2","0.99.9-r0","0.99.9-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}},{"package":{"name":"libfastjson","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/libfastjson?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2304.0-r0"}]}],"versions":["0.99.2-r0","0.99.4-r0","0.99.7-r0","0.99.8-r0","0.99.8-r1","0.99.8-r2","0.99.9-r0","0.99.9-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-12762.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}