A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2022-42004

CVE-2022-42004: Jackson-databind DoS Vulnerability

CVE-2022-42004 is a denial of service flaw in FasterXML Jackson-databind caused by resource exhaustion from deeply nested arrays. This article covers the technical details, affected versions, impact, and mitigation.

Updated: May 15, 2026

CVE-2022-42004 Overview

CVE-2022-42004 is a resource exhaustion vulnerability in FasterXML jackson-databind versions prior to 2.13.4. The flaw exists in BeanDeserializer._deserializeFromArray, which lacks a check preventing deserialization of deeply nested JSON arrays. Attackers can submit crafted input that triggers excessive recursion, exhausting stack or memory resources and causing a denial of service. The issue is classified under [CWE-502] Deserialization of Untrusted Data. Exploitation requires that the target application uses certain customized deserialization configurations. The vulnerability affects multiple downstream products including Quarkus, Debian Linux, and NetApp OnCommand Workflow Automation.

Critical Impact

Remote unauthenticated attackers can trigger denial of service on applications using vulnerable jackson-databind configurations by submitting deeply nested JSON arrays.

Affected Products

  • FasterXML jackson-databind before 2.13.4
  • Quarkus
  • Debian Linux 10 and 11
  • NetApp OnCommand Workflow Automation

Discovery Timeline

  • 2022-10-02 - CVE-2022-42004 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-42004

Vulnerability Analysis

The vulnerability resides in the BeanDeserializer._deserializeFromArray() method within jackson-databind. The method recursively processes nested JSON array structures during deserialization. Without a depth limit, the parser follows each level of nesting using stack frames, eventually consuming all available stack space or heap memory. Applications become vulnerable when deserialization features such as UNWRAP_SINGLE_VALUE_ARRAYS are enabled, which causes Jackson to unwrap arrays around scalar bean values. An attacker who can submit JSON input to such an endpoint can craft payloads with thousands of nested arrays. The result is a StackOverflowError or out-of-memory condition that terminates request processing and may crash the application thread.

Root Cause

The root cause is the absence of a recursion depth check in the array deserialization path. The fix introduced in version 2.13.4 adds an explicit guard in BeanDeserializer._deserializeFromArray() that rejects input exceeding the maximum nesting depth before stack exhaustion occurs.

Attack Vector

Exploitation requires network access to an HTTP or messaging endpoint that deserializes attacker-controlled JSON using jackson-databind with vulnerable deserialization features enabled. No authentication or user interaction is required. The attacker submits a JSON document with deeply nested array structures wrapping a value targeted for bean deserialization.

text
#3582: Add check in `BeanDeserializer._deserializeFromArray()` to prevent
+  use of deeply nested arrays

Source: GitHub Jackson Databind Commit 0631835 - This release note entry documents the addition of the nesting depth check that resolves the vulnerability.

java
     * values to the corresponding value type.  This is basically the opposite of the {@link #ACCEPT_SINGLE_VALUE_AS_ARRAY}
     * feature.  If more than one value is found in the array, a JsonMappingException is thrown.
     * <p>
+     * NOTE: only <b>single</b> wrapper Array is allowed: if multiple attempted, exception
+     * will be thrown.
     * 
-     * Feature is disabled by default
+     * Feature is disabled by default.
     * @since 2.4
     */
    UNWRAP_SINGLE_VALUE_ARRAYS(false),

Source: GitHub Jackson Databind Commit 0631835 - The patch clarifies that only a single wrapper array is permitted when UNWRAP_SINGLE_VALUE_ARRAYS is enabled, blocking the nested-array abuse pattern.

Detection Methods for CVE-2022-42004

Indicators of Compromise

  • Inbound HTTP requests containing JSON payloads with abnormally deep array nesting (hundreds or thousands of [ characters in sequence).
  • Application logs reporting java.lang.StackOverflowError originating from com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeFromArray.
  • Unexpected JVM OutOfMemoryError events correlated with request processing threads.
  • Crashes or restarts of services exposing JSON APIs backed by jackson-databind versions before 2.13.4.

Detection Strategies

  • Inventory application dependencies using Software Composition Analysis (SCA) tools to identify jackson-databind versions earlier than 2.13.4.
  • Inspect Jackson ObjectMapper configurations for enabled features such as UNWRAP_SINGLE_VALUE_ARRAYS that expose the vulnerable code path.
  • Monitor application stack traces for repeated recursive frames in BeanDeserializer during JSON parsing.

Monitoring Recommendations

  • Configure Web Application Firewall (WAF) rules to flag JSON payloads exceeding a reasonable nesting depth threshold.
  • Forward JVM error logs to a centralized logging platform and alert on stack overflow exceptions in deserialization paths.
  • Track CPU and memory spikes on services that accept untrusted JSON to identify resource exhaustion attempts.

How to Mitigate CVE-2022-42004

Immediate Actions Required

  • Upgrade jackson-databind to version 2.13.4 or later across all applications and transitive dependencies.
  • Apply vendor patches for downstream products: Debian DSA-5283, Gentoo GLSA 202210-21, and NetApp advisory NTAP-20221118-0008.
  • Audit ObjectMapper configurations and disable deserialization features that are not required, particularly UNWRAP_SINGLE_VALUE_ARRAYS.

Patch Information

The fix is committed in GitHub Jackson Databind Commit 0631835 and shipped in jackson-databind 2.13.4. Distribution-specific updates are available via the Debian DSA-5283 Security Announcement, Debian LTS Security Announcement, Gentoo GLSA 202210-21, and NetApp Security Advisory NTAP-20221118-0008. Technical context is documented in GitHub Jackson Databind Issue #3582.

Workarounds

  • Place a reverse proxy or API gateway in front of vulnerable services to reject JSON payloads exceeding a defined size or nesting depth.
  • Disable UNWRAP_SINGLE_VALUE_ARRAYS and similar customized deserialization features when not strictly required.
  • Apply request body size limits at the application server level to constrain attacker payload size.
bash
# Maven dependency upgrade example
mvn versions:use-dep-version \
  -Dincludes=com.fasterxml.jackson.core:jackson-databind \
  -DdepVersion=2.13.4 \
  -DforceVersion=true

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechJackson

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.23%

  • 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-502
  • Technical References
  • GitHub Jackson Databind Issue #3582

  • Debian LTS Security Announcement

  • Gentoo GLSA 202210-21

  • NetApp Security Advisory NTAP-20221118-0008

  • Debian DSA-5283 Security Announcement
  • Vendor Resources
  • Chromium OSS-Fuzz Issue #50490

  • GitHub Jackson Databind Commit
  • Related CVEs
  • CVE-2025-52999: Jackson Core DOS Vulnerability

  • CVE-2023-3894: Jackson-dataformats-text DOS Vulnerability

  • CVE-2025-49128: Jackson-core Information Disclosure Bug

  • CVE-2020-9548: Jackson-databind Deserialization Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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