A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-12138

CVE-2025-12138: WordPress URL Image Importer RCE Flaw

CVE-2025-12138 is a remote code execution vulnerability in the URL Image Importer plugin for WordPress, allowing authenticated attackers to upload malicious files. This article covers technical details, affected versions, and mitigation.

Published: June 2, 2026

CVE-2025-12138 Overview

CVE-2025-12138 is an arbitrary file upload vulnerability in the URL Image Importer plugin for WordPress, affecting all versions up to and including 1.0.6. The plugin's uimptr_import_image_from_url() function validates uploads using the user-controlled Content-Type HTTP header and writes the file to disk before performing proper validation. Authenticated attackers with Author-level access or above can upload arbitrary files, including PHP scripts, leading to remote code execution on the affected server. The flaw is categorized under CWE-434: Unrestricted Upload of File with Dangerous Type.

Critical Impact

Authenticated Author-level attackers can upload PHP files and achieve remote code execution on the WordPress server.

Affected Products

  • URL Image Importer plugin for WordPress, all versions through 1.0.6
  • WordPress sites granting Author-level or higher accounts to untrusted users
  • Web servers hosting vulnerable installations with PHP execution enabled in upload directories

Discovery Timeline

  • 2025-11-21 - CVE-2025-12138 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-12138

Vulnerability Analysis

The URL Image Importer plugin allows users to import remote images by supplying a URL. The plugin retrieves the remote resource and stores it in the WordPress uploads directory. The vulnerability stems from how the plugin determines whether the retrieved resource is a permitted image type.

Instead of inspecting the file contents or enforcing an allowlist of extensions, the plugin trusts the Content-Type header returned by the remote server. An attacker controls both the URL and the remote server, so they can return any Content-Type value such as image/png while serving arbitrary payload data. The plugin writes this payload to disk in the uploads directory before any validation occurs, leaving a malicious file persisted on the server even if a later check were to fail.

The attack requires authenticated access at Author level or above, which limits casual exploitation but is well within reach of compromised contributor accounts, multi-author sites, and membership communities. Successful exploitation typically results in remote code execution because PHP files written under the WordPress uploads path are executable in default configurations.

Root Cause

The root cause is reliance on a user-controlled HTTP header for security decisions, combined with write-before-validate logic in uimptr_import_image_from_url(). The plugin does not verify file magic bytes, does not restrict extensions, and does not enforce a server-side MIME allowlist tied to actual content inspection.

Attack Vector

An authenticated attacker hosts a PHP webshell on an attacker-controlled server configured to respond with an image Content-Type header. The attacker then uses the plugin's import functionality to supply the URL of that file. The plugin fetches the file, accepts the spoofed Content-Type, and writes the payload to the WordPress uploads directory with an attacker-influenced filename. The attacker then requests the stored file directly through the web server to trigger PHP execution.

For specific source lines, see the vulnerable code in url-image-importer.php at line 1319 and the Wordfence Vulnerability Analysis.

Detection Methods for CVE-2025-12138

Indicators of Compromise

  • Files with PHP extensions or double extensions such as .php, .phtml, or .jpg.php present under wp-content/uploads/
  • Outbound HTTP requests from the WordPress host to unfamiliar external URLs initiated by the plugin import workflow
  • WordPress activity logs showing image imports performed by Author-level accounts with non-image source URLs
  • Web server access logs showing direct GET or POST requests to files within wp-content/uploads/ returning HTTP 200 with dynamic responses

Detection Strategies

  • Scan the uploads directory for files whose contents do not match their declared extension using magic-byte inspection
  • Alert on creation of executable script files within wp-content/uploads/ and its subdirectories
  • Monitor WordPress usermeta and audit logs for unusual use of the URL Image Importer plugin by lower-privilege accounts
  • Correlate plugin import events with outbound network connections to non-CDN, non-allowlisted hosts

Monitoring Recommendations

  • Enable file integrity monitoring on the WordPress installation, focusing on wp-content/uploads/ and plugin directories
  • Forward web server access logs and PHP error logs to a central SIEM and alert on script execution from upload paths
  • Track plugin version inventory across WordPress estates to identify installations still running URL Image Importer 1.0.6 or earlier

How to Mitigate CVE-2025-12138

Immediate Actions Required

  • Disable or remove the URL Image Importer plugin until a patched release is installed and verified
  • Audit all Author-level and higher accounts, remove unused accounts, and rotate credentials for any account that may be compromised
  • Inspect wp-content/uploads/ for unexpected PHP files and remove any malicious artifacts found
  • Restrict outbound HTTP requests from the WordPress host to known-good destinations where feasible

Patch Information

Review the WordPress plugin changeset for the fix applied to uimptr_import_image_from_url(). Upgrade to a release published after changeset 3395852 and confirm the installed version is greater than 1.0.6 before re-enabling the plugin.

Workarounds

  • Block PHP execution within wp-content/uploads/ using a web server configuration directive that denies handler mapping for script extensions
  • Limit the Author role to trusted users only, or temporarily downgrade Author-level accounts to Contributor until the plugin is patched
  • Place the WordPress site behind a web application firewall with rules that inspect uploaded file content rather than declared MIME type
bash
# Apache example: disable PHP execution inside wp-content/uploads
# Place this in wp-content/uploads/.htaccess
<FilesMatch "\.(php|phtml|phar|php3|php4|php5|php7|phps)$">
    Require all denied
</FilesMatch>

# Nginx equivalent: add to the server block
location ~* /wp-content/uploads/.*\.(php|phtml|phar)$ {
    deny all;
    return 403;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWordpress

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.22%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-434
  • Technical References
  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Changeset

  • Wordfence Vulnerability Analysis
  • Related CVEs
  • CVE-2026-1829: Divi Builder Content Visibility RCE Flaw

  • CVE-2026-7465: Spectra Gutenberg Blocks RCE Vulnerability

  • CVE-2026-9227: GutenBee WordPress Plugin RCE Vulnerability

  • CVE-2026-9009: WordPress Crawlomatic Plugin RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English