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-2022-25845

CVE-2022-25845: Alibaba Fastjson RCE Vulnerability

CVE-2022-25845 is a deserialization RCE vulnerability in Alibaba Fastjson that allows attackers to bypass autoType restrictions and execute remote code. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-25845 Overview

CVE-2022-25845 is an Insecure Deserialization vulnerability affecting Alibaba's Fastjson Java library versions before 1.2.83. The vulnerability allows attackers to bypass the default autoType shutdown restrictions under certain conditions, enabling the deserialization of untrusted data. This flaw can be exploited to execute arbitrary code on remote servers, making it particularly dangerous for applications that process JSON data from untrusted sources.

Fastjson is a widely-used high-performance JSON parser and generator for Java, commonly deployed in enterprise applications, microservices architectures, and cloud-native environments. The vulnerability stems from insufficient restrictions on the autoType feature, which allows automatic type resolution during JSON deserialization.

Critical Impact

Successful exploitation allows remote attackers to execute arbitrary code on vulnerable servers by sending specially crafted JSON payloads, potentially leading to complete system compromise.

Affected Products

  • Alibaba Fastjson versions prior to 1.2.83
  • Oracle Communications Cloud Native Core Unified Data Repository version 22.2.0

Discovery Timeline

  • June 10, 2022 - CVE-2022-25845 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2022-25845

Vulnerability Analysis

The vulnerability resides in Fastjson's autoType functionality, which was designed to automatically deserialize JSON strings into their corresponding Java objects based on type information embedded in the JSON payload. While Alibaba implemented default autoType shutdown restrictions to prevent deserialization attacks, security researchers discovered bypass techniques that allow attackers to circumvent these protections under specific conditions.

When autoType is enabled or when the restrictions can be bypassed, an attacker can craft malicious JSON payloads containing references to dangerous Java classes. During deserialization, Fastjson instantiates these classes and invokes their methods, potentially leading to remote code execution. This attack pattern is similar to other well-known Java deserialization vulnerabilities but specifically exploits Fastjson's type handling mechanisms.

The vulnerability is classified under CWE-502 (Deserialization of Untrusted Data), which represents a significant security risk in applications that process external input through deserialization routines.

Root Cause

The root cause of CVE-2022-25845 lies in incomplete input validation within Fastjson's autoType feature. Despite implementing a blocklist-based approach to prevent deserialization of known dangerous classes, the library failed to account for all possible bypass techniques. Attackers discovered methods to reference gadget classes that were not included in the blocklist or to use class loading techniques that circumvented the restrictions entirely.

The fundamental design flaw is the reliance on blocklisting rather than a more secure allowlist approach, combined with insufficient sanitization of type information in JSON payloads before object instantiation occurs.

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability by sending a malicious JSON payload to any application endpoint that uses a vulnerable version of Fastjson for JSON parsing. The attack is particularly effective against:

  • REST API endpoints accepting JSON input
  • Microservices communicating via JSON messages
  • Web applications processing user-supplied JSON data
  • Message queue consumers parsing JSON payloads

The exploitation mechanism involves crafting JSON with embedded @type fields that reference Java classes capable of executing arbitrary commands when instantiated or when specific methods are called during the deserialization process.

Detailed technical information about exploitation techniques is available through the Snyk vulnerability database and the Alibaba security advisory.

Detection Methods for CVE-2022-25845

Indicators of Compromise

  • Unusual JSON payloads containing @type fields with references to uncommon Java classes
  • Incoming HTTP requests with JSON bodies containing serialized object references to classes like javax.naming.InitialContext, com.sun.rowset.JdbcRowSetImpl, or other known gadget classes
  • Unexpected outbound network connections from application servers following JSON processing
  • Anomalous Java process spawning or command execution on servers running Fastjson-dependent applications

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block JSON payloads containing suspicious @type patterns commonly used in deserialization attacks
  • Deploy application-level logging to capture and alert on deserialization attempts involving non-allowlisted classes
  • Utilize Software Composition Analysis (SCA) tools to identify applications using vulnerable Fastjson versions
  • Monitor application logs for com.alibaba.fastjson exceptions that may indicate exploitation attempts

Monitoring Recommendations

  • Enable verbose logging for Fastjson parsing operations in development and staging environments to understand normal patterns
  • Configure SIEM alerts for patterns matching known Fastjson exploitation payloads
  • Implement network traffic analysis to detect potential data exfiltration or command-and-control communications following exploitation
  • Regularly scan container images and application dependencies for vulnerable Fastjson versions

How to Mitigate CVE-2022-25845

Immediate Actions Required

  • Upgrade Alibaba Fastjson to version 1.2.83 or later immediately across all affected applications
  • If immediate upgrade is not possible, enable Fastjson's safeMode feature to completely disable autoType functionality
  • Conduct an inventory of all applications and services using Fastjson to ensure comprehensive remediation
  • Review application architecture to identify all entry points where JSON data is processed

Patch Information

Alibaba has released version 1.2.83 of Fastjson which addresses this vulnerability. The fix includes enhanced restrictions on the autoType feature and additional class validation during deserialization.

Security patches are available through the following resources:

  • Fastjson Release 1.2.83
  • GitHub Commit 35db4adad70c32089542f23c272def1ad920a60d
  • GitHub Commit 8f3410f81cbd437f7c459f8868445d50ad301f15

For Oracle products, refer to the Oracle Critical Patch Update Advisory - July 2022.

Workarounds

  • Enable safeMode by setting the system property fastjson.parser.safeMode=true to completely disable autoType
  • Implement strict input validation on all JSON endpoints to reject payloads containing @type fields
  • Consider migrating to alternative JSON libraries such as Jackson or Gson that have more secure default configurations
  • Deploy network-level controls to filter malicious JSON patterns before they reach vulnerable applications
bash
# Enable safeMode via JVM system property
java -Dfastjson.parser.safeMode=true -jar your-application.jar

# Alternatively, enable safeMode programmatically in your application
# ParserConfig.getGlobalInstance().setSafeMode(true);

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAlibaba Fastjson

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability88.37%

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

  • GitHub Security Update

  • Snyk Java Vulnerability

  • DDoSI Fastjson PoC
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • Oracle Security Alert July 2022
  • 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