Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI 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-10663

CVE-2020-10663: Ruby JSON Gem Object Creation Vulnerability

CVE-2020-10663 is an unsafe object creation vulnerability in the JSON gem for Ruby that enables attackers to create malicious objects during parsing. This article covers the technical details, affected versions, and mitigation.

Published: March 11, 2026

CVE-2020-10663 Overview

CVE-2020-10663 is an Unsafe Object Creation Vulnerability affecting the JSON gem through version 2.2.0 for Ruby, as well as Ruby versions 2.4 through 2.4.9, 2.5 through 2.5.7, and 2.6 through 2.6.5. This vulnerability allows attackers to create malicious objects within the Ruby interpreter through crafted JSON parsing operations, with application-dependent adverse effects. The vulnerability is similar to the earlier CVE-2013-0269, but does not rely on poor garbage-collection behavior within Ruby.

Critical Impact

Exploitation enables attackers to create arbitrary objects within the Ruby interpreter during JSON parsing, potentially leading to unauthorized data manipulation or application compromise depending on the target application's implementation.

Affected Products

  • JSON gem through 2.2.0 for Ruby
  • Ruby 2.4 through 2.4.9, 2.5 through 2.5.7, and 2.6 through 2.6.5
  • Fedora 30 and 31
  • openSUSE Leap 15.1
  • Debian Linux 8.0 and 10.0
  • Apple macOS 11.0.1

Discovery Timeline

  • April 28, 2020 - CVE-2020-10663 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2020-10663

Vulnerability Analysis

This vulnerability exists in the JSON parsing functionality of the Ruby JSON gem. When processing specially crafted JSON input, the parser can be manipulated to instantiate arbitrary Ruby objects within the interpreter context. This unsafe object creation bypasses normal object instantiation controls and can lead to security compromises depending on how the application processes the resulting objects.

Unlike its predecessor CVE-2013-0269, this vulnerability does not depend on garbage collection timing or behavior. Instead, it exploits fundamental aspects of how the JSON gem handles type information during deserialization. The impact is highly dependent on the application context—in some applications, this could lead to information disclosure, data corruption, or denial of service.

The vulnerability is classified under CWE-20 (Improper Input Validation), reflecting the core issue of insufficient validation during the JSON parsing process.

Root Cause

The root cause lies in how the JSON gem processes JSON data containing type information. The gem's parsing methods fail to properly validate and restrict object creation, allowing attackers to specify arbitrary class types that will be instantiated during parsing. This improper input validation enables the creation of objects that the application developer did not intend to be created through JSON deserialization.

Attack Vector

The attack is conducted over the network by sending maliciously crafted JSON payloads to Ruby applications that parse user-controlled JSON data. An attacker can construct JSON documents that, when parsed using vulnerable versions of the JSON gem, cause the Ruby interpreter to create arbitrary objects.

The exploitation mechanism involves embedding type specifiers within JSON data that the parser interprets as instructions to create specific Ruby objects. The attack requires no authentication and has low complexity, as it only necessitates the ability to send crafted JSON to a vulnerable parsing endpoint. The specific impact depends on what objects are created and how the application handles them.

Detection Methods for CVE-2020-10663

Indicators of Compromise

  • Unexpected Ruby object instantiation in application logs during JSON parsing operations
  • Anomalous JSON payloads containing unusual type specifiers or class references
  • Application errors or exceptions related to unexpected object types after JSON processing
  • Unusual memory consumption patterns during JSON parsing operations

Detection Strategies

  • Monitor JSON parsing operations for payloads containing json_class or similar type specification keys that could trigger object creation
  • Implement application-level logging to track all objects instantiated during JSON deserialization
  • Deploy runtime application self-protection (RASP) solutions capable of detecting unsafe deserialization patterns
  • Use SentinelOne Singularity to monitor for suspicious Ruby process behavior and unexpected object instantiation

Monitoring Recommendations

  • Audit all Ruby applications for use of vulnerable JSON gem versions (2.2.0 and earlier)
  • Implement centralized logging for JSON parsing activities across Ruby-based services
  • Set up alerts for failed JSON parsing attempts that may indicate exploitation probing
  • Monitor for unusual process spawning or file system access following JSON processing

How to Mitigate CVE-2020-10663

Immediate Actions Required

  • Update the JSON gem to version 2.3.0 or later, which includes the security fix
  • Upgrade Ruby to patched versions: 2.4.10, 2.5.8, 2.6.6, or 2.7.1 and later
  • Audit applications to identify all instances of JSON parsing with user-controlled input
  • Review the Ruby CVE-2020-10663 Advisory for official guidance

Patch Information

The vulnerability has been addressed by the Ruby development team in updated versions of both the JSON gem and Ruby itself. Organizations running affected versions should update to the following:

  • JSON gem: Update to version 2.3.0 or later
  • Ruby 2.4.x: Update to 2.4.10 or later
  • Ruby 2.5.x: Update to 2.5.8 or later
  • Ruby 2.6.x: Update to 2.6.6 or later
  • Ruby 2.7.x: Update to 2.7.1 or later

Distribution-specific patches are available through Debian Security Advisory DSA-4721, Fedora Package Announcements, and openSUSE Security Announcements. Apple has addressed this in macOS updates as documented in their support article HT211931.

Workarounds

  • Restrict JSON parsing to use the JSON.parse method with the create_additions: false option to disable object creation during parsing
  • Implement input validation to sanitize JSON data before parsing, removing potentially dangerous type specifiers
  • Use JSON schema validation to ensure incoming JSON conforms to expected structures
  • Consider using alternative JSON parsing libraries that do not support automatic object instantiation
bash
# Example: Safe JSON parsing in Ruby with create_additions disabled
# Add this to your Ruby application code where JSON is parsed

# Gemfile update
gem 'json', '>= 2.3.0'

# Safe parsing configuration
# Use JSON.parse with create_additions: false
# JSON.parse(user_input, create_additions: false)

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechRuby

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability7.53%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-20
  • Technical References
  • openSUSE Security Announcement

  • Full Disclosure Mailing List

  • Apache Zookeeper Thread Discussion

  • Apache Zookeeper Thread Discussion

  • Apache Zookeeper Thread Discussion

  • Apache Zookeeper Thread Discussion

  • Apache Zookeeper Thread Discussion

  • Apache Zookeeper Thread Discussion

  • Apache Zookeeper Thread Discussion

  • Apache Zookeeper Thread Discussion

  • Apache Zookeeper Thread Discussion

  • Debian LTS Security Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory

  • Apple Support Article

  • Debian Security Advisory DSA-4721
  • Vendor Resources
  • Ruby CVE 2020-10663 Advisory
  • Related CVEs
  • CVE-2020-25613: Ruby WEBrick HTTP Request Smuggling Flaw

  • CVE-2025-61594: Ruby-lang Uri Information Disclosure Bug

  • CVE-2024-27282: Ruby Regex Information Disclosure Flaw

  • CVE-2024-27280: Ruby StringIO Buffer Overflow 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