Medium severity · published Sep 22, 2026
CVE-2026-12995
Custom Field Template <= 2.7.8 - Authenticated (Contributor+) Insecure Direct Object Reference to Arbitrary Media File Deletion via 'file_field' Parameter
4.3
CVSS
0.4%
EPSS
No
On KEV
Description
The Custom Field Template plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 2.7.8 via the edit_meta_value due to missing validation on a user controlled key. This makes it possible for authenticated attackers, with contributor-level access and above, to delete arbitrary media attachments site-wide by supplying any numeric attachment ID in the file-field parameter alongside the corresponding delete flag, causing content loss and broken pages. Exploitation requires that the attacker's post is governed by a Custom Field Template containing at least one file-type field with the mediaRemove option not enabled, which is the default configuration for file fields.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 31% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CF
Custom Field Template · hiroaki-miyashita
through 2.7.8 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-12995
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-12995
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/custom-field-template/tags/2.7.7/custom-field-template.php#L105
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/custom-field-template/tags/2.7.7/custom-field-template.php#L3462
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/custom-field-template/tags/2.7.7/custom-field-template.php#L3500
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/custom-field-template/tags/2.7.8/custom-field-template.php#L105
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/custom-field-template/tags/2.7.8/custom-field-template.php#L3462
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/custom-field-template/tags/2.7.8/custom-field-template.php#L3500
More from Custom Field Template
8.5
CVE-2026-57687
WordPress Custom Field Template plugin <= 2.7.8 - SQL Injection vulnerability
6.5
CVE-2026-9855
Custom Field Template <= 2.7.8 - Authenticated (Contributor+) SQL Injection via 'post_ID' Parameter
6.5
CVE-2025-68607
WordPress Custom Field Template plugin <= 2.7.7 - Cross Site Scripting (XSS) vulnerability
5.4
CVE-2024-44062
WordPress Custom Field Template plugin <= 2.6.5 - Cross Site Scripting (XSS) vulnerability
4.3
CVE-2025-63058
WordPress Custom Field Template plugin <= 2.7.6 - Sensitive Data Exposure vulnerability
