CVE-2025-12138
Description
The URL Image Importer plugin for WordPress is vulnerable to arbitrary file uploads due to insufficient file type validation in all versions up to, and including, 1.0.6. This is due to the plugin relying on a user-controlled Content-Type HTTP header to validate file uploads in the 'uimptr_import_image_from_url()' function which writes the file to the server before performing proper validation. This makes it possible for authenticated attackers, with Author-level access and above, to upload arbitrary files on the affected site's server which may make remote code execution possible via the uploaded PHP file.
Affected WordPress components
-
URL Image Importer – Import External Images to the Media Library from URL, CSV & XML Plugin · url-image-importerFrom 1.0 (including) to 1.0.6 (including)View on WordPress.org
A confirmed match is backed by the plugin or theme slug. A possible match is based on the product name only and should be verified.
Affected products and versions
- bww URL Image Importer — From 1.0 (including) to 1.0.6 (including)
References
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/url-image-importer/trunk/url-image-importer.php#L1319
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/url-image-importer/trunk/url-image-importer.php#L1353
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/url-image-importer/trunk/url-image-importer.php#L1358
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/url-image-importer/trunk/url-image-importer.php#L198
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3395852%40url-image-importer&new=3395852%40url-image-importer&sfp_email=&sfph_mail=#file9
- www.wordfence.com https://www.wordfence.com/threat-intel/vulnerabilities/id/1da18430-1bd0-4f63-9e22-5d26de2be410?source=cve
- nvd.nist.gov Official NVD record