Back to Intelligence

CVE-2026-115867: Critical Unauthenticated File Upload in WordPress 'Database for Contact Form 7, WPForms, Elementor Forms' Plugin — Detection and Remediation Guide

SA
Security Arsenal Team
November 28, 2026
11 min read

NVD has published CVE-2026-115867, a CVSS 9.8 (Critical), network-exploitable vulnerability in the Database for Contact Form 7, WPForms, Elementor Forms plugin for WordPress. Every version up to and including 1.5.5 is affected. The flaw allows a completely unauthenticated attacker to upload arbitrary files — including executable PHP — to a vulnerable WordPress site, which is functionally equivalent to handing over remote code execution on the underlying web server.

If you run WordPress with any form plugin stack (Contact Form 7, WPForms, or Elementor), there is a reasonable chance this database-logging companion plugin is installed alongside them — it exists specifically to persist form submissions from those three popular form builders. Treat this as an emergency patch cycle: unauthenticated file upload to RCE is the exact vulnerability class that gets mass-scanned and weaponized within days of disclosure, and WordPress plugin flaws in this category are historically among the fastest to be folded into automated exploitation botnets.

Technical Analysis

Affected Products and Versions

AttributeDetail
CVECVE-2026-115867
CVSS v3.x9.8 (Critical) — network vector, no authentication required
Affected softwareDatabase for Contact Form 7, WPForms, Elementor Forms (WordPress plugin)
Affected versionsAll versions up to and including 1.5.5
Vulnerable functioncopy_files
Weakness classCWE-434 — Unrestricted Upload of File with Dangerous Type
PlatformWordPress (commonly on Apache/mod_php or PHP-FPM stacks)

How the Vulnerability Works

From a defender's perspective, the attack chain is straightforward and entirely pre-authentication:

  1. Attacker-controlled source URI. The plugin's copy_files function accepts a file source parameter without validating the URI scheme. Because PHP stream wrappers are accepted, an attacker can supply wrappers such as php://, data://, or a remote http(s):// URI as the "file" to copy — meaning the payload content is fully attacker-controlled and never has to pass through any legitimate upload form.
  2. No extension validation on the destination. copy_files derives the destination filename from attacker-influenced input without restricting executable extensions. The attacker names the output file shell.php (or a double extension like shell.php.jpg depending on server configuration) and the plugin dutifully writes it.
  3. Direct execution via the web server. The written file lands in a web-accessible directory. The attacker then issues a simple HTTP GET/POST to the uploaded PHP file, and the web server executes it with the privileges of the PHP worker — typically the www-data or apache user. From there: webshell, credential harvesting from wp-config.php, lateral movement, or full site takeover.

The .htaccess Mitigation Gap — Why You Cannot Rely on It

The plugin attempts to mitigate exactly this scenario by placing an .htaccess file in its upload directory to block script execution. In my IR experience, this class of mitigation fails in production far more often than it works:

  • Nginx ignores .htaccess entirely. Any WordPress site fronted by Nginx (a large share of modern hosting, including most managed WordPress platforms) receives zero protection from it.
  • Apache with AllowOverride None — a common hardening baseline per CIS — disables .htaccess processing, silently nullifying the mitigation.
  • Misconfigured or stripped overrides on shared hosting frequently break .htaccess-based controls without anyone noticing.

Assume the .htaccess provides no protection and that the vulnerability is directly exploitable to code execution on your stack until you have verified otherwise.

Exploitation Status

At the time of writing, the vulnerability has been published by NVD with a CVSS 9.8 rating. Because exploitation requires no authentication, no user interaction, and only basic HTTP requests, defenders should operate under the assumption that scanning and opportunistic exploitation will begin immediately if it has not already. Check CISA's Known Exploited Vulnerabilities (KEV) catalog daily — WordPress plugin RCEs of this severity are frequently added once mass exploitation is confirmed.

Detection & Response

The highest-fidelity detections for this vulnerability cluster around three behaviors: (1) the web server/PHP process spawning a shell or writing executable files, (2) PHP files appearing in upload directories where they should never exist, and (3) HTTP requests containing PHP stream wrapper schemes or requests to newly uploaded .php files.

Sigma Rules

YAML
---
title: PHP or Web Server Process Spawning Shell (Possible WordPress Webshell)
id: 1f7c2a91-3b84-4e56-9d21-8a4f6c0b2e77
status: experimental
description: Detects common web server or PHP worker processes spawning command shells, a strong indicator of webshell execution following arbitrary file upload such as CVE-2026-115867.
references:
  - https://nvd.nist.gov/vuln/detail/CVE-2026-115867
  - https://attack.mitre.org/techniques/T1505/003/
author: Security Arsenal
date: 2026/01/15
tags:
  - attack.persistence
  - attack.t1505.003
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentImage|endswith:
      - '/php-fpm'
      - '/php8.1-fpm'
      - '/php8.2-fpm'
      - '/php8.3-fpm'
      - '/httpd'
      - '/apache2'
      - '/nginx'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/zsh'
      - '/python'
      - '/python3'
      - '/perl'
      - '/nc'
      - '/ncat'
      - '/netcat'
  condition: selection_parent and selection_child
falsepositives:
  - Legitimate PHP applications invoking system tools (rare in standard WordPress)
  - Some backup or maintenance plugins
level: high
---
title: Executable PHP File Written to WordPress Uploads Directory
id: 6b2d9e04-7c41-4a38-bf65-2d8e1a9c3f50
status: experimental
description: Detects creation of PHP files inside WordPress uploads directories, a primary artifact of arbitrary file upload exploitation such as CVE-2026-115867.
references:
  - https://nvd.nist.gov/vuln/detail/CVE-2026-115867
  - https://attack.mitre.org/techniques/T1505/003/
author: Security Arsenal
date: 2026/01/15
tags:
  - attack.persistence
  - attack.t1505.003
logsource:
  category: file_event
  product: linux
detection:
  selection_path:
    TargetFilename|contains:
      - '/wp-content/uploads/'
  selection_ext:
    TargetFilename|endswith:
      - '.php'
      - '.phtml'
      - '.php3'
      - '.php4'
      - '.php5'
      - '.php7'
      - '.phar'
  condition: selection_path and selection_ext
falsepositives:
  - Legitimate plugin updates writing index.php placeholder files (filter on known filenames like index.php if needed)
level: critical

KQL (Microsoft Sentinel / Defender)

This query hunts Apache/Nginx access logs ingested via Syslog/CEF for two exploitation signatures: POST requests carrying PHP stream wrapper URIs (the copy_files attack vector) and successful requests to .php files inside /wp-content/uploads/ (webshell access).

KQL — Microsoft Sentinel / Defender
let lookback = 14d;
union isfuzzy=true
    (Syslog
    | where TimeGenerated > ago(lookback)
    | where SyslogMessage has_any ("wp-content/uploads", "php://", "data://")
    | extend Indicator = case(
        SyslogMessage has "wp-content/uploads" and SyslogMessage has ".php", "Webshell access in uploads dir",
        SyslogMessage has_any ("php://", "data://"), "PHP stream wrapper in request",
        "Other")
    | where Indicator != "Other"
    | project TimeGenerated, Computer, ProcessName, Indicator, SyslogMessage),
    (CommonSecurityLog
    | where TimeGenerated > ago(lookback)
    | where RequestURL has_any ("/wp-content/uploads/", "php://", "data://")
    | extend Indicator = case(
        RequestURL has "/wp-content/uploads/" and RequestURL endswith ".php", "Webshell access in uploads dir",
        RequestURL has_any ("php://", "data://") or AdditionalExtensions has_any ("php://", "data://"), "PHP stream wrapper in request",
        "Other")
    | where Indicator != "Other"
    | project TimeGenerated, SourceIP, RequestMethod, RequestURL, Indicator, DeviceVendor, DeviceProduct)
| order by TimeGenerated desc

Tune the webshell-access leg by excluding known-good PHP filenames your theme/plugins legitimately place in uploads (rare) and by filtering SourceIP to external addresses.

Velociraptor VQL

This artifact sweeps WordPress upload directories for executable files — the smoking gun of this vulnerability — and is worth running across every managed WordPress host in your fleet today.

VQL — Velociraptor
-- Hunt for executable files dropped into WordPress uploads directories
-- Indicator of arbitrary file upload exploitation (CVE-2026-115867)
SELECT FullPath,
       Size,
       Mtime,
       Ctime,
       Btime
FROM glob(globs=[
    '/var/www/*/wp-content/uploads/**/*.php',
    '/var/www/*/wp-content/uploads/**/*.phtml',
    '/var/www/*/wp-content/uploads/**/*.phar',
    '/var/www/html/*/wp-content/uploads/**/*.php',
    '/srv/www/*/wp-content/uploads/**/*.php',
    '/home/*/public_html/wp-content/uploads/**/*.php'
])
ORDER BY Mtime DESC

Any hit on this query is a P1 investigation. Pull the file, preserve it for forensics, check web access logs for requests to that path, and assume the host is compromised until proven otherwise — a webshell means the attacker had the access needed to establish persistence elsewhere (cron, wp-config.php modification, rogue admin users in the wp_users table).

Verification and Hardening Script

Run this on each WordPress host to (a) identify whether the vulnerable plugin is installed and at what version, (b) scan upload directories for executable files, and (c) verify execution-blocking hardening is in place. It requires WP-CLI for the version check; the filesystem checks run standalone.

Bash / Shell
#!/bin/bash
# CVE-2026-115867 verification and triage script
# Run as root or a user with read access to WordPress document roots

DOCROOTS=(/var/www /srv/www /home)

echo "=== [1] Checking for vulnerable plugin installation ==="
find "${DOCROOTS[@]}" -type d -path "*/wp-content/plugins/*" 2>/dev/null | \
  grep -iE "database.*(contact-form-7|cf7|wpforms|elementor)" | while read -r plugindir; do
    echo "[FOUND] Plugin directory: $plugindir"
    grep -rhoE "Version:[[:space:]]*[0-9]+\.[0-9]+\.[0-9]+" "$plugindir" 2>/dev/null | head -1
done

echo ""
echo "=== [2] Scanning uploads directories for executable files ==="
find "${DOCROOTS[@]}" -type d -name "uploads" -path "*/wp-content/*" 2>/dev/null | while read -r uploaddir; do
    hits=$(find "$uploaddir" -type f \( -name "*.php" -o -name "*.phtml" -o -name "*.phar" -o -name "*.htaccess" \) 2>/dev/null)
    if [ -n "$hits" ]; then
        echo "[ALERT] Suspicious files in $uploaddir:"
        echo "$hits" | while read -r f; do
            stat -c '  %n | modified: %y | size: %s' "$f"
        done
    fi
done

echo ""
echo "=== [3] Verifying Apache .htaccess processing is enabled ==="
if command -v apache2ctl >/dev/null 2>&1 || command -v httpd >/dev/null 2>&1; then
    grep -rEi "AllowOverride" /etc/apache2/ /etc/httpd/ 2>/dev/null | grep -v "^#" | head -10
    echo "NOTE: If AllowOverride is None for your document root, the plugin's .htaccess mitigation is INERT."
fi

echo ""
echo "=== [4] Applying defense-in-depth: deny execution in uploads (nginx note below) ==="
echo "For Apache, add to the uploads .htaccess or vhost config:"
cat <<'EOF'
<FilesMatch "\.(php|phtml|phar|php[0-9])$">
    Require all denied
</FilesMatch>
EOF
echo "For Nginx, add to your server block:"
cat <<'EOF'
location ~* /wp-content/uploads/.*\.(php|phtml|phar)$ {
    deny all;
}
EOF

echo ""
echo "Done. If step 2 returned hits, isolate the host and begin IR procedures."

Remediation

1. Update immediately. Upgrade the Database for Contact Form 7, WPForms, Elementor Forms plugin to a patched version newer than 1.5.5. Verify the exact fixed version against the vendor's changelog on the WordPress plugin repository and the advisory referenced in the NVD entry: https://nvd.nist.gov/vuln/detail/CVE-2026-115867. Do not assume auto-updates have applied — confirm the installed version on every site via WP-CLI (wp plugin list) or the filesystem check above.

2. If no patch is available for your environment, deactivate the plugin. wp plugin deactivate <plugin-slug> removes the attack surface entirely. Losing form-submission logging is an acceptable trade against unauthenticated RCE. Alternatively, restrict access at the WAF/reverse proxy to the plugin's AJAX endpoints for unauthenticated sessions.

3. Deploy WAF/virtual patching rules. Block requests containing PHP stream wrapper schemes (php://, data://, phar://, expect://) in request bodies and parameters at your WAF, ModSecurity (OWASP CRS covers much of this), or CDN edge. This kills the copy_files source-URI vector regardless of plugin version.

4. Enforce execution-blocking in uploads directories using the Apache or Nginx configurations in the script above. This is defense-in-depth that blunts this vulnerability class across all plugins, not just this one.

5. Hunt before you patch. Exploitation may have already occurred — unauthenticated file upload bugs are mass-scanned fast. Run the VQL artifact and the Bash script across every WordPress host before updating, so forensic evidence of pre-patch compromise isn't overwritten. Check for: unexpected PHP files in uploads, recently created admin users in wp_users, modified wp-config.php, unexpected cron entries, and outbound connections from the web server user.

6. Inventory exposure at scale. If you manage multiple WordPress properties, enumerate every site running this plugin today — most organizations discover companion plugins like this one were installed by agencies or marketers and never tracked in asset inventory. This is exactly the class of shadow-plugin risk that belongs in your vulnerability management program's continuous discovery scope.

7. Monitor CISA KEV. Given the severity, pre-auth nature, and WordPress's attack surface, watch https://www.cisa.gov/known-exploited-vulnerabilities-catalog for addition of CVE-2026-115867. KEV listing triggers mandatory remediation timelines for federal agencies and should trigger your emergency change window regardless of sector.

The Bottom Line

Unauthenticated arbitrary file upload leading to RCE is as bad as WordPress plugin vulnerabilities get — no credentials, no user interaction, no complexity. The plugin's .htaccess mitigation is a comforting fiction on a large share of real-world deployments. Patch now, hunt for pre-patch compromise, and use this as the forcing function to finally enforce execution-blocking on upload directories across your WordPress estate. If you need help validating exposure or investigating suspicious files, reach out.

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.