Custom Field Template <= 2.7.8 - Authenticated (Contributor+) Insecure Direct Object Reference to Arbitrary Media File Deletion via 'file_field' Parameter
Summary
| CVE | CVE-2026-12995 |
|---|---|
| State | PUBLISHED |
| Assigner | Wordfence |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-09-22 08:16:36 UTC |
| Updated | 2026-09-22 19:04:55 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 4.3 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
EPSS: 0.002130000 probability, percentile 0.119510000 (date 2026-09-23)
Problem Types: CWE-639 | CWE-639 CWE-639 Authorization Bypass Through User-Controlled Key
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 4.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| 3.1 | CNA | DECLARED | 4.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Hiroaki-miyashita | Custom Field Template | affected 2.7.8 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| plugins.trac.wordpress.org/browser/custom-field-template/tags/2.7.8/custom-field-templat... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/custom-field-template/tags/2.7.8/custom-field-templat... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/custom-field-template/tags/2.7.7/custom-field-templat... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/custom-field-template/tags/2.7.7/custom-field-templat... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/custom-field-template/tags/2.7.7/custom-field-templat... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/changeset | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/custom-field-template/tags/2.7.8/custom-field-templat... | [email protected] | plugins.trac.wordpress.org | |
| www.wordfence.com/threat-intel/vulnerabilities/id/02f44f5b-c513-4aba-b895-65df6... | [email protected] | www.wordfence.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Dmitrii Ignatyev (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-09-21T18:42:31.000Z | Disclosed |
There are currently no legacy QID mappings associated with this CVE.