The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2020-13671

CVE-2020-13671: Drupal Core RCE Vulnerability

CVE-2020-13671 is a remote code execution vulnerability in Drupal Core caused by improper filename sanitization that allows PHP execution. This article covers technical details, affected versions, impact, and mitigation.

Updated: May 16, 2026

CVE-2020-13671 Overview

CVE-2020-13671 is an unrestricted file upload vulnerability in Drupal core. The flaw stems from improper sanitization of filenames on uploaded files. Attackers can craft filenames that bypass extension filtering, causing files to be served with the wrong MIME type or executed as PHP under certain hosting configurations. The vulnerability affects Drupal Core 9.0 versions prior to 9.0.8, 8.9 versions prior to 8.9.9, 8.8 versions prior to 8.8.11, and 7 versions prior to 7.74. CISA added this issue to its Known Exploited Vulnerabilities (KEV) catalog, confirming active exploitation in the wild. The weakness is classified under [CWE-434] Unrestricted Upload of File with Dangerous Type.

Critical Impact

Authenticated attackers with file upload privileges can achieve remote code execution on Drupal sites, leading to full site compromise.

Affected Products

  • Drupal Core 7.x prior to 7.74
  • Drupal Core 8.8.x prior to 8.8.11, 8.9.x prior to 8.9.9
  • Drupal Core 9.0.x prior to 9.0.8 (also affecting Fedora 32 and 33 packages)

Discovery Timeline

  • 2020-11-20 - CVE-2020-13671 published to NVD alongside the Drupal Security Advisory SA-CORE-2020-012
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2020-13671

Vulnerability Analysis

The vulnerability resides in Drupal core's file upload handling logic. Drupal failed to strip or sanitize certain dangerous filename patterns before storing uploaded files. Attackers can submit files with double extensions or trailing characters such as malicious.php.txt or shell.phar.jpg. Web servers configured to interpret the leftmost recognized extension can execute these files as PHP. Successful exploitation grants the attacker code execution in the context of the web server process.

The attack requires network access and low-privileged authentication, with no user interaction. Because Drupal supports numerous upload entry points — including user avatars, media library uploads, and custom forms — the attack surface is broad. Sites running Apache with mod_php or misconfigured handler directives are most exposed.

Root Cause

The root cause is incomplete filename sanitization in Drupal's file_munge_filename() and related upload validation routines. The sanitization logic did not consistently rewrite or reject filenames containing intermediate dangerous extensions. As a result, files passed validation while retaining executable extension components that Apache or other web servers would honor at request time.

Attack Vector

An authenticated attacker locates any form or endpoint that accepts file uploads. The attacker crafts a payload file whose name contains a PHP-related extension followed by an allowed extension, such as payload.php.gif. After upload, the attacker requests the file URL directly. On vulnerable hosting configurations, the server interprets the PHP component and executes embedded code, returning shell output or pivoting to deeper system access. See the Drupal Security Advisory SA-CORE-2020-012 for the canonical technical write-up.

Detection Methods for CVE-2020-13671

Indicators of Compromise

  • Files in Drupal's public files directory with double extensions such as .php.jpg, .phar.txt, or .phtml.png
  • Unexpected PHP processes spawned by the web server user following file upload events
  • Outbound network connections from the web server to attacker-controlled infrastructure shortly after upload activity
  • Modified or newly created .htaccess files inside sites/default/files/

Detection Strategies

  • Audit Drupal upload logs and the file_managed database table for filenames containing multiple extension segments
  • Inspect web server access logs for direct GET or POST requests to files inside /sites/default/files/ with executable extensions in the path
  • Run filesystem integrity checks against the Drupal webroot to identify unauthorized PHP files

Monitoring Recommendations

  • Enable verbose logging on file upload modules and forward events to a centralized SIEM
  • Alert on process creation where the web server user spawns shells (sh, bash, python) as a child of php-fpm or httpd
  • Monitor for new file writes to upload directories where filenames contain .php, .phar, .phtml, or .pht substrings

How to Mitigate CVE-2020-13671

Immediate Actions Required

  • Upgrade Drupal core immediately to 7.74, 8.8.11, 8.9.9, or 9.0.8 depending on your branch
  • Audit the sites/default/files/ directory for any files with suspicious double extensions and quarantine them
  • Review user accounts with upload privileges and rotate credentials for any account showing anomalous activity
  • Apply Fedora package updates referenced in the Fedora Package Announcement

Patch Information

The Drupal Security Team released fixes in Drupal 7.74, 8.8.11, 8.9.9, and 9.0.8. The patch rewrites filename sanitization to insert an underscore before dangerous intermediate extensions, ensuring web servers cannot interpret them as executable. Refer to the Drupal Security Advisory SA-CORE-2020-012 for upgrade instructions and the CISA Known Exploited Vulnerabilities Catalog for federal remediation deadlines.

Workarounds

  • Configure the web server to refuse execution of PHP files within upload directories using directives such as php_flag engine off or location-based handler removal
  • Restrict file upload permissions to trusted roles only until patches are deployed
  • Deploy a web application firewall rule that blocks requests to upload paths containing multiple extension segments
bash
# Apache configuration to disable PHP execution in Drupal upload directories
<Directory "/var/www/drupal/sites/default/files">
    php_flag engine off
    <FilesMatch "\.(php|phar|phtml|pht)\.">
        Require all denied
    </FilesMatch>
</Directory>

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDrupal

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability4.50%

  • 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
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-434
  • Technical References
  • Fedora Package Announcement

  • Fedora Package Announcement

  • CISA Known Exploited Vulnerability
  • Vendor Resources
  • Drupal Security Advisory
  • Related CVEs
  • CVE-2024-55638: Drupal Core RCE Vulnerability

  • CVE-2024-55637: Drupal Core RCE Vulnerability

  • CVE-2024-55636: Drupal Core RCE Vulnerability

  • CVE-2022-25277: Drupal Core RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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