CVE-2025-0912·PHP vulnerability
The Donations Widget plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.19.4 via deserialization of untrusted input from the Donation Form through the 'card_address' parameter. This makes it possible for unauthenticated attackers to inject a PHP Object. The additional presence of a POP chain allows attackers to achieve remote code execution.
- Severity
- critical
- Software
- PHP
- Fixed in
- 3.20.0
- Published
- 2025-03-04
Affected versions
Until: 3.20.0
Fixed in: 3.20.0
How to fix this CVE
Update the Donations Widget plugin for WordPress (GiveWP) to version 3.20.0 or later to patch the PHP object injection vulnerability in the donation form processing. If you are running PHP with this plugin, immediately upgrade to the patched version to prevent unauthenticated attackers from executing arbitrary code through maliciously crafted donation requests. Review your site's access logs for suspicious donation form submissions during the window before patching.
sudo dnf check-update php && sudo dnf upgrade phpDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST requests to /wp-admin/admin-ajax.php or donation form endpoints containing serialized PHP objects in the 'card_address' parameter with patterns like 'O:[0-9]+:"' or 'a:[0-9]+:{' followed by object property declarationsWAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Block or sanitize POST requests to donation form handlers that contain PHP serialization markers (O:, C:, R:, a:, s:) in the card_address, billing_address, or similar form fields. Implement input validation to reject any data that resembles serialized PHP objects before it reaches the application.How to check if you are affected
- Step 1: Check installed WordPress plugin version with: grep -r "Version:" /var/www/html/wp-content/plugins/give/give.php | head -1
- Step 2: Verify GiveWP plugin is active by checking wp-cli: wp plugin list | grep give
- Step 3: Search web server logs for POST requests to donation forms with 'card_address' parameters: grep -i 'card_address' /var/log/apache2/access.log /var/log/nginx/access.log 2>/dev/null | head -20
- Step 4: After updating to version 3.20.0+, confirm the patch by checking plugin version again and reviewing the changelog at plugins.trac.wordpress.org
FAQ
What is CVE-2025-0912?
This vulnerability is a PHP object injection flaw in the GiveWP Donations Widget plugin that allows attackers to deserialize untrusted data from donation form submissions, potentially leading to remote code execution through PHP's magic methods and gadget chains.
Is CVE-2025-0912 being actively exploited?
No, this vulnerability is not currently listed on the CISA KEV catalog and no public exploits have been disclosed, but the critical CVSS score of 9.8 means patches should be applied immediately.
What versions of the Donations Widget plugin are affected by CVE-2025-0912?
All versions of GiveWP up to and including 3.19.4 are vulnerable. Version 3.20.0 and later contain the fix.
How do I check if my WordPress site is vulnerable to CVE-2025-0912?
Run: wp plugin list | grep -i give to identify the plugin, then check its version number against 3.19.4. If your version is 3.19.4 or earlier, you are vulnerable and must upgrade immediately.
Does Defensia detect CVE-2025-0912?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the GiveWP plugin or PHP is installed on a monitored WordPress server, CVE-2025-0912 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
- https://github.com/impress-org/givewp/pull/7679/files
- https://plugins.trac.wordpress.org/changeset/3234114/give/trunk/src/Donations/Properties/BillingAddress.php
- https://plugins.trac.wordpress.org/changeset/3234114/give/trunk/src/Donations/Repositories/DonationRepository.php
- https://plugins.trac.wordpress.org/changeset/3234114/give/trunk/src/Donors/Repositories/DonorRepository.php
- https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3234114%40give&new=3234114%40give&sfp_email=&sfph_mail=
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-0912. Free for 1 server.
Get started free