CVE-2007-6318: 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, (

medium Affects WordPress core. Feed 2026.10.29.1, updated 2026-10-28; published ; advisory modified .

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, (

Package
WordPress core WordPress
Affected versions
=2.0 or =2.0.1 or =2.0.2 or =2.0.3 or =2.0.4 or =2.0.5 or =2.0.6 or =2.0.7 or =2.0.10 or =2.0.10_rc1 or =2.0.10_rc2 or =2.1.1 or =2.1.2 or =2.1.3 or =2.1.3_rc1 or =2.1.3_rc2 or =2.2 or =2.2.1 or =2.2.2 or =2.2.3 or =2.2_revision5002 or =2.2_revision5003 or =2.3 or =2.3.1
Fixed in
no fix recorded
Severity
medium  CVSS 6.8
Exploitation
not on CISA KEV · EPSS 9% (95.3th percentile)
Published
2007-12-12
Source
nvd

References

CWE-89
NVD recordWordPress core advisories

Am I affected?

Find out in one command. phpwarden checks your WordPress install against this advisory and 20,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# one-time install
pip install phpwarden

# then
phpwarden wordpress /var/www/html

Or keep it checked automatically with the GitHub Action or a nightly cron; see WordPress docs.

Install docs   How findings are ranked

Related advisories