PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2020-12762: 
NixOS vulnerability analysis and mitigation

Overview

CVE-2020-12762 affects json-c through version 0.14 and libfastjson. The vulnerability was discovered in May 2020 and involves an integer overflow and out-of-bounds write vulnerability that can be triggered via a large JSON file, specifically demonstrated through the printbuf_memappend function (NVD).

Technical details

The vulnerability manifests in the printbuf_memappend function where properly crafted values can cause p->bpos + size + 1 to overflow, leading to incorrect assumptions about p->size being large enough. While json_object_from_fd typically prevents this through buffer size checks, the overflow can be exploited when parsed buffer chunk length is not a power of 2 (GitHub PR).

Impact

Successful exploitation of this vulnerability could lead to denial of service, disclosure of sensitive information, addition or modification of data, or potentially arbitrary code execution. The CVSS score is 7.8 (HIGH) with vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NetApp Advisory).

Exploitability

The vulnerability can be triggered if an attacker has control over the input stream or if a huge load during filesystem operations can be triggered. A proof of concept exploit has been publicly demonstrated that causes program crashes, with potential for more sophisticated attacks that could write attacker-controlled bytes outside allocated memory areas (GitHub PR).

Mitigation and workarounds

The vulnerability was fixed in json-c version 0.14-r3 and later releases. Users are advised to upgrade to patched versions. For Debian systems, fixes were released as version 0.11-4+deb8u2 for Jessie, 0.12.1-1.1+deb9u1 for Stretch, and 0.12.1+ds-2+deb10u1 for Buster. Ubuntu systems received fixes through USN-4360-1 and USN-4360-4 (Debian Security, Ubuntu Security).

Additional resources


Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-112940HIGH7.1
  • Python logoPython
  • py3-filelock
NoYesOct 20, 2026
CVE-2026-112937MEDIUM6.1
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112936MEDIUM6.1
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112939MEDIUM4.7
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112941LOW3.3
  • Python logoPython
  • filelock
NoYesOct 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management