CVE-2020-12762: json-c - Integer Overflow
- Cve: CVE-2020-12762
- Name: json-c - Integer Overflow
- 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.
- Impact: Attackers can cause memory corruption or application crashes, potentially leading to denial of service or arbitrary code execution.
- Remediation: Update to the latest version of json-c that addresses this vulnerability, or apply patches that fix the integer overflow and memory safety issues.
- Vulnerability type: integer_overflow
- Vulnerability impact: remote_code_execution, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.01888
- Epss percentile: 0.80079
- Assignee: [email protected]
- Published at: 2020-05-09T18:15:11Z
- Age in days: 2390
- Modified at: 2026-10-14T10:17:26Z
- Patch available: yes
- Public exploits total: 2
- References total: 20
- Products total: 5
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-12762
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-190 | Integer Overflow or Wraparound |
| CWE-787 | Out-of-bounds Write |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/json-c/json-c/pull/592 | nvd | 2020-05-09 |
| https://github.com/rsyslog/libfastjson/issues/161 | nvd | 2020-05-09 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/json-c/json-c/pull/592 | Exploit, Patch, Third Party Advisory |
| https://github.com/rsyslog/libfastjson/issues/161 | Exploit, Third Party Advisory |
| https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2020/05/msg00032.html | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2020/05/msg00034.html | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2020/07/msg00031.html | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2023/06/msg00023.html | Third Party Advisory |
| https://security.gentoo.org/glsa/202006-13 | Third Party Advisory |
| https://security.netapp.com/advisory/ntap-20210521-0001/ | Third Party Advisory |
| https://usn.ubuntu.com/4360-1/ | Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| json-c:json-c | < 0.15-20200726 | /v1/products/json-c/json-c |
| debian:debian_linux | = 10.0, = 9.0, = 8.0 | /v1/products/debian/debian_linux |
| fedoraproject:fedora | = 32, = 31, = 30 | /v1/products/fedoraproject/fedora |
| canonical:ubuntu_linux | = 20.04, = 19.10, = 18.04, = 16.04, = 14.04, = 12.04 | /v1/products/canonical/ubuntu_linux |
| siemens:sinec_ins | all versions, = 1.0, = 1.0 sp1 | /v1/products/siemens/sinec_ins |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| json-c/json-c | pull | yes | /v1/repositories/json-c/json-c |
| rsyslog/libfastjson | fix, issues | yes | /v1/repositories/rsyslog/libfastjson |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2020-05-09
- Exposed hosts: 21216412
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports