AdRotate Banner Manager <= 5.17.7 - Authenticated (Contributor+) PHP Code Injection via 'banner' Shortcode Attribute

8.8
Improper Control of Generation of Code ('Code Injection')
CVE CVE-2026-12242
CVSS 8.8 (High)
Publicly Published June 23, 2026
Last Updated June 24, 2026
Researcher Osvaldo Noe Gonzalez Del Rio (Os) - krei.dev | ogbuilders.io

Description

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.

References

Share

Vulnerability Details for AdRotate Banner Manager

Software Type Plugin
Software Slug adrotate (view on wordpress.org)
Patched? Yes
Remediation Update to version 5.17.8, or a newer patched version
Affected Version
  • <= 5.17.7
Patched Version
  • 5.17.8

Recent vulnerabilities in AdRotate Banner Manager

# Title CVE ID CVSS Researchers Date
1 AdRotate – Ad manager & AdSense Ads <= 5.13.2 - Authenticated (Admin+) Double Extension Arbitrary File Upload CVE-2022-1206 7.2 Jorgson August 19, 2024
2 AdRotate Banner Manager <= 5.9 - Cross-Site Request Forgery CVE-2022-26366 8.8 Muhammad Daffa November 11, 2022
3 AdRotate – Ad manager & AdSense Ads <= 5.8.22 - Authenticated Stored Cross-Site Scripting via Group Names CVE-2022-0649 5.5 Muhamad Hidayat April 11, 2022
4 AdRotate – Ad manager & AdSense Ads <= 5.8.22 - Authenticated Stored Cross-Site Scripting via Advert Names CVE-2022-0662 5.5 Muhamad Hidayat April 11, 2022
5 AdRotate – Ad manager & AdSense Ads <= 5.8.17 - Admin+ SQL Injection CVE-2022-0267 7.2 ZhongFu Su February 7, 2022
6 AdRotate < 5.8.4 - Authenticated SQL Injection CVE-2021-24138 7.2 Nguyen Anh Tien June 3, 2020
7 AdRotate – Ad manager & AdSense Ads <= 5.2 - Authenticated SQL Injection CVE-2019-13570 7.2 Tin Duong July 11, 2019
8 AdRotate – Ad manager & AdSense Ads 3.9 - 3.9.4 - SQL Injection CVE-2014-1854 9.8 February 22, 2014
9 AdRotate – Ad manager & AdSense Ads < 3.6.8 - SQL Injection CVE-2011-4671 9.8 Miroslav Stampar November 8, 2011

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation