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
    • 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-2021-31684

CVE-2021-31684: Json-smart DOS Vulnerability

CVE-2021-31684 is a denial of service flaw in Json-smart's indexOf function that allows attackers to crash applications via crafted requests. This article covers the technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2021-31684 Overview

A vulnerability was discovered in the indexOf function of JSONParserByteArray in JSON Smart versions 1.3 and 2.4 which causes a denial of service (DOS) via a crafted web request. This out-of-bounds write vulnerability (CWE-787) allows remote attackers to crash applications that rely on the JSON Smart library for JSON parsing operations.

Critical Impact

Applications using vulnerable JSON Smart library versions can be rendered unavailable through specially crafted malicious JSON input, potentially affecting business continuity and service availability.

Affected Products

  • JSON Smart v1 (version 1.3 and earlier)
  • JSON Smart v2 (version 2.4 and earlier)
  • Oracle Utilities Framework (versions 4.4.0.0.0, 4.4.0.2.0, 4.4.0.3.0)

Discovery Timeline

  • 2021-06-01 - CVE-2021-31684 published to NVD
  • 2022-01 - Oracle releases security patch in CPU January 2022
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-31684

Vulnerability Analysis

The vulnerability resides in the indexOf function within the JSONParserByteArray class of the JSON Smart library. This is classified as an out-of-bounds write vulnerability (CWE-787), which occurs when the software writes data past the end, or before the beginning, of the intended buffer. In this case, the improper boundary handling in the parsing function allows attackers to trigger memory corruption that leads to application crashes.

The vulnerability is exploitable over the network without requiring authentication or user interaction, making it particularly dangerous for web applications and APIs that process untrusted JSON input. The impact is limited to availability (denial of service) with no direct impact on confidentiality or integrity of the affected system.

Root Cause

The root cause lies in improper bounds checking within the indexOf function of JSONParserByteArray. When processing specially crafted JSON input, the function fails to properly validate array boundaries, resulting in an out-of-bounds write operation. This memory safety issue causes the application to crash when it attempts to write data beyond the allocated buffer space.

Attack Vector

The attack vector is network-based, requiring an attacker to send a maliciously crafted web request containing specially formatted JSON data to an application using the vulnerable JSON Smart library. The attack has low complexity, requires no privileges, and needs no user interaction.

An attacker can exploit this vulnerability by:

  1. Identifying a target application that uses JSON Smart versions 1.3 or 2.4 for JSON parsing
  2. Crafting a malicious JSON payload designed to trigger the out-of-bounds write in the indexOf function
  3. Sending the payload via HTTP request to the vulnerable application endpoint
  4. The malformed input causes the parser to crash, resulting in denial of service

For technical details about the vulnerability, see the JSON Smart v1 Issue Report and JSON Smart v2 Issue Report.

Detection Methods for CVE-2021-31684

Indicators of Compromise

  • Unexpected application crashes or restarts in services using JSON Smart library
  • Abnormal JSON parsing errors in application logs
  • Increased rate of malformed JSON requests to application endpoints
  • Memory-related exceptions or stack traces referencing JSONParserByteArray.indexOf

Detection Strategies

  • Implement application performance monitoring to detect service crashes and restarts
  • Monitor application logs for parsing exceptions related to JSON Smart components
  • Use web application firewalls (WAF) to detect and block malformed JSON payloads
  • Employ dependency scanning tools to identify vulnerable JSON Smart library versions in your software inventory

Monitoring Recommendations

  • Set up alerts for unusual patterns of HTTP 500 errors on JSON-processing endpoints
  • Monitor memory usage anomalies that may indicate exploitation attempts
  • Track application uptime metrics and investigate unexpected service interruptions
  • Review network traffic for unusually large or malformed JSON payloads

How to Mitigate CVE-2021-31684

Immediate Actions Required

  • Identify all applications using JSON Smart library versions 1.3 or 2.4
  • Upgrade JSON Smart v1 to a patched version as per the GitHub Pull Request
  • Upgrade JSON Smart v2 to a patched version as per the GitHub Pull Request
  • Apply Oracle Utilities Framework patches if using affected versions (refer to Oracle CPU January 2022)

Patch Information

Security patches are available through the official GitHub repositories:

  • JSON Smart v1: Apply the fix from the v1 Pull Request #11
  • JSON Smart v2: Apply the fix from the v2 Pull Request #68
  • Oracle Utilities Framework: Patches are available in the Oracle Critical Patch Update January 2022 and July 2022
  • Debian Users: Refer to the Debian LTS Announcement for package updates
  • NetApp Products: Consult the NetApp Security Advisory for affected products

Workarounds

  • Implement input validation to reject oversized or malformed JSON payloads before they reach the parser
  • Deploy rate limiting on endpoints that process JSON to reduce the impact of DoS attempts
  • Use a web application firewall to filter potentially malicious JSON requests
  • Consider using an alternative JSON parsing library until patches can be applied
bash
# Example Maven dependency update for JSON Smart v2
# Update pom.xml to use patched version
mvn versions:use-latest-releases -Dincludes=net.minidev:json-smart
mvn dependency:tree | grep json-smart

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechJson Smart

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Technical References
  • GitHub Issue Report

  • GitHub Issue Report

  • Debian LTS Announcement

  • NetApp Security Advisory

  • Oracle CPU July 2022
  • Vendor Resources
  • GitHub Pull Request

  • GitHub Pull Request

  • Oracle CPU January 2022
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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