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

Medium 6.5 CWE-22Fixed in 1.5.7
ID
WPSEC-2026-4221
Plugin
Database for Contact Form 7, WPforms, Elementor forms (contact-form-entries)
Affected
all versions before 1.5.7
Remediation
Update to 1.5.7 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
Weakness
CWE-22
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-29
Attack surface
Database for Contact Form 7, WPforms, Elementor forms on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0