AdRotate Banner Manager <= 5.17.7 - Authenticated (Contributor+) PHP Code Injection via 'banner' Shortcode Attribute
Summary
| CVE | CVE-2026-12242 |
|---|---|
| State | PUBLISHED |
| Assigner | Wordfence |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-06-24 13:16:31 UTC |
| Updated | 2026-06-24 14:17:29 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 8.8 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-94 | CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Adegans | AdRotate Banner Manager | affected 5.17.7 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| plugins.trac.wordpress.org/browser/adrotate/trunk/adrotate-output.php | [email protected] | plugins.trac.wordpress.org | |
| www.wordfence.com/threat-intel/vulnerabilities/id/f29b905c-57cf-4fb8-b6af-eb0c3... | [email protected] | www.wordfence.com | |
| plugins.trac.wordpress.org/browser/adrotate/tags/5.17.4/adrotate-output.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/adrotate/tags/5.17.5/adrotate-output.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/adrotate/trunk/adrotate-output.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/adrotate/tags/5.17.5/adrotate-output.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/adrotate/tags/5.17.4/adrotate-output.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/adrotate/tags/5.17.5/adrotate-output.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/adrotate/tags/5.17.4/adrotate-output.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/changeset/3582562 | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/adrotate/trunk/adrotate-output.php | [email protected] | plugins.trac.wordpress.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Osvaldo Noe Gonzalez Del Rio (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-06-23T00:00:00.000Z | Disclosed |
There are currently no legacy QID mappings associated with this CVE.