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

CVE-2021-23758: Ajaxpro.2 RCE Vulnerability

CVE-2021-23758 is a deserialization of untrusted data vulnerability in Ajaxpro.2 that enables remote code execution. Attackers can exploit this flaw to execute arbitrary code. This article covers technical details.

Published: February 25, 2026

CVE-2021-23758 Overview

CVE-2021-23758 is a critical insecure deserialization vulnerability affecting all versions of the AjaxPro.2 package for .NET. The vulnerability allows remote attackers to execute arbitrary code on affected systems by exploiting the deserialization of untrusted data. AjaxPro.2 fails to properly validate or restrict the types of .NET classes that can be deserialized, enabling attackers to craft malicious serialized objects that execute code upon deserialization.

Critical Impact

Remote attackers can achieve full system compromise through arbitrary code execution by sending specially crafted serialized .NET objects to vulnerable AjaxPro.2 endpoints, requiring no authentication or user interaction.

Affected Products

  • AjaxPro.2 (all versions) for .NET framework
  • Applications utilizing the ajaxpro.2_project:ajaxpro.2 NuGet package
  • Web applications with exposed AjaxPro.2 AJAX endpoints

Discovery Timeline

  • 2021-12-03 - CVE-2021-23758 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-23758

Vulnerability Analysis

This vulnerability stems from insecure deserialization practices within the AjaxPro.2 library. AjaxPro.2 is a .NET library that enables AJAX functionality in ASP.NET applications by serializing and deserializing .NET objects for client-server communication. The library's deserialization mechanism accepts arbitrary .NET class types without implementing a type allowlist or blocklist, creating a dangerous attack surface.

When a .NET application deserializes data, it can instantiate objects and execute code defined in the object's constructor or through other automatically invoked methods. An attacker can exploit this behavior by crafting serialized payloads containing gadget chains—sequences of existing .NET classes that, when deserialized together, result in arbitrary code execution. Common gadget chains used in .NET deserialization attacks leverage classes from System.Windows.Data.ObjectDataProvider, System.Web.UI.LosFormatter, or the TypeConfuseDelegate pattern.

Root Cause

The root cause is the lack of type restrictions during the deserialization process. AjaxPro.2 does not implement a secure type binder or allowlist that would restrict which .NET types can be instantiated during deserialization. This allows attackers to specify malicious types in the serialized payload that will be instantiated and potentially execute code when deserialized by the server.

Attack Vector

The vulnerability is exploitable over the network without requiring authentication or user interaction. An attacker can send a specially crafted HTTP request containing a malicious serialized .NET object to any exposed AjaxPro.2 endpoint. The attack flow typically involves:

  1. Identifying an AjaxPro.2 endpoint in the target application
  2. Crafting a serialized payload containing a known .NET gadget chain
  3. Sending the payload via HTTP POST request to the vulnerable endpoint
  4. The server deserializes the payload, triggering code execution

The security patch addressed this by implementing type restrictions:

text
     </ApplicationIcon>
     <AssemblyKeyContainerName>
     </AssemblyKeyContainerName>
-    <AssemblyName>AjaxPro</AssemblyName>
+    <AssemblyName>AjaxPro.2</AssemblyName>
     <AssemblyOriginatorKeyFile>
     </AssemblyOriginatorKeyFile>
     <DefaultClientScript>JScript</DefaultClientScript>

Source: GitHub Commit

Detection Methods for CVE-2021-23758

Indicators of Compromise

  • Unusual HTTP POST requests to AjaxPro endpoints containing serialized .NET objects with suspicious type names
  • Presence of known .NET deserialization gadget class names in request bodies (e.g., ObjectDataProvider, TypeConfuseDelegate, ProcessStartInfo)
  • Unexpected child process spawning from IIS worker processes (w3wp.exe)
  • Web application logs showing deserialization exceptions or type resolution errors

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block known .NET deserialization gadget patterns in HTTP request bodies
  • Monitor IIS and application logs for AjaxPro-related requests with unusual payload sizes or content patterns
  • Deploy runtime application self-protection (RASP) solutions capable of detecting deserialization attacks
  • Use SentinelOne Singularity to detect post-exploitation behaviors such as abnormal process creation from web server processes

Monitoring Recommendations

  • Enable verbose logging on AjaxPro endpoints and monitor for deserialization-related exceptions
  • Implement network traffic analysis to identify serialized .NET object patterns in incoming requests
  • Monitor for unusual outbound connections from web servers that could indicate successful exploitation
  • Track process genealogy from web server worker processes to detect command execution

How to Mitigate CVE-2021-23758

Immediate Actions Required

  • Identify all applications using AjaxPro.2 by scanning for the NuGet package dependency or DLL references
  • Apply the security patch from the GitHub commit that implements type restrictions
  • Consider migrating to alternative, actively maintained AJAX libraries if the application architecture permits
  • Implement input validation and type allowlisting at the application level as defense-in-depth

Patch Information

The vendor has released a security fix via the Ajax.NET Professional GitHub repository. The patch implements allowed customized types to prevent arbitrary class deserialization. Organizations should review the commit and apply the updated library to all affected applications. Additional technical details are available in the Snyk Vulnerability Report.

Workarounds

  • Implement a custom type binder that restricts deserialization to known, safe types only
  • Deploy a Web Application Firewall (WAF) with rules to detect and block .NET deserialization payloads
  • Restrict network access to AjaxPro endpoints using authentication and authorization controls
  • Consider disabling or removing AjaxPro functionality entirely if not critical to application operations
bash
# IIS URL Rewrite rule to block potential deserialization attacks
# Add to web.config in the <system.webServer> section
# This blocks requests containing common .NET gadget chain indicators
# <rule name="Block Deserialization Attacks" stopProcessing="true">
#   <match url=".*\.ashx" />
#   <conditions>
#     <add input="{REQUEST_METHOD}" pattern="POST" />
#     <add input="{HTTP_Content-Type}" pattern="application/json" />
#   </conditions>
#   <action type="CustomResponse" statusCode="403" statusReason="Forbidden" />
# </rule>

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAjaxpro.2

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability87.78%

  • 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
  • Packet Storm RCE Exploit

  • Snyk Vulnerability Report
  • Vendor Resources
  • GitHub Commit Update
  • Latest CVEs
  • CVE-2025-52479: HTTP.jl & URIs.jl CRLF Injection Flaw

  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer 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