WordPress Core 3.4.0 - 7.1.4 - Authenticated (Administrator+) SQL Injection via Customizer Front-Page Preview

2026-11-18 00:00
Rudy Faile

Strategic Overview

Status
Patched in 4.7.40
Affected Core
WordPress 7.1
Affected Version
3.4.0 – 7.1.4 · 26 branches
CVSS
4.9Medium
Weakness type
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command
CVE
CVE pending
View all WordPress 7.1 vulnerabilities

At a glance

This record tracks a medium-severity Improper Neutralization of Special Elements used in an SQL Command vulnerability in the WordPress 7.1 WordPress release line, affecting 3.4.0 – 7.1.4 · 26 branches. It carries a CVSS score of 4.9 (reachable over the network; low attack complexity; high confidentiality impact). Exploitation requires an authenticated account at Administrator level or above. The issue is fixed in version 4.7.40; sites on affected versions should update now. Disclosed November 2026, reported by Rudy Faile.

Vulnerability Overview

WordPress Core is vulnerable to SQL Injection via the 'page_on_front' parameter in versions 3.4.0 through 7.1.4 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 Administrator-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

Technical Analysis

The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user. A successful exploit has high impact on confidentiality.

CWE-89: Improper Neutralization of Special Elements used in an SQL Command

WordPress 7.1 3.4.0 – 7.1.4 · 26 branches carries this weakness at page_on_front, and reaching it takes an account at Administrator level or above. SQL injection happens when request data is concatenated into a query instead of being bound as a parameter, letting an attacker change the structure of the statement rather than just its values.

A working injection can read any table the database user can see, which on a WordPress install means user records, password hashes and session or API secrets stored in options. For WordPress 7.1 the fix is 4.7.40: builds 3.4.0 – 7.1.4 · 26 branches are affected, anything from 4.7.40 onward is not.

Remediation

Update to one of the following versions, or a newer patched version: 4.7.40, 4.8.35, 4.9.36, 5.0.32, 5.1.29, 5.2.31, 5.3.28, 5.4.26, 5.5.25, 5.6.24, 5.7.22, 5.8.20, 5.9.21, 6.0.19, 6.1.17, 6.2.16, 6.3.15, 6.4.15, 6.5.15, 6.6.12, 6.7.12, 6.8.13, 6.9.12, 7.0.9, 7.1.5

How does WordSec protect against this?

An attacker needs Administrator access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: updating to 4.7.40 is the step that ends it.

  • Firewall
  • Alerts

External References

Related records

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C