# CVE-2021-24217: Facebook for WordPress < 3.0.0 - PHP Object Injection with POP Chain

- Severity: High 8.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.52%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-04-12T14:01:19.000Z
- Modified: 2026-06-17T03:39:37.117Z
- Weaknesses: CWE-502
- Assigned by: WPScan

## Description

The run_action function of the Facebook for WordPress plugin before 3.0.0 deserializes user supplied data making it possible for PHP objects to be supplied creating an Object Injection vulnerability. There was also a useable magic method in the plugin that could be used to achieve remote code execution.

(As written by CVE List.)

## Affected

- Unknown Facebook for WordPress: from 3.0.0 before 3.0.0
- facebook facebook: before 3.0.0

## Every score

- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://wpscan.com/vulnerability/509f2754-a1a1-4142-9126-ae023a88533a> (exploit, third-party-advisory)
- <https://www.wordfence.com/blog/2021/03/two-vulnerabilities-patched-in-facebook-for-wordpress-plugin/> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24217](https://www.cve.org/CVERecord?id=CVE-2021-24217), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24217](https://nvd.nist.gov/vuln/detail/CVE-2021-24217), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24217 · Whole record: https://cve.day/CVE-2021-24217.json · Rebuilt by cve.day 2026-11-25T22:58:00.709Z
