Custom Field Template <= 2.7.8 - Authenticated (Contributor+) Insecure Direct Object Reference to Arbitrary Media File Deletion via 'file_field' Parameter

4.3
Authorization Bypass Through User-Controlled Key
CVE CVE-2026-12995
CVSS 4.3 (Medium)
Publicly Published September 21, 2026
Last Updated September 22, 2026
Researcher Dmitrii Ignatyev - CleanTalk Inc

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.

References

Share

Vulnerability Details for Custom Field Template

Software Type Plugin
Software Slug custom-field-template (view on wordpress.org)
Patched? Yes
Remediation Update to version 2.8, or a newer patched version
Affected Version
  • <= 2.7.8
Patched Version
  • 2.8

Recent vulnerabilities in Custom Field Template

# Title CVE ID CVSS Researchers Date
1 Custom Field Template <= 2.7.8 - Authenticated (Contributor+) SQL Injection via 'post_ID' Parameter CVE-2026-9855 6.5 Huynh Pham Thanh Luc September 18, 2026
2 Custom Field Template <= 2.7.8 - Authenticated (Contributor+) SQL Injection CVE-2026-57687 6.5 daroo June 29, 2026
3 Custom Field Template <= 2.7.7 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2025-68607 6.4 Muhammad Yudha - DJ December 24, 2025
4 Custom Field Template <= 2.7.6 - Authenticated (Subscriber+) Information Exposure CVE-2025-63058 4.3 Phat RiO December 8, 2025
5 Custom Field Template <= 2.6.5 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2024-44062 6.4 Robert DeVore August 29, 2024
6 Custom Field Template <= 2.6.1 - Authenticated (Admin+) Stored Cross-Site Scritping CVE-2024-0653 4.4 catfather June 10, 2024
7 Custom Field Template <= 2.6.1 - Authenticated(Contributor+) Information Exposure CVE-2023-6748 4.3 Francesco Carlucci June 10, 2024
8 Custom Field Template <= 2.6.1 - Authenticated(Contributor+) Stored Cross-Site Scripting via shortcode CVE-2023-6745 6.4 Francesco Carlucci June 10, 2024
9 Custom Field Template <= 2.6.1 - Authenticated(Constibutor+) Stored Cross-Site Scripting via Custom Field Name CVE-2024-0627 6.4 Luk 6785 June 10, 2024
10 Custom Field Template <= 2.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via $search_label CVE-2024-25919 6.4 LVT-tholv2k February 14, 2024

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation