The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-12762

CVE-2020-12762: Json-c Buffer Overflow Vulnerability

CVE-2020-12762 is a buffer overflow vulnerability in Json-c through version 0.14 caused by integer overflow and out-of-bounds write via large JSON files. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-12762 Overview

CVE-2020-12762 is an integer overflow vulnerability in the json-c library through version 0.14 that can lead to an out-of-bounds write when processing a large JSON file. The vulnerability is specifically demonstrated in the printbuf_memappend function, which fails to properly validate size calculations before memory operations. This memory corruption vulnerability can potentially allow attackers to execute arbitrary code or cause denial of service conditions when a vulnerable application parses maliciously crafted JSON input.

Critical Impact

Successful exploitation of this integer overflow vulnerability can result in memory corruption, potentially leading to arbitrary code execution with the privileges of the application parsing the malicious JSON data, or causing application crashes resulting in denial of service.

Affected Products

  • json-c through version 0.14
  • Fedora 30, 31, and 32
  • Debian Linux 8.0, 9.0, and 10.0
  • Ubuntu Linux 12.04, 14.04 ESM, 16.04 ESM, 18.04 LTS, 19.10, and 20.04 LTS
  • Siemens SINEC INS (including version 1.0 and 1.0 SP1)

Discovery Timeline

  • 2020-05-09 - CVE-2020-12762 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2020-12762

Vulnerability Analysis

The vulnerability exists in the json-c library's buffer management routines, specifically within the printbuf_memappend function. When processing JSON data, the library needs to dynamically allocate and expand buffers to accommodate varying input sizes. The core issue arises when calculating the new buffer size during reallocation operations.

When a sufficiently large JSON file is processed, the size calculation can wrap around due to integer overflow, resulting in a much smaller buffer being allocated than required. Subsequent write operations then exceed the allocated buffer boundaries, corrupting adjacent memory regions. This out-of-bounds write condition (CWE-787) stems directly from the improper handling of integer overflow conditions (CWE-190).

The attack requires local access with user interaction, meaning a victim must be induced to process a malicious JSON file using an application that depends on the vulnerable json-c library. The vulnerability affects confidentiality, integrity, and availability, as successful exploitation can lead to information disclosure, arbitrary code execution, or application crashes.

Root Cause

The root cause is an integer overflow vulnerability (CWE-190) in the buffer size calculation logic within printbuf_memappend. When the requested buffer size exceeds the maximum representable integer value, the calculation wraps around to a small positive number. The library then allocates this insufficient buffer space and proceeds to write data beyond its boundaries, resulting in an out-of-bounds write (CWE-787). The absence of proper overflow checking before memory allocation operations allows this condition to be exploited.

Attack Vector

The attack vector requires local access to the target system and user interaction. An attacker must craft a malicious JSON file with specific characteristics designed to trigger the integer overflow condition during parsing. The attack scenario involves:

  1. Creating a JSON file with extremely large nested structures or string values designed to force buffer reallocation
  2. Delivering the malicious JSON file to the target system (via email, download, or other means)
  3. Inducing the victim to process the file using an application linked against the vulnerable json-c library
  4. The parsing operation triggers the integer overflow, leading to memory corruption

The vulnerability mechanism involves buffer size calculations that fail to account for integer overflow conditions. When the printbuf_memappend function calculates the new buffer size by adding the existing size to the requested additional space, the result can overflow and wrap around to a small value, leading to insufficient memory allocation followed by out-of-bounds writes.

Detection Methods for CVE-2020-12762

Indicators of Compromise

  • Unexpected application crashes or segmentation faults when processing JSON files
  • Abnormal memory consumption patterns in applications using json-c library
  • Core dump files indicating memory corruption in json-c related functions
  • Unusual JSON files with extremely large nested structures or string values on the system

Detection Strategies

  • Monitor for application crashes involving json-c library functions, particularly printbuf_memappend
  • Implement file integrity monitoring for JSON configuration files processed by critical applications
  • Deploy memory protection mechanisms such as ASLR and DEP to make exploitation more difficult
  • Use static and dynamic code analysis tools to identify applications linked against vulnerable json-c versions

Monitoring Recommendations

  • Audit installed packages to identify systems running json-c version 0.14 or earlier
  • Monitor system logs for segmentation faults in applications that process JSON data
  • Implement input validation for JSON files before processing, rejecting files exceeding reasonable size thresholds
  • Track security advisories from vendors using json-c, including Siemens, Debian, Ubuntu, and Fedora

How to Mitigate CVE-2020-12762

Immediate Actions Required

  • Update json-c library to a patched version that addresses the integer overflow vulnerability
  • Apply vendor-specific security patches from your Linux distribution (Debian, Ubuntu, Fedora, or others)
  • Review applications that depend on json-c and prioritize updates for those processing untrusted JSON input
  • For Siemens SINEC INS deployments, apply the patches referenced in Siemens Security Advisory SSA-637483

Patch Information

The json-c project has addressed this vulnerability in newer releases. The fix is available in the GitHub Pull Request for JSON-C, which implements proper overflow checking in the buffer size calculations.

Multiple Linux distributions have released security updates:

  • Debian: DSA-4741 and multiple LTS announcements
  • Ubuntu: USN-4360-1 and USN-4360-4
  • Fedora: Package updates for Fedora 30, 31, and 32
  • Gentoo: GLSA 202006-13

Organizations using Siemens SINEC INS should consult the Siemens security advisory for specific remediation guidance.

Workarounds

  • Implement input validation to reject JSON files exceeding a reasonable size threshold before parsing
  • Run applications that process untrusted JSON data in sandboxed environments with restricted privileges
  • Use memory protection mechanisms (ASLR, DEP/NX) to make exploitation more difficult
  • Consider using alternative JSON parsing libraries for critical applications until patching is complete
bash
# Check installed json-c version on Debian/Ubuntu
dpkg -l | grep libjson-c

# Update json-c on Debian/Ubuntu
sudo apt-get update && sudo apt-get upgrade libjson-c3 libjson-c-dev

# Check installed json-c version on Fedora/RHEL
rpm -qa | grep json-c

# Update json-c on Fedora
sudo dnf update json-c

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechJson C

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.28%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-190

  • CWE-787
  • Technical References
  • Siemens Security Advisory SSA-637483

  • GitHub Issue for libfastjson

  • Debian LTS Announcement May 2020-1

  • Debian LTS Announcement May 2020-2

  • Debian LTS Announcement July 2020

  • Debian LTS Announcement June 2023

  • Fedora Package Announcement June 2020-1

  • Fedora Package Announcement June 2020-2

  • Fedora Package Announcement June 2020-3

  • Gentoo GLSA 2020-06-13

  • NetApp Security Advisory ntap-20210521-0001

  • Ubuntu Security Notice 4360-1

  • Ubuntu Security Notice 4360-4

  • Debian Security Advisory DSA-4741

  • Debian LTS Announcement July 2025
  • Vendor Resources
  • GitHub Pull Request for JSON-C
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English