# CVE-2021-24537: Similar Posts <= 3.1.5 - Admin+ Arbitrary PHP Code Execution

- Severity: High 7.2 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:H/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): 1.56%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-08T17:34:43.000Z
- Modified: 2026-06-17T03:40:12.033Z
- Weaknesses: CWE-94
- Assigned by: WPScan

## Description

The Similar Posts WordPress plugin through 3.1.5 allow high privilege users to execute arbitrary PHP code in an hardened environment (ie with DISALLOW_FILE_EDIT, DISALLOW_FILE_MODS and DISALLOW_UNFILTERED_HTML set to true) via the 'widget_rrm_similar_posts_condition' widget setting of the plugin.

(As written by CVE List.)

## Affected

- Unknown Similar Posts – Best Related Posts Plugin for WordPress: from 3.1.5 up to 3.1.5
- shareaholic similar_posts: up to 3.1.5

## Every score

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

## References

- <https://wpscan.com/vulnerability/0d6b46cb-5244-486f-ad70-4023907ac9eb> (exploit, third-party-advisory)

## Sources

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

---

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