WordPress security changelog
MEDIUM CVE-2007-6318 Modified

wp-includes/query.php in WordPress 2.3.1 and earlier: SQL injection

wp-includes/query.php in WordPress 2.3.1 and earlier is affected by SQL injection. Exposure depends on how the affected operation is made reachable by the site. A successful request can alter database queries and expose or modify WordPress data.

CVE / CNA score 6.8 CVSS · cve@mitre.org
NVD score 6.8 CVSS 2.0 · nvd@nist.gov
Component
wp-includes/query.php in WordPress 2.3.1 and earlier
Plugin slug
Not applicable
Affected
See vendor advisory
Safe version
See mitigation notes
Published
Dec 12, 2007
Weakness
CWE-89 — Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Update, patch or deactivate.

Update wp-includes/query.php in WordPress 2.3.1 and earlier to a release outside the affected range, or disable and remove it until a fixed version is available.

No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

Technical description

SQL injection vulnerability in wp-includes/query.php in WordPress 2.3.1 and earlier allows remote attackers to execute arbitrary SQL commands via the s parameter, when DB_CHARSET is set to (1) Big5, (2) GBK, or possibly other character set encodings that support a "\" in a multibyte character.

NVD vector: AV:N/AC:M/Au:N/C:P/I:P/A:P

Primary and upstream sources