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

CVE-2020-29312: Zend Framework RCE Vulnerability

CVE-2020-29312 is a remote code execution vulnerability in Zend Framework v.3.1.3 and earlier via unserialize function. This article covers the technical details, affected versions, security impact, and mitigation.

Published: March 4, 2026

CVE-2020-29312 Overview

CVE-2020-29312 is an insecure deserialization vulnerability reported in Zend Framework that could allow a remote attacker to execute arbitrary code via the unserialize function. The vulnerability affects applications using Zend Framework that pass untrusted data to PHP's native unserialize() function without proper validation.

Important Note: This CVE has been disputed by third parties as incomplete and incorrect. The Zend Framework does not have a version that surpasses 2.x.x and was deprecated in early 2020. The reported version (v.3.1.3) does not align with the actual framework versioning scheme.

Critical Impact

If exploited in vulnerable configurations, this insecure deserialization vulnerability could allow remote attackers to achieve arbitrary code execution on affected systems, potentially leading to complete system compromise.

Affected Products

  • Zend Framework (all versions through deprecation)
  • Applications using Zend Framework with unsafe deserialization practices
  • Legacy PHP applications built on Zend Framework components

Discovery Timeline

  • 2023-04-04 - CVE-2020-29312 published to NVD
  • 2025-02-18 - Last updated in NVD database (dispute notation added)

Technical Details for CVE-2020-29312

Vulnerability Analysis

This vulnerability falls under CWE-502 (Deserialization of Untrusted Data). Insecure deserialization occurs when an application deserializes data from untrusted sources without adequate validation, allowing attackers to manipulate serialized objects to achieve malicious outcomes.

In PHP applications using Zend Framework, the unserialize() function can instantiate objects and invoke magic methods such as __wakeup(), __destruct(), or __toString(). When combined with existing classes in the application (known as "gadget chains"), an attacker can chain method calls to achieve arbitrary code execution.

The network-based attack vector means exploitation requires no authentication or user interaction, making it particularly dangerous for internet-facing applications. However, successful exploitation depends on specific application conditions including the presence of exploitable gadget chains and the application passing attacker-controlled data to the unserialize() function.

Root Cause

The root cause is the use of PHP's native unserialize() function on untrusted user input. When serialized data from an external source is deserialized, PHP automatically instantiates the specified objects and executes their magic methods. If the application codebase contains classes with dangerous method implementations (gadgets), an attacker can craft malicious serialized payloads that chain these methods together to execute arbitrary code.

Zend Framework, like many PHP frameworks, contains numerous classes that could potentially be used as gadgets in deserialization attacks. The vulnerability exists when application developers fail to properly validate or sanitize data before passing it to unserialize().

Attack Vector

The attack is network-based, requiring no privileges or user interaction. An attacker can exploit this vulnerability by:

  1. Identifying an entry point where user-controlled data is passed to unserialize()
  2. Analyzing the application and framework classes to identify usable gadget chains
  3. Crafting a malicious serialized PHP object payload that exploits these gadget chains
  4. Sending the payload to the vulnerable endpoint
  5. Upon deserialization, the malicious object triggers code execution through the gadget chain

The exploitation mechanism leverages PHP Object Injection (POI) techniques commonly seen in PHP deserialization attacks. Attackers typically target HTTP parameters, cookies, session data, or any input vector that eventually reaches the unserialize() function.

Detection Methods for CVE-2020-29312

Indicators of Compromise

  • Unusual serialized PHP object patterns in HTTP request parameters, headers, or cookies (strings starting with O:, a:, or s:)
  • Unexpected process execution or file system modifications originating from web server processes
  • Web application logs showing malformed or suspicious serialized data inputs
  • Network traffic containing base64-encoded or URL-encoded serialized PHP objects

Detection Strategies

  • Deploy Web Application Firewalls (WAF) with rules to detect serialized PHP object patterns in incoming requests
  • Implement application-level logging to capture and alert on unserialize() function calls with external data
  • Use static application security testing (SAST) tools to identify code paths where untrusted data reaches unserialize()
  • Monitor for runtime anomalies such as unexpected child processes spawned by web server workers

Monitoring Recommendations

  • Enable comprehensive logging for all web application inputs and deserialization operations
  • Configure intrusion detection systems to alert on PHP serialization patterns in network traffic
  • Implement file integrity monitoring on web server directories to detect unauthorized modifications
  • Set up process monitoring to detect unusual command execution by PHP or web server processes

How to Mitigate CVE-2020-29312

Immediate Actions Required

  • Audit all application code for uses of unserialize() with user-controllable input
  • Replace unserialize() with safer alternatives such as json_decode() for data interchange
  • If deserialization is required, use PHP 7.0+ allowed_classes option to restrict which classes can be instantiated
  • Migrate away from Zend Framework to actively maintained alternatives such as Laminas (the official Zend Framework successor)

Patch Information

Zend Framework was deprecated in early 2020 and is no longer receiving security updates. The framework has been succeeded by the Laminas Project, which is the official continuation of Zend Framework under the Linux Foundation.

Organizations still using Zend Framework should prioritize migration to Laminas or another actively maintained framework. For applications that cannot be immediately migrated, implementing defensive coding practices around deserialization is essential.

Additional information can be found at the Zend Official Website and the GitHub Zend Framework Repository.

Workarounds

  • Use json_encode() and json_decode() instead of PHP serialization for data interchange
  • When unserialize() cannot be avoided, use the second parameter to restrict allowed classes: unserialize($data, ['allowed_classes' => false])
  • Implement input validation to reject data containing PHP serialization patterns before it reaches application logic
  • Deploy a Web Application Firewall with rules to block requests containing serialized PHP objects
bash
# PHP configuration to help mitigate deserialization risks
# Add to php.ini or .htaccess

# Disable dangerous functions that could be used in gadget chains
disable_functions = exec,passthru,shell_exec,system,proc_open,popen

# Enable error logging but hide errors from users
display_errors = Off
log_errors = On
error_log = /var/log/php/error.log

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechZend Framework

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability2.50%

  • 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
  • Zend Official Website

  • Cowtransfer Temporary File Link

  • GitHub Zend Framework Repository
  • Latest CVEs
  • CVE-2026-43328: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-43329: Linux Kernel Netfilter DoS Vulnerability

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

  • CVE-2026-43331: Linux Kernel DOS 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