# Database for Contact Form 7, WPforms, Elementor forms <= 1.5.6 - Unauthenticated Arbitrary File Copy via Caldera Forms File Field

- **ID:** WPSEC-2026-4221
- **Plugin:** Database for Contact Form 7, WPforms, Elementor forms (`contact-form-entries`), https://wordpress.org/plugins/contact-form-entries/
- **Affected versions:** all versions before 1.5.7
- **Fixed in:** 1.5.7 (Update to 1.5.7 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N)
- **Weakness:** CWE-22
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-29)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/contact-form-entries
- **Fix released:** 2026-11-28
- **Published:** 2026-11-29
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4221/

## Description

The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to Arbitrary File Copy in all versions up to, and including, 1.5.6 via the copy_files() function. When saving a Caldera Forms submission, the plugin passes the value of each File or Advanced File field to PHP's copy() without checking that it is a file Caldera Forms uploaded, and Caldera Forms keeps any submitted value that is a valid URL when no file is uploaded. This makes it possible for unauthenticated attackers to copy local files or remote URLs into the publicly accessible crm_perks_uploads directory, which can expose sensitive files such as wp-config.php or, on servers that do not apply that directory's .htaccess rules, lead to remote code execution. Exploitation requires Caldera Forms with a form that contains a file upload field.

## References

- https://wpsec.com/vuln/WPSEC-2026-4221/
- https://plugins.svn.wordpress.org/contact-form-entries/tags/1.5.7/
- https://wordpress.org/plugins/contact-form-entries/

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

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.
