CVE-2024-5932·PHP vulnerability
The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.14.1 via deserialization of untrusted input from the 'give_title' parameter. This makes it possible for unauthenticated attackers to inject a PHP Object. The additional presence of a POP chain allows attackers to execute code remotely, and to delete arbitrary files.
- Severity
- critical
- Software
- PHP
- Fixed in
- 3.14.2
- Published
- 2024-08-20
Affected versions
Until: 3.14.2
Fixed in: 3.14.2
How to fix this CVE
WordPress sites running the GiveWP donation plugin must update to version 3.14.2 or later immediately to patch a critical PHP object injection vulnerability. The flaw allows unauthenticated attackers to execute arbitrary PHP code by manipulating the 'give_title' parameter. Verify the plugin version in your WordPress admin dashboard and apply the update without delay, as no public exploits are currently known but the attack surface is wide.
sudo dnf update php php-common php-cli php-fpm -yDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST requests to donation processing endpoints with malicious serialized PHP objects in the 'give_title' parameter; look for patterns like 'O:.*:.*:{.*}' or base64-encoded serialized data in request logs, often accompanied by unusual class instantiation attempts targeting tcpdf or ValidGenerator.WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement input validation rules to reject requests containing serialized PHP object syntax (patterns matching 'O:\d+:' or 'a:\d+:') in the 'give_title' GET/POST parameter; additionally, block requests with suspicious base64 payloads that decode to PHP serialization markers; ensure ModSecurity or equivalent WAF rules detect and log such attempts for investigation.How to check if you are affected
- Check GiveWP plugin version: Log into WordPress admin panel, navigate to Plugins, and locate GiveWP – Donation Plugin to verify the installed version number is below 3.14.2.
- Verify plugin file location: Run `find /var/www/html -type d -name 'give' 2>/dev/null` to locate the plugin directory and confirm its presence on the web server.
- Inspect PHP error logs: Execute `tail -50 /var/log/php-fpm/error.log` and `tail -50 /var/log/apache2/error.log` to check for unserialize() warnings or PHP object injection attempts.
- Confirm the patch: After updating, re-check the plugin version in the WordPress admin dashboard and verify it shows 3.14.2 or higher; alternatively, check the plugin's readme.txt file: `grep 'Stable tag:' /path/to/wp-content/plugins/give/readme.txt`.
FAQ
What is CVE-2024-5932?
CVE-2024-5932 is a critical PHP object injection vulnerability in the GiveWP WordPress donation plugin that allows unauthenticated attackers to deserialize malicious PHP objects through the 'give_title' parameter, potentially leading to remote code execution and arbitrary file deletion.
Is CVE-2024-5932 being actively exploited?
No, CVE-2024-5932 is not currently listed on the CISA Known Exploited Vulnerabilities catalog, and no public exploits have been released, though the critical CVSS 10.0 score and network-accessible nature make it a high priority for patching.
What versions of GiveWP are affected by CVE-2024-5932?
All versions of the GiveWP plugin up to and including 3.14.1 are vulnerable; version 3.14.2 and later contain the fix.
How do I check if my WordPress site is vulnerable to CVE-2024-5932?
Log into your WordPress admin dashboard, go to Plugins, find GiveWP – Donation Plugin, and check if the version number is 3.14.1 or earlier; if so, your site is vulnerable and requires immediate updating.
Does Defensia detect CVE-2024-5932?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If GiveWP is installed and active on a monitored WordPress site, CVE-2024-5932 will appear in your dashboard with remediation steps and update guidance.
Related PHP CVEs
References
- https://plugins.trac.wordpress.org/browser/give/tags/3.12.0/includes/login-register.php#L235
- https://plugins.trac.wordpress.org/browser/give/tags/3.12.0/includes/process-donation.php#L420
- https://plugins.trac.wordpress.org/browser/give/tags/3.12.0/src/DonorDashboards/Tabs/EditProfileTab/AvatarRoute.php#L51
- https://plugins.trac.wordpress.org/browser/give/tags/3.12.0/vendor/tecnickcom/tcpdf/tcpdf.php#L7861
- https://plugins.trac.wordpress.org/browser/give/tags/3.12.0/vendor/vendor-prefixed/fakerphp/faker/src/Faker/ValidGenerator.php#L80
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-5932. Free for 1 server.
Get started free