CVE-2026-9855

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

Published Sep 19, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Custom Field Template for WordPress allows contributors and higher roles to trigger SQL injection through the post_ID parameter. The plugin fails to escape this user‑supplied value and does not prepare the surrounding SQL query, enabling an attacker to append additional statements. Permission checks are bypassed because WordPress internally casts the post ID to an integer for the capability test while the original, unsanitized string is still sent to the database engine. A valid nonce, obtainable from the post edit screen, enables the injection with no other surface needed.

Affected Systems

WordPress sites running Custom Field Template version 2.7.8 or earlier are impacted. The vulnerability is present in all releases up to and including 2.7.8; later versions are presumed fixed and are not affected.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate severity. The EPSS score is less than 1 %, suggesting a low probability of exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog. Nevertheless, authenticated users with contributor or higher access can read sensitive database information, so the risk exists wherever such roles are assigned and the susceptible plugin version is active.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Custom Field Template to version 2.7.9 or later, which resolves the SQL injection flaw.
  • If an upgrade is not immediately possible, remove the plugin from active use or replace it with a verified alternative that does not expose the vulnerable parameter.
  • Restrict contributor and higher roles from editing posts until the plugin is removed or upgraded, to reduce the attack surface while a fix is applied.

Generated by OpenCVE AI on September 19, 2026 at 23:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Hiroaki Miyashita
Hiroaki Miyashita custom Field Template
Wordpress
Wordpress wordpress
Vendors & Products Hiroaki Miyashita
Hiroaki Miyashita custom Field Template
Wordpress
Wordpress wordpress
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Custom Field Template <= 2.7.8 - Authenticated (Contributor+) SQL Injection via 'post_ID' Parameter
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Sep 19, 2026, 1:51 PM
Reserved
May 28, 2026, 3:31 PM
Status
Deferred
Published
Sep 19, 2026, 8:16 AM
Modified
Sep 21, 2026, 1:33 PM