Name | CVE-2020-12762 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2228-1, DLA-2228-2, DLA-2301-1, DLA-3461-1, DSA-4741-1 |
Debian Bugs | 960326, 1035302 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
json-c (PTS) | bullseye (security), bullseye | 0.15-2+deb11u1 | fixed |
bookworm | 0.16-2 | fixed | |
sid, trixie | 0.18+ds-1 | fixed | |
libfastjson (PTS) | bullseye | 0.99.9-1 | vulnerable |
bookworm | 1.2304.0-1 | fixed | |
sid, trixie | 1.2304.0-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
json-c | source | jessie | 0.11-4+deb8u2 | DLA-2228-2 | ||
json-c | source | stretch | 0.12.1-1.1+deb9u1 | DLA-2301-1 | ||
json-c | source | buster | 0.12.1+ds-2+deb10u1 | DSA-4741-1 | ||
json-c | source | (unstable) | 0.13.1+dfsg-8 | 960326 | ||
libfastjson | source | buster | 0.99.8-2+deb10u1 | DLA-3461-1 | ||
libfastjson | source | (unstable) | 1.2304.0-1 | 1035302 |
[bullseye] - libfastjson <no-dsa> (Minor issue)
https://github.com/json-c/json-c/pull/592
https://github.com/json-c/json-c/commit/099016b7e8d70a6d5dd814e788bba08d33d48426
https://github.com/json-c/json-c/commit/77d935b7ae7871a1940cd827e850e6063044ec45
https://github.com/json-c/json-c/commit/d07b91014986900a3a75f306d302e13e005e9d67
https://github.com/json-c/json-c/commit/519dfe1591d85432986f9762d41d1a883198c157
https://github.com/json-c/json-c/commit/a59d5acfab4485d5133114df61785b1fc633e0c6
d07b91014986 ("Fix integer overflows.") introduces a regression tracked as:
https://github.com/json-c/json-c/issues/599
https://github.com/json-c/json-c/pull/610
Working backports for older branches: https://github.com/json-c/json-c/pull/608
https://github.com/rsyslog/libfastjson/issues/161