# Groundhogg <= 4.9.3 - Authenticated (Sales Representative+) Arbitrary File Deletion via Contact File Copying

- **ID:** WPSEC-2026-0955
- **Plugin:** Groundhogg — CRM, Newsletters, and Marketing Automation (`groundhogg`), https://wordpress.org/plugins/groundhogg/
- **Affected versions:** all versions before 4.9.4
- **Fixed in:** 4.9.4 (Update to 4.9.4 or later.)
- **Severity:** High 8.1 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H)
- **Weakness:** CWE-22
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-14)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/groundhogg
- **Fix released:** 2026-10-13
- **Published:** 2026-10-14
- **URL:** https://wpsec.com/vuln/WPSEC-2026-0955/

## Description

The Groundhogg plugin for WordPress is vulnerable to arbitrary file deletion via the contact file copy feature ('files' and 'copy_file' contact fields used by the REST API and contact imports) in all versions up to, and including, 4.9.3, due to insufficient validation of the source file path in the File_Box::copy_file() function. When a local path outside the uploads directory was supplied, the sideload was rejected and the plugin then deleted the supplied path. This makes it possible for authenticated attackers, with Sales Representative-level access and above, to delete arbitrary files on the server, such as wp-config.php, which can make remote code execution possible.

## References

- https://wpsec.com/vuln/WPSEC-2026-0955/
- https://plugins.svn.wordpress.org/groundhogg/tags/4.9.4/
- https://wordpress.org/plugins/groundhogg/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-0955/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
