WordPress Core < 4.8.3 - SQL Injection due to Double Prepare approach

2017-10-31 00:00
Anthony Ferrara

Strategic Overview

Status
Patched in 3.7.23
Affected CoreWordPress 4.8
Affected Version3.7 – 4.8.2 · 13 branches
CVSS9.8Critical
CVECVE-2017-16510
View all WordPress 4.8 vulnerabilities

Vulnerability Overview

WordPress before 4.8.3 is affected by an issue where $wpdb->prepare() can create unexpected and unsafe queries leading to potential SQL injection (SQLi) in plugins and themes, as demonstrated by a "double prepare" approach, a different vulnerability than CVE-2017-14723.

Technical Analysis

REMEDIATION: Update to one of the following versions, or a newer patched version: 3.7.23, 3.8.23, 3.9.21, 4.0.20, 4.1.20, 4.2.17, 4.3.13, 4.4.12, 4.5.11, 4.6.8, 4.7.7, 4.8.3 --- IDENTIFIER: CWE-89 (Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

External References

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