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-2025-49386

CVE-2025-49386: Preserve Code Formatting Plugin Vulnerability

CVE-2025-49386 is a deserialization of untrusted data flaw in the Preserve Code Formatting WordPress plugin that enables object injection attacks. This article covers technical details, affected versions, and mitigation.

Published: March 11, 2026

CVE-2025-49386 Overview

CVE-2025-49386 is a critical deserialization of untrusted data vulnerability affecting the Preserve Code Formatting WordPress plugin developed by Scott Reilly. This insecure deserialization flaw allows attackers to perform PHP Object Injection attacks, potentially leading to remote code execution, data manipulation, or complete site compromise. The vulnerability affects all versions of the plugin from the initial release through version 4.0.1.

Critical Impact

This PHP Object Injection vulnerability enables unauthenticated attackers to inject malicious serialized objects via the network, potentially achieving remote code execution or complete WordPress site takeover.

Affected Products

  • Preserve Code Formatting WordPress Plugin versions up to and including 4.0.1
  • WordPress installations using the vulnerable plugin versions
  • All web servers hosting affected WordPress deployments

Discovery Timeline

  • 2025-11-06 - CVE CVE-2025-49386 published to NVD
  • 2026-01-20 - Last updated in NVD database

Technical Details for CVE-2025-49386

Vulnerability Analysis

This vulnerability is classified under CWE-502 (Deserialization of Untrusted Data), which occurs when an application deserializes data from untrusted sources without proper validation. In the context of PHP applications like WordPress plugins, this typically manifests when user-controlled input is passed directly to PHP's unserialize() function.

The Preserve Code Formatting plugin processes serialized data that can be manipulated by attackers. When the application deserializes this malicious input, it instantiates arbitrary PHP objects with attacker-controlled properties. If the WordPress installation or any installed plugins contain classes with dangerous "magic methods" (such as __wakeup(), __destruct(), or __toString()), these methods execute automatically during deserialization, enabling attackers to achieve code execution.

Root Cause

The root cause of CVE-2025-49386 lies in the plugin's failure to validate or sanitize serialized data before processing. The plugin accepts untrusted serialized input and passes it directly to PHP's native deserialization functions without implementing proper security controls. This design flaw violates the principle of never deserializing data from untrusted sources, as serialized PHP objects can contain executable code through magic method chains known as "POP gadgets" (Property-Oriented Programming).

Attack Vector

The attack vector for this vulnerability is network-based, requiring no authentication or user interaction. An attacker can craft a malicious serialized PHP object payload and submit it to the vulnerable plugin endpoint. The exploitation process involves:

  1. Identifying available PHP classes within the WordPress ecosystem that contain exploitable magic methods
  2. Constructing a serialized object chain (POP chain) that triggers dangerous operations when deserialized
  3. Submitting the malicious payload to the vulnerable plugin endpoint
  4. The plugin deserializes the payload, instantiating the attacker's objects and triggering the exploit chain

Successful exploitation can result in arbitrary file operations, SQL injection, remote code execution, or complete server compromise depending on the available gadget chains in the target environment.

Detection Methods for CVE-2025-49386

Indicators of Compromise

  • Unusual PHP serialized data patterns in web server access logs containing suspicious class names
  • Unexpected file modifications or new files appearing in WordPress directories
  • Anomalous outbound network connections from the web server
  • Web application firewall logs showing blocked serialized object injection attempts
  • Unexpected WordPress administrator accounts or privilege escalations

Detection Strategies

  • Deploy web application firewall rules to detect and block PHP serialized object patterns in HTTP requests
  • Implement file integrity monitoring on WordPress core files and plugin directories
  • Enable verbose logging for the Preserve Code Formatting plugin and monitor for deserialization errors
  • Scan web server logs for requests containing serialized PHP object signatures (O:, a:, s: patterns)

Monitoring Recommendations

  • Configure SIEM alerting for PHP object injection attack signatures targeting WordPress installations
  • Monitor for process spawning from web server processes that may indicate successful code execution
  • Implement network traffic analysis to detect command and control communications from compromised servers
  • Regularly audit WordPress user accounts and permissions for unauthorized changes

How to Mitigate CVE-2025-49386

Immediate Actions Required

  • Immediately disable or remove the Preserve Code Formatting plugin from all WordPress installations
  • Audit WordPress sites for signs of compromise including unexpected files, users, or modifications
  • Review web server logs for evidence of exploitation attempts against the vulnerable plugin
  • Implement web application firewall rules to block serialized PHP object injection payloads

Patch Information

As of the last NVD update, users should monitor the Patchstack Vulnerability Advisory for patch availability and updated version information. Until a patched version is released, the plugin should be deactivated and removed from production WordPress installations.

Workarounds

  • Deactivate and delete the Preserve Code Formatting plugin until a security patch is available
  • Implement strict web application firewall rules to block requests containing PHP serialized object patterns
  • Use WordPress security plugins that provide virtual patching capabilities for known vulnerabilities
  • Restrict access to the WordPress admin panel and plugin interfaces to trusted IP addresses only

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechPreserve Code Formatting

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.10%

  • 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
  • Patchstack Vulnerability Advisory
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS 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