Similar Posts <= 3.1.5 - Admin+ Arbitrary PHP Code Execution

Improper Control of Generation of Code ('Code Injection')
CVE CVE-2021-24537
CVSS High (7.2)
Publicly Published October 11, 2021
Last Updated January 22, 2024
Researcher bl4derunner
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.

References

1 affected software package

Software Type Plugin
Software Slug similar-posts (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 3.1.5
Patched Version
  • 3.1.6
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.