Description
The AMP for WP – Accelerated Mobile Pages plugin for WordPress is vulnerable to Arbitrary File Write in versions up to and including 1.1.12. This is due to unsafe ZIP file extraction in the ampforwp_save_local_font() function combined with inadequate cleanup that fails to remove nested directories and files. This makes it possible for authenticated attackers, with Author-level access and above, and permissions granted by an Administrator, to write arbitrary files to the server in a web-accessible location, potentially leading to remote code execution on hosts that execute PHP files in the uploads directory.
Problem types
CWE-73 External Control of File Name or Path
Product status
Any version
Timeline
| 2026-07-06: | Disclosed |
Credits
Leonid Semenenko (lsemenenko)
References
www.wordfence.com/...-d805-48b9-bfd4-4cc77dd3a70e?source=cve
plugins.trac.wordpress.org/...k/accelerated-moblie-pages.php
plugins.trac.wordpress.org/...2/accelerated-moblie-pages.php
plugins.trac.wordpress.org/...tions/redux-core/framework.php
plugins.trac.wordpress.org/...tions/redux-core/framework.php
plugins.trac.wordpress.org/...ludes/options/admin-config.php
plugins.trac.wordpress.org/...ludes/options/admin-config.php
plugins.trac.wordpress.org/...ions/redux-core/core/panel.php
plugins.trac.wordpress.org/...ions/redux-core/core/panel.php
plugins.trac.wordpress.org/changeset/3512870/