A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2024-12877

CVE-2024-12877: GiveWP WordPress Plugin RCE Vulnerability

CVE-2024-12877 is a remote code execution flaw in GiveWP WordPress plugin that allows unauthenticated attackers to inject PHP objects and delete files. This post explains its impact, affected versions, and mitigation steps.

Updated: May 15, 2026

CVE-2024-12877 Overview

CVE-2024-12877 is a PHP Object Injection vulnerability in the GiveWP – Donation Plugin and Fundraising Platform for WordPress. The flaw affects all versions up to and including 3.19.2. The plugin deserializes untrusted input submitted through donation form fields such as firstName, enabling unauthenticated attackers to inject arbitrary PHP objects. A property-oriented programming (POP) chain available in the codebase allows attackers to delete arbitrary files on the server, which can lead to remote code execution. The issue maps to [CWE-502] Deserialization of Untrusted Data.

Critical Impact

Unauthenticated remote attackers can trigger arbitrary file deletion and achieve remote code execution on WordPress sites running vulnerable GiveWP installations.

Affected Products

  • GiveWP – Donation Plugin and Fundraising Platform for WordPress, all versions through 3.19.2
  • GiveWP version 3.19.3 (partial patch only; tracked under a separate CVE)
  • Any WordPress site processing donation submissions through the vulnerable plugin

Discovery Timeline

  • 2025-01-11 - CVE-2024-12877 published to NVD
  • 2025-02-25 - Last updated in NVD database

Technical Details for CVE-2024-12877

Vulnerability Analysis

The vulnerability stems from unsafe use of PHP's unserialize() function on attacker-controlled donation form input. When a user submits a donation, fields such as firstName are passed through deserialization routines in the plugin's Utils.php helper. Attackers can supply a crafted serialized PHP object string in place of expected text input.

PHP Object Injection becomes exploitable when the application contains classes with magic methods such as __destruct, __wakeup, or __toString that perform sensitive operations. GiveWP ships with a usable POP chain that ends in arbitrary file deletion. Deleting key files such as wp-config.php forces WordPress into setup mode, allowing the attacker to reconfigure the database connection and ultimately execute PHP code on the host.

No authentication is required because donation forms are public by design. The attack requires only the ability to submit a donation request to a vulnerable site.

Root Cause

The root cause is direct deserialization of untrusted HTTP POST data without prior validation. The plugin treats donation form fields as trusted serialized payloads rather than literal strings. Vendor remediation in 3.19.3 was incomplete, and a fully sufficient fix was only released in 3.19.4. The recommended long-term mitigation is to migrate from PHP serialization to JSON encoding.

Attack Vector

An unauthenticated attacker submits an HTTP POST request to a GiveWP donation endpoint. The attacker replaces a normal field value, such as firstName, with a serialized PHP object payload. When the plugin processes the submission, unserialize() instantiates the attacker-controlled object graph and triggers the POP chain during execution or object destruction. The chain reaches a file deletion sink, removing files chosen by the attacker and enabling follow-on remote code execution.

No verified public exploit code is available at this time. The EPSS percentile indicates a meaningful likelihood of exploitation activity relative to other published CVEs.

Detection Methods for CVE-2024-12877

Indicators of Compromise

  • POST requests to GiveWP donation endpoints containing serialized PHP markers such as O:, a:, or s: inside fields like firstName, lastName, or email.
  • Unexpected deletion or truncation of wp-config.php, plugin files, or .htaccess on the WordPress host.
  • New or modified PHP files in wp-content/uploads/ or the plugin directory following donation traffic.
  • WordPress entering setup or installation mode without administrator action.

Detection Strategies

  • Inspect web server access logs for donation POST requests containing serialized object signatures in form fields that should hold plain text.
  • Monitor file integrity on WordPress core files, wp-config.php, and the give plugin directory for unauthorized deletions.
  • Alert on PHP error log entries referencing unserialize(), class instantiation failures, or __destruct calls inside GiveWP helper files.
  • Correlate donation form submissions with subsequent process spawns from the PHP-FPM or web server user.

Monitoring Recommendations

  • Enable web application firewall rules that block serialized PHP payloads in donation parameters.
  • Forward WordPress, PHP, and web server logs to a centralized analytics platform for query and correlation.
  • Track outbound connections initiated by the web server process immediately after donation traffic.

How to Mitigate CVE-2024-12877

Immediate Actions Required

  • Update GiveWP to version 3.19.4 or later on every WordPress instance running the plugin.
  • Audit wp-config.php, plugin files, and uploads directories for unauthorized modifications or deletions.
  • Rotate WordPress administrator credentials, database passwords, and any API keys stored in wp-config.php if compromise is suspected.
  • Review donation transaction logs for anomalous submissions originating from a single IP or containing malformed input.

Patch Information

GiveWP released a partial fix in version 3.19.3 and a complete fix in version 3.19.4. The vendor changeset is available in the WordPress Plugin Repository changeset. Additional technical detail is provided in the Wordfence Vulnerability Report. The vendor has been advised to replace PHP serialization with JSON encoding to prevent recurrence.

Workarounds

  • Disable the GiveWP plugin until version 3.19.4 or later can be deployed.
  • Deploy WAF rules that reject donation form parameters containing serialized PHP patterns such as O:[0-9]+: or a:[0-9]+:{.
  • Restrict access to donation endpoints by IP allow-list while remediation is pending.
  • Apply filesystem permissions that prevent the web server user from deleting wp-config.php and other critical files.
bash
# Example WAF rule pattern to block serialized PHP objects in GiveWP form fields
SecRule ARGS_NAMES "@rx ^(firstName|lastName|email|company)$" \
  "chain,deny,status:403,id:1009001,msg:'GiveWP PHP Object Injection attempt'"
  SecRule ARGS "@rx (^|;)(O|a|s):[0-9]+:" "t:none"

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGivewp

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability27.51%

  • 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
  • Wordfence Vulnerability Report
  • Vendor Resources
  • WordPress Changeset Update
  • Related CVEs
  • CVE-2025-0912: GiveWP Donations Widget RCE Vulnerability

  • CVE-2024-9634: GiveWP WordPress Plugin RCE Vulnerability

  • CVE-2024-8353: GiveWP Plugin RCE Vulnerability

  • CVE-2024-5932: GiveWP Donation Plugin RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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