CVE-2021-24217: Object Injection and RCE in Facebook for WordPress <3.0.0
- Vendor
- Meta Platforms
The Facebook for WordPress plugin before version 3.0.0 contains an object injection vulnerability in the run_action function, which unsafely deserializes user-supplied data. The presence of a usable magic method in the plugin allows attackers to leverage this flaw to achieve remote code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an unauthenticated attacker to execute arbitrary PHP code on the server, leading to full compromise of the affected WordPress instance.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, disable the plugin or restrict access to the vulnerable functionality. Employ web application firewalls to block suspicious serialized payloads targeting the run_action function.
Remediation
Patch, then assume compromise.
Upgrade the Facebook for WordPress plugin to version 3.0.0 or later, where the unsafe deserialization and exploitable magic method have been addressed.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-24217 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2021-24217?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2021-24217.
- Is there a patch for CVE-2021-24217?
- Upgrade the Facebook for WordPress plugin to version 3.0.0 or later, where the unsafe deserialization and exploitable magic method have been addressed.
- What products are affected by CVE-2021-24217?
- Meta Platforms Facebook.
- How severe is CVE-2021-24217?
- CVE-2021-24217 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 3.5% (90th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.