Description
The WP Import – Ultimate CSV XML Importer for WordPress plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 7.28. This is due to the write_to_customfile() function writing unfiltered PHP code to a file. This makes it possible for authenticated attackers, with Subscriber-level access and above, to inject the customFunction.php file with PHP code that can be accessed to trigger remote code execution.
Problem types
CWE-94 Improper Control of Generation of Code ('Code Injection')
Product status
7.20 (semver)
Timeline
| 2025-09-05: | Vendor Notified |
| 2025-09-16: | Disclosed |
Credits
Arkadiusz Hydzik
References
www.wordfence.com/...-a728-496e-a63a-5966347ebe6c?source=cve
plugins.trac.wordpress.org/...rtExtensions/ImportHelpers.php
plugins.trac.wordpress.org/...ploadModules/DesktopUpload.php
plugins.trac.wordpress.org/...rtExtensions/ImportHelpers.php