CVE-2026-12242: CWE-94 Improper Control of Generation of Code ('Code Injection') in adegans AdRotate Banner Manager
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.
AI Analysis
Technical Summary
CVE-2026-12242 is a high-severity vulnerability (CVSS 8.8) in the AdRotate Banner Manager WordPress plugin caused by improper control of code generation (CWE-94). The vulnerability arises from inadequate sanitization of the 'banner' attribute in the adrotate shortcode, which is concatenated into PHP code wrapped in W3 Total Cache mfunc or Borlabs Cache fragment markers. This allows authenticated attackers with Contributor or higher privileges to execute arbitrary PHP code on the server, contingent on cache support being enabled in the plugin. No official patch or remediation guidance is currently available.
Potential Impact
Successful exploitation allows authenticated users with Contributor-level access or above to execute arbitrary PHP code on the web server hosting the WordPress site. This can lead to full compromise of the server, including data theft, site defacement, or further pivoting within the network. The vulnerability requires that W3 Total Cache or Borlabs Cache support is enabled in AdRotate settings, limiting the attack surface to sites using these caching features.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, administrators should consider disabling W3 Total Cache or Borlabs Cache support in AdRotate settings to mitigate the risk. Additionally, restrict Contributor-level access and above to trusted users only, as exploitation requires authenticated access with these privileges.
CVE-2026-12242: CWE-94 Improper Control of Generation of Code ('Code Injection') in adegans AdRotate Banner Manager
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.
CVSS v3.1
Score 8.8high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-12242 is a high-severity vulnerability (CVSS 8.8) in the AdRotate Banner Manager WordPress plugin caused by improper control of code generation (CWE-94). The vulnerability arises from inadequate sanitization of the 'banner' attribute in the adrotate shortcode, which is concatenated into PHP code wrapped in W3 Total Cache mfunc or Borlabs Cache fragment markers. This allows authenticated attackers with Contributor or higher privileges to execute arbitrary PHP code on the server, contingent on cache support being enabled in the plugin. No official patch or remediation guidance is currently available.
Potential Impact
Successful exploitation allows authenticated users with Contributor-level access or above to execute arbitrary PHP code on the web server hosting the WordPress site. This can lead to full compromise of the server, including data theft, site defacement, or further pivoting within the network. The vulnerability requires that W3 Total Cache or Borlabs Cache support is enabled in AdRotate settings, limiting the attack surface to sites using these caching features.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, administrators should consider disabling W3 Total Cache or Borlabs Cache support in AdRotate settings to mitigate the risk. Additionally, restrict Contributor-level access and above to trusted users only, as exploitation requires authenticated access with these privileges.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-06-15T06:21:42.514Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3bd381eed863c81ed8b46d
Added to database: 06/24/2026, 12:54:25 UTC
Last enriched: 06/24/2026, 13:09:08 UTC
Last updated: 06/24/2026, 14:17:08 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.