Radar sectionsDatabase
Check my site
WordPress plugin

Custom Field Template <= 2.7.8 — Authenticated (Contributor+) SQL Injection via 'post_ID' Parameter

CVE-2026-9855Published · Updated

Action summary

Affected: ≤2.7.8Update to 2.8 or newer

All remediation steps
Severity
Medium6.5
CVSS
6.5
CVSS 3.1 · CNA (Wordfence)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
What does this vector mean?
AV:N Attack vector
Network
AC:L Attack complexity
Low
PR:L Privileges required
Low
UI:N User interaction
None
S:U Scope
Unchanged
C:H Confidentiality
High
I:N Integrity
None
A:N Availability
None
Weakness
CWE-89 SQL Injection
Required access
Unknown
Exploit prediction (EPSS)
0.6% chance in 30 days48th percentile
CISA KEV
Not listed

Am I affected?

Custom Field Template custom-field-template

  1. Affected≤ 2.7.8
  2. Patched in2.8

Update to 2.8 or newer.

You are affected if you run ≤ 2.7.8. Version 2.8 and later are not affected by this issue.

  • Check your version: in wp-admin go to Plugins → Installed Plugins and read the version under Custom Field Template.
  • No admin access? Run a passive check of your site. It reads public files only.

What to do

  1. Update to version 2.8, or a newer patched version
  2. Rotate administrator passwords and application secrets if the site ran a vulnerable version while publicly reachable.
  3. Watch Custom Field Template to get an email when the next vulnerability is published.

Advisory

Source description from Wordfence Intelligence, credited to Huynh Pham Thanh Luc.

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.

Exploits & references

Proof-of-concept & detection

No public proof-of-concept or detection template is known for this vulnerability.

Advisories & patches

More in Custom Field Template

All 15
More vulnerabilities in Custom Field Template
SeverityVulnerabilityCVEPublished
Medium4.3Authenticated (Contributor+) Insecure Direct Object Reference to Arbitrary Media File Deletion via 'file_field' Parameter
≤2.7.8Update to 2.8
CVE-2026-12995
Medium6.5Authenticated (Contributor+) SQL Injection
≤2.7.8Update to 2.8
CVE-2026-57687
Medium6.4Authenticated (Contributor+) Stored Cross-Site Scripting
≤2.7.7Update to 2.7.8
CVE-2025-68607
Medium4.3Authenticated (Subscriber+) Information Exposure
≤2.7.6Update to 2.7.7
CVE-2025-63058
Medium6.4Authenticated (Contributor+) Stored Cross-Site Scripting
≤2.6.5Update to 2.6.6
CVE-2024-44062

Same weakness (SQL Injection)

All SQL Injection
Other SQL Injection vulnerabilities
SeverityVulnerabilityCVEPublished
High7.2Unauthenticated Stored Cross-Site Scripting via Comment User-Agent HeaderCVE-2026-120688
Critical9.8Unauthenticated Arbitrary File Upload via File Upload via Public Form SubmissionCVE-2026-125055
Critical9.8Unauthenticated PHP Object Injection to Remote Code Execution via 'form' ParameterCVE-2026-119077
Medium5.3Unauthenticated Sensitive Information Exposure in 'search' Parameter
Customer Reviews for WooCommerce≤5.127.0Update to 5.128.0
CVE-2026-121518

Timeline

  1. CVE published

    Severity medium, CVSS 6.5

  2. Record last updated

Sources & licenses

Wordfence record
Vulnerability data
Wordfence Intelligence. Copyright 2012-2026 Defiant Inc. Licensed under the CC BY-SA 4.0.
CVE® identifiers
Copyright 1999-2026 The MITRE Corporation. Used under the CVE Program. CVE® is a registered trademark of The MITRE Corporation.
CVSS / CWE
National Vulnerability Database (NVD), shown unmodified. This product uses the NVD API but is not endorsed or certified by the NVD.
EPSS
Exploit Prediction Scoring System by FIRST.org.
VulnCrest content
Summary, remediation guidance and page layout © VulnCrest. Not sourced from NVD.

How we use these sources

Search VulnCrest Radar

Are you sure?