Custom Field Template <= 2.7.8 - Authenticated (Contributor+) SQL Injection via 'post_ID' Parameter
Summary
| CVE | CVE-2026-9855 |
|---|---|
| State | PUBLISHED |
| Assigner | Wordfence |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-09-19 08:16:55 UTC |
| Updated | 2026-09-21 13:33:33 UTC |
| Description | The Custom Field Template plugin for WordPress is vulnerable to generic SQL Injection via the 'post_ID' parameter in all versions up to, and including, 2.7.8 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with contributor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The capability check via current_user_can('edit_post', $id) is bypassable because WordPress internally casts $id to an integer for the permission evaluation while the full unsanitized string is preserved and passed to the SQL sink, and a valid nonce — which is also required — can be legitimately obtained by any Contributor-level user from the post edit screen. |
Risk And Classification
Primary CVSS: v3.1 6.5 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS: 0.003440000 probability, percentile 0.280670000 (date 2026-09-22)
Problem Types: CWE-89 | CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| 3.1 | CNA | DECLARED | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/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 |
|---|---|---|---|
| www.wordfence.com/threat-intel/vulnerabilities/id/ce924708-935a-45c0-8959-dd122... | [email protected] | www.wordfence.com | |
| 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.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.8/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 | |
| plugins.trac.wordpress.org/browser/custom-field-template/tags/2.7.7/custom-field-templat... | [email protected] | plugins.trac.wordpress.org | |
| 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: Luc Huynh from Noventiq RedTeam (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-09-18T18:50:05.000Z | Disclosed |
There are currently no legacy QID mappings associated with this CVE.