CVE-2026-12242
The AdRotate Banner Manager plugin for WordPress is vulnerable to …
The AdRotate Banner Manager plugin for WordPress is vulnerable to PHP Code Injection in all versions up to, and including, 5.17.7 via the 'banner' attribute of the adrotate shortcode. This is due to insufficient input validation and sanitization of the banner shortcode attribute before concatenation into a PHP code string wrapped in W3 Total Cache mfunc or Borlabs Cache fragment markers. This makes it possible for authenticated attackers, with Contributor-level access and above, to execute arbitrary PHP code on the server. This vulnerability requires W3 Total Cache or Borlabs Cache support to be enabled in AdRotate settings.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- plugins.trac.wordpress.org/browser/adrotate/tags/5.17.4/adrotate-output.php#L265
- plugins.trac.wordpress.org/browser/adrotate/tags/5.17.4/adrotate-output.php#L276
- plugins.trac.wordpress.org/browser/adrotate/tags/5.17.4/adrotate-output.php#L288
- plugins.trac.wordpress.org/browser/adrotate/tags/5.17.5/adrotate-output.php#L265
- plugins.trac.wordpress.org/browser/adrotate/tags/5.17.5/adrotate-output.php#L276
- plugins.trac.wordpress.org/browser/adrotate/tags/5.17.5/adrotate-output.php#L288
- plugins.trac.wordpress.org/browser/adrotate/trunk/adrotate-output.php#L265
- plugins.trac.wordpress.org/browser/adrotate/trunk/adrotate-output.php#L276
- nvd.nist.gov/vuln/detail/CVE-2026-12242
- cve.org/CVERecord?id=CVE-2026-12242
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.