ID CVE-2020-12762
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.
References
Vulnerable Configurations
  • cpe:2.3:a:json-c_project:json-c:0.1:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.2:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.3:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.3:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.4:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.4:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.5:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.5:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.6:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.6:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.7:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.7:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.8:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.8:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.9:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.9:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.10:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.10:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.11:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.11:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.12:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.12:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.12.1:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.12.1:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.13:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.13:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.13.1:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.13.1:*:*:*:*:*:*:*
  • cpe:2.3:a:json-c_project:json-c:0.14:*:*:*:*:*:*:*
    cpe:2.3:a:json-c_project:json-c:0.14:*:*:*:*:*:*:*
CVSS
Base: 6.8 (as of 21-05-2021 - 09:15)
Impact:
Exploitability:
CWE CWE-190
CAPEC
  • Forced Integer Overflow
    This attack forces an integer variable to go out of range. The integer variable is often used as an offset such as size of memory allocation or similarly. The attacker would typically control the value of such variable and try to get it out of range. For instance the integer in question is incremented past the maximum possible value, it may wrap to become a very small, or negative number, therefore providing a very incorrect value which can lead to unexpected behavior. At worst the attacker can execute arbitrary code.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:N/AC:M/Au:N/C:P/I:P/A:P
refmap via4
confirm https://github.com/json-c/json-c/pull/592
debian DSA-4741
fedora
  • FEDORA-2020-63c6f4ab1d
  • FEDORA-2020-7eb7eac270
  • FEDORA-2020-847ad856ab
gentoo GLSA-202006-13
misc https://github.com/rsyslog/libfastjson/issues/161
mlist
  • [debian-lts-announce] 20200531 [SECURITY] [DLA 2228-1] json-c security update
  • [debian-lts-announce] 20200531 [SECURITY] [DLA 2228-2] json-c regression update
  • [debian-lts-announce] 20200730 [SECURITY] [DLA 2301-1] json-c security update
ubuntu
  • USN-4360-1
  • USN-4360-4
Last major update 21-05-2021 - 09:15
Published 09-05-2020 - 18:15
Last modified 21-05-2021 - 09:15
Back to Top