CVE-2026-12242 AdRotate Banner Manager <= 5.17.7 - Authenticated (Contributor+) PHP Code Injection via 'banner' Shortcode Attribute
Authenticated contributors can execute arbitrary PHP code via the banner shortcode attribute if specific caching plugins are enabled.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-12242?
CVE-2026-12242 is a high-severity code injection vulnerability in adegans AdRotate Banner Manager, published on 24 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2026-12242?
How do I fix CVE-2026-12242?
No fix has been published for CVE-2026-12242 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-12242 being exploited?
There is no known exploitation of CVE-2026-12242 in the wild and no public exploit code.
Sources
Also known as GHSA-5gg9-wwjm-frfp.