json-c through 0.14 has an integer overflow and out-of-bounds write via a large JSON…
Priority MEDIUM 40CWE-787Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 9 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat. Impact type from CWE-787 and the CVSS impact.
Summary
json-c through 0.14 has an integer overflow and out-of-bounds write via a large JSON file, as demonstrated by printbuf_memappend.
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01895 79th percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Partial Red Hat: 7 advisoriesRed Hat: 9 fixed, 2 without a fix
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 16
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:json-c:json-c:*:*:*:*:*:*:*:* | before 0.15-20200726 | Vulnerable | Json-c |
| cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:* | 30 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* | 31 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* | 32 | Vulnerable | Fedoraproject |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
| cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:-:*:*:* | 12.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:* | 16.04 | Vulnerable | Canonical |
- cpe:2.3:a:json-c:json-c:*:*:*:*:*:*:*:* Versions before 0.15-20200726 Vulnerable ·Json-c
- cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:* Versions 30 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* Versions 31 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* Versions 32 Vulnerable ·Fedoraproject
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
- cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:-:*:*:* Versions 12.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:* Versions 16.04 Vulnerable ·Canonical
Show 6 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* | 18.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:* | 19.10 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:* | 20.04 | Vulnerable | Canonical |
| cpe:2.3:a:siemens:sinec_ins:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | Siemens |
| cpe:2.3:a:siemens:sinec_ins:1.0:-:*:*:*:*:*:* | 1.0 | Vulnerable | Siemens |
| cpe:2.3:a:siemens:sinec_ins:1.0:sp1:*:*:*:*:*:* | 1.0 sp1 | Vulnerable | Siemens |
- cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* Versions 18.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:* Versions 19.10 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:* Versions 20.04 Vulnerable ·Canonical
- cpe:2.3:a:siemens:sinec_ins:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·Siemens
- cpe:2.3:a:siemens:sinec_ins:1.0:-:*:*:*:*:*:* Versions 1.0 Vulnerable ·Siemens
- cpe:2.3:a:siemens:sinec_ins:1.0:sp1:*:*:*:*:*:* Versions 1.0 sp1 Vulnerable ·Siemens
Remediation
Red Hat 7 advisories
- RHSA-2024:1154 Released 2024-03-05 · Red Hat rating Moderatelibfastjson security update
- Red Hat Enterprise Linux AppStream EUS (v.9.0) libfastjson-0.99.9-3.el9_0.1
- RHSA-2024:1086 Released 2024-03-05 · Red Hat rating Moderatelibfastjson security update
- Red Hat Enterprise Linux AppStream EUS (v.9.2) libfastjson-0.99.9-3.el9_2.1
- RHSA-2024:0573 Released 2024-01-30 · Red Hat rating Moderatelibfastjson security update
- Red Hat Enterprise Linux AppStream EUS (v.8.8) libfastjson-0.99.9-1.el8_8.1
Show 4 more Red Hat advisories
- RHSA-2024:0411 Released 2024-01-25 · Red Hat rating Moderatelibfastjson security update
- Red Hat Enterprise Linux AppStream EUS (v.8.6) libfastjson-0.99.9-1.el8_6.1
- RHSA-2023:6976 Released 2023-11-14 · Red Hat rating Moderatelibfastjson security update
- Red Hat Enterprise Linux AppStream (v. 8) libfastjson-0.99.9-2.el8
- RHSA-2023:6431 Released 2023-11-07 · Red Hat rating Moderatelibfastjson security update
- Red Hat CodeReady Linux Builder (v. 9) libfastjson-devel-0.99.9-5.el9
- Red Hat Enterprise Linux AppStream (v. 9) libfastjson-0.99.9-5.el9
- RHSA-2021:4382 Released 2021-11-09 · Red Hat rating Moderatejson-c security and bug fix update
- Red Hat CodeReady Linux Builder (v. 8) json-c-doc-0.13.1-2.el8
- Red Hat Enterprise Linux AppStream (v. 8) json-c-devel-0.13.1-2.el8
- Red Hat Enterprise Linux BaseOS (v. 8) json-c-0.13.1-2.el8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat CodeReady Linux Builder (v. 8) | Fixed | RHSA-2021:4382 |
| Red Hat CodeReady Linux Builder (v. 9) | Fixed | RHSA-2023:6431 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2021:4382, RHSA-2023:6976 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2023:6431 |
| Red Hat Enterprise Linux AppStream EUS (v.8.6) | Fixed | RHSA-2024:0411 |
| Red Hat Enterprise Linux AppStream EUS (v.8.8) | Fixed | RHSA-2024:0573 |
| Red Hat Enterprise Linux AppStream EUS (v.9.0) | Fixed | RHSA-2024:1154 |
| Red Hat Enterprise Linux AppStream EUS (v.9.2) | Fixed | RHSA-2024:1086 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2021:4382 |
Not affected: 1 product
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2020-12762
- 2026-10-03 Alias added: GHSA-3797-gmjf-45gm
References
Advisory 13
- FEDORA-2020-63c6f4ab1d
- USN-4360-1
- FEDORA-2020-847ad856ab
- FEDORA-2020-7eb7eac270
- [debian-lts-announce] 20200531 [SECURITY] [DLA 2228-1] json-c security update
- [debian-lts-announce] 20200531 [SECURITY] [DLA 2228-2] json-c regression update
- USN-4360-4
- GLSA-202006-13
- [debian-lts-announce] 20200730 [SECURITY] [DLA 2301-1] json-c security update
- DSA-4741
- https://security.netapp.com/advisory/ntap-20210521-0001/
- https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf
- [debian-lts-announce] 20230620 [SECURITY] [DLA 3461-1] libfastjson security update
Sources
- CVE-2020-12762 · CVE Program
- CVE-2020-12762 · NVD
- FIRST EPSS
- GHSA-3797-gmjf-45gm · GitHub Advisory Database · CC BY 4.0
- CVE-2020-12762 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences