CVE-2025–22777: GiveWP (CVSS 9.8)
The GiveWP plugin's serialized-data check could be bypassed by adding random text, allowing unauthenticated PHP object injection. An attacker could use a POP chain to delete wp-config.php and potentially achieve remote code execution.
medium.com
Published on medium.com
WordPress tabanlı web sitelerinde çevrimiçi bağış ve bağış toplama işlemlerini kolaylaştıran en popüler eklentilerden biri olan GiveWP’de kritik bir güvenlik açığı keşfedildi. CVE-2025–22777 olarak kaydedilen bu açık, son derece tehlikeli kabul edilerek CVSS (Common Vulnerability Scoring System) değerlendirmesinde 9.8…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the regex used in containsSerializedDataRegex() was too permissive and could be bypassed by inserting extra characters into serialized data.
Impact
An attacker could delete wp-config.php and potentially achieve remote code execution, leading to full site compromise.
What the attacker needed
GiveWP plugin version before 3.19.4; Donation form with a company field; No authentication required
The fix
The fix added a recursiveUrlDecode() function to containsSerializedDataRegex() to strip extra characters before checking for serialized data.
How it was found
- Submit a donation form that includes a company field.
- Insert a specially crafted character sequence into the serialized data to bypass the regex check.
- The malicious serialized data is stored in the database under the company parameter.
- When the data is later deserialized, a POP chain can delete wp-config.php and lead to remote code execution.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The plugin tried to spot dangerous serialized data with a pattern match, but the pattern was too loose. By adding junk text, an attacker could sneak malicious serialized data past the check. When the site later unpacked that data, it could run harmful code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.