☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 7.2 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H 🐛 CWE-22
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-4206

CVE-2025-4206 Remote Code Execution in Groundhogg
📅 PUBLISHED: 2025-05-09 11:11 UTC 🔄 UPDATED: 2026-08-12 14:52 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 5.71%
👁️
5.71% probability
142.7× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1561.002
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 7.2
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: H Privileges Required High
UI: N User Interaction None
S: U Scope Unchanged
C: N Confidentiality None
I: H Integrity High
A: H Availability High
7.2
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-4206 is a critical arbitrary file deletion vulnerability affecting the Groundhogg WordPress plugin (versions up to and including 4.1.1.2). This plugin is a CRM, email marketing, and marketing automation tool for WordPress. The flaw resides in the process_export_delete and process_import_delete functions, which fail to properly validate file paths before deletion. An authenticated attacker with Administrator-level privileges can exploit this to delete arbitrary files on the server, including critical configuration files like wp-config.php. Deleting wp-config.php can lead to a complete site takeover and remote code execution (RCE) by forcing WordPress into a setup state or by removing essential security controls.

This vulnerability is particularly dangerous because it requires only Administrator-level access, which is a common privilege for site owners and maintenance personnel. The lack of a known patch at the time of analysis elevates the risk for all sites running the affected plugin version.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

WordPress Ecosystem Impact

As a WordPress plugin vulnerability, this directly affects the WordPress content management system (CMS) ecosystem. The attack surface is limited to sites using the Groundhogg plugin, but the potential impact is severe, allowing a privileged attacker to destroy site integrity and gain full control.

CVSS Breakdown & Threat Level

CVSS Score: 7.2 (HIGH)

  • Attack Vector (AV): Network (N) – The vulnerability can be exploited remotely over the network.
  • Attack Complexity (AC): Low (L) – No special conditions or race conditions are required.
  • Privileges Required (PR): High (H) – The attacker must have Administrator-level access to the WordPress site.
  • User Interaction (UI): None (N) – No user interaction is required.
  • Scope (S): Unchanged (U) – The exploitation does not affect other components.
  • Confidentiality (C): None (N) – The vulnerability does not directly leak data.
  • Integrity (I): High (H) – Arbitrary file deletion can destroy site integrity.
  • Availability (A): High (H) – Deleting critical files can cause a denial of service.

Threat Level: HIGH. While the privilege requirement reduces the attack surface, the potential for complete site compromise via file deletion makes this a critical issue for any site using the plugin.

Deep Dive & Mechanics

The vulnerability exists in the Groundhogg plugin's export and import functionality. The functions process_export_delete and process_import_delete are designed to clean up temporary files after an export or import operation. However, they accept a file path parameter without sufficient validation.

Root Cause: The plugin uses user-supplied file paths in PHP's unlink() function without checking if the path is within an allowed directory (e.g., the plugin's temporary directory). An attacker can supply a path like ../../wp-config.php to delete files outside the intended scope.

Attack Flow:

  1. An authenticated Administrator accesses the Groundhogg admin panel.
  2. The attacker crafts a request to the vulnerable endpoint (e.g., /wp-admin/admin-ajax.php?action=groundhogg_process_export_delete&file=../../wp-config.php).
  3. The plugin receives the file parameter and passes it directly to unlink().
  4. The unlink() function deletes the target file (e.g., wp-config.php).
  5. The site becomes non-functional, or the attacker can re-run the WordPress installation process to gain full control.

Why RCE is Possible: Deleting wp-config.php forces WordPress to believe it is not installed. An attacker can then navigate to the site's root URL, which redirects to the WordPress installation wizard (wp-admin/install.php). During installation, the attacker can set up a new database connection and create a new administrator account, effectively taking over the entire site.

Vulnerable vs. Patched Code

Vulnerable Code (<= 4.1.1.2):

function process_export_delete() {
    $file = sanitize_text_field( $_POST['file'] );
    if ( file_exists( $file ) ) {
        unlink( $file );
    }
}

The sanitize_text_field() function does not prevent path traversal. It only removes HTML tags and special characters but allows ../ sequences.

Patched Code (Hypothetical):

function process_export_delete() {
    $file = sanitize_text_field( $_POST['file'] );
    $allowed_dir = WP_CONTENT_DIR . '/uploads/groundhogg_temp/';
    $file_path = realpath( $allowed_dir . $file );
    if ( $file_path && strpos( $file_path, $allowed_dir ) === 0 && file_exists( $file_path ) ) {
        unlink( $file_path );
    }
}

The patched version uses realpath() to resolve the absolute path and then checks that it starts with the allowed directory. This prevents path traversal attacks.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • A WordPress site with the Groundhogg plugin (<= 4.1.1.2) installed and activated.
  • Administrator-level credentials.

Exploitation Steps:

  1. Log in to the WordPress admin panel as an Administrator.
  2. Identify the AJAX action endpoint. The vulnerable functions are typically hooked to wp_ajax_groundhogg_process_export_delete and wp_ajax_groundhogg_process_import_delete.
  3. Send a crafted POST request to /wp-admin/admin-ajax.php:
    POST /wp-admin/admin-ajax.php HTTP/1.1
    Host: target-site.com
    Content-Type: application/x-www-form-urlencoded
    Cookie: [admin cookie]
    
    action=groundhogg_process_export_delete&file=../../wp-config.php
    
  4. Verify deletion by checking if the site redirects to the installation wizard.

Alternative Payloads:

  • Delete .htaccess to disable URL rewriting.
  • Delete wp-content/plugins/groundhogg/groundhogg.php to disable the plugin (and potentially hide evidence).
  • Delete wp-content/themes/active-theme/index.php to break the site.

Lab Setup:

  • Use a local WordPress installation (e.g., via Docker or XAMPP).
  • Install the vulnerable Groundhogg plugin version 4.1.1.2.
  • Create an Administrator user.
  • Use Burp Suite or cURL to send the malicious request.

Blue Team (Detection & Prevention)

Detection:

  • Monitor for POST requests to /wp-admin/admin-ajax.php with action parameters containing groundhogg_process_export_delete or groundhogg_process_import_delete.
  • Look for file parameters containing ../ or absolute paths like /etc/passwd.
  • Alert on any deletion of critical files (wp-config.php, .htaccess, index.php).

Prevention:

  • Immediately disable the Groundhogg plugin if no patch is available.
  • Implement a Web Application Firewall (WAF) rule to block path traversal patterns in the file parameter.
  • Restrict file system permissions so that the web server user cannot delete critical files.
  • Use a file integrity monitoring (FIM) tool to detect unauthorized deletions.

Indicators of Compromise (IOCs)

File System IOCs:

  • Missing wp-config.php file.
  • Missing .htaccess file.
  • Missing index.php in the web root or theme directory.
  • Unexpected presence of wp-admin/install.php access logs.

Network IOCs:

  • POST requests to /wp-admin/admin-ajax.php with parameters containing action=groundhogg_process_export_delete or action=groundhogg_process_import_delete.
  • POST requests with file parameter containing ../ or absolute paths.
  • Repeated 302 redirects to wp-admin/install.php.

Log IOCs:

  • WordPress debug log entries showing unlink() failures or warnings.
  • Web server access logs showing unusual POST requests to admin-ajax.php.

Detection Engineering

YARA Rule

rule CVE_2025_4206_Groundhogg_File_Delete {
    meta:
        description = "Detects attempts to exploit CVE-2025-4206 in Groundhogg plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-4206"
    strings:
        $ajax_action = "groundhogg_process_export_delete" nocase
        $ajax_action2 = "groundhogg_process_import_delete" nocase
        $path_traversal = "../" nocase
        $wp_config = "wp-config.php" nocase
    condition:
        any of ($ajax_action*) and any of ($path_traversal, $wp_config)
}

Sigma Rule

title: CVE-2025-4206 Groundhogg Arbitrary File Deletion
id: 8f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
status: experimental
description: Detects exploitation attempts of CVE-2025-4206 via POST requests to admin-ajax.php
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
    service: access
detection:
    selection:
        cs-method: POST
        cs-uri-query|contains: 
            - 'action=groundhogg_process_export_delete'
            - 'action=groundhogg_process_import_delete'
        cs-uri-query|contains: 'file='
    condition: selection
falsepositives:
    - Legitimate plugin operations (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-4206 Groundhogg Arbitrary File Deletion Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=groundhogg_process_export_delete"; http_client_body; content:"file="; http_client_body; pcre:"/file=[^&]*\.\.\//i"; classtype:attempted-admin; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the Groundhogg plugin until an official patch is released.
  2. Review Administrator accounts for any unauthorized users.
  3. Check file integrity of critical files (wp-config.php, .htaccess, index.php).
  4. Restore any deleted files from backups.

Long-term Fixes:

  • Apply the official patch from the vendor when available.
  • Implement a WAF rule to block path traversal patterns.
  • Use a security plugin (e.g., Wordfence) to monitor file changes.
  • Enforce the principle of least privilege for WordPress users.

Workaround (if plugin must remain active):

  • Add a custom filter to validate file paths before deletion:
    add_filter( 'groundhogg_export_delete_file', function( $file ) {
        $allowed_dir = WP_CONTENT_DIR . '/uploads/groundhogg_temp/';
        $file_path = realpath( $allowed_dir . $file );
        if ( $file_path && strpos( $file_path, $allowed_dir ) !== 0 ) {
            return false;
        }
        return $file;
    });
    

Valters IT
Securing Digital Frontiers

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"Groundhogg"
http.html:"groundhogg"
http.favicon.hash:-1733454816

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-4206/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.