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-2020-26945

CVE-2020-26945: MyBatis Deserialization Vulnerability

CVE-2020-26945 is a deserialization vulnerability in MyBatis that mishandles object streams, potentially allowing attackers to execute malicious code. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-26945 Overview

CVE-2020-26945 is an insecure deserialization vulnerability affecting MyBatis, a popular Java persistence framework. The vulnerability exists in versions prior to 3.5.6, where the framework mishandles deserialization of object streams. This flaw could allow attackers to execute arbitrary code by supplying maliciously crafted serialized objects to applications using vulnerable MyBatis versions.

Critical Impact

Successful exploitation of this insecure deserialization vulnerability could lead to remote code execution, data theft, or complete system compromise in applications using affected MyBatis versions.

Affected Products

  • MyBatis versions prior to 3.5.6
  • Applications and frameworks that depend on vulnerable MyBatis versions
  • Java applications using MyBatis for database persistence operations

Discovery Timeline

  • 2020-10-10 - CVE-2020-26945 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-26945

Vulnerability Analysis

This vulnerability falls into the insecure deserialization category (CWE-502), which represents a critical class of security flaws in Java applications. The vulnerability arises from MyBatis improperly handling the deserialization of object streams without adequate validation or filtering of the incoming data.

Java deserialization vulnerabilities are particularly dangerous because the deserialization process can trigger the execution of arbitrary code embedded within malicious serialized objects. When an application deserializes untrusted data without proper safeguards, attackers can craft gadget chains that execute during the deserialization process, potentially leading to remote code execution.

The network-based attack vector requires high complexity to exploit, as it typically necessitates the attacker having access to endpoints that process serialized data and knowledge of available gadget chains within the application's classpath.

Root Cause

The root cause of CVE-2020-26945 is the improper handling of deserialization operations in MyBatis prior to version 3.5.6. The framework did not implement sufficient validation or filtering mechanisms when processing serialized object streams. This oversight allowed potentially malicious serialized objects to be processed without adequate security checks, enabling attackers to inject harmful payloads that execute during deserialization.

Attack Vector

The attack vector is network-based, requiring an attacker to send crafted serialized data to an application using a vulnerable MyBatis version. The exploitation scenario typically involves:

  1. Identifying an application endpoint that processes serialized Java objects
  2. Determining available gadget chains in the application's classpath
  3. Crafting a malicious serialized payload containing the gadget chain
  4. Sending the payload to the vulnerable endpoint
  5. The payload executes during deserialization, achieving code execution

For detailed technical information about the vulnerability and the fix, see the GitHub Pull Request #2079 which addresses this issue. The changes between affected and patched versions can be reviewed in the version comparison between 3.5.5 and 3.5.6.

Detection Methods for CVE-2020-26945

Indicators of Compromise

  • Unusual serialized Java object payloads in network traffic targeting application endpoints
  • Unexpected process spawning or system commands executed by Java application processes
  • Anomalous network connections initiated from Java application servers
  • Java deserialization-related exceptions in application logs followed by suspicious behavior

Detection Strategies

  • Monitor for known Java deserialization attack patterns in network traffic using IDS/IPS signatures
  • Implement application-level logging to track deserialization operations and flag suspicious objects
  • Use Runtime Application Self-Protection (RASP) solutions to detect exploitation attempts
  • Deploy SentinelOne agents to detect and block malicious post-exploitation behavior

Monitoring Recommendations

  • Enable verbose logging for MyBatis operations and review logs for deserialization anomalies
  • Monitor Java application processes for unexpected child process creation or network activity
  • Implement alerting for attempts to deserialize objects from untrusted sources
  • Use software composition analysis tools to inventory MyBatis versions across your environment

How to Mitigate CVE-2020-26945

Immediate Actions Required

  • Upgrade MyBatis to version 3.5.6 or later immediately
  • Conduct an inventory of all applications using MyBatis and prioritize patching based on exposure
  • Implement network segmentation to limit exposure of applications using vulnerable versions
  • Review application code for endpoints that accept serialized Java objects

Patch Information

The MyBatis development team addressed this vulnerability in version 3.5.6. Organizations should upgrade to this version or later to remediate the vulnerability. The fix can be reviewed in GitHub Pull Request #2079.

To upgrade MyBatis in Maven-based projects, update the dependency version in your pom.xml. For Gradle projects, update the dependency in your build.gradle file. After updating, thoroughly test application functionality to ensure compatibility.

Workarounds

  • If immediate patching is not possible, implement deserialization filtering using Java's ObjectInputFilter mechanism
  • Restrict network access to applications using vulnerable MyBatis versions to trusted sources only
  • Implement Web Application Firewall rules to block known deserialization attack payloads
  • Consider implementing a serialization allowlist to restrict which classes can be deserialized
bash
# Configuration example
# Verify MyBatis version in Maven projects
mvn dependency:tree | grep mybatis

# Update pom.xml to use patched version
# <dependency>
#     <groupId>org.mybatis</groupId>
#     <artifactId>mybatis</artifactId>
#     <version>3.5.6</version>
# </dependency>

# For Gradle projects, update build.gradle:
# implementation 'org.mybatis:mybatis:3.5.6'

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechMybatis

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.60%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • GitHub Version Comparison
  • Vendor Resources
  • GitHub Pull Request #2079
  • Related CVEs
  • CVE-2023-25330: Mybatis Plus SQL Injection Vulnerability
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