CVE-2007-6318 wordpress wordpress: SQL Injection
wordpress wordpress: no CVSS score yet. EPSS 9.2% estimated probability of exploitation activity in the next 30 days.
On this page
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.
- EPSS
- 9.2% (unchanged from 9.2% a week ago; 9.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
- CWE
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
- OWASP Top 10
- A05:2025 Injection
- Published
- Modified
- NVD analysis
- Analyzed, since modified
- Record from
- the NVD, synced
Fix and patched versions
- Debian: fixed package versions per release
- Vendor advisory: http://secunia.com/advisories/28005
Ask an AI about this CVE
Show the prompt
Explain CVE-2007-6318 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2007-6318?via=ask-ai-copy and https://cve.bz/cve/CVE-2007-6318?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2007-6318 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| wordpress:wordpress | 2.0 |
| wordpress:wordpress | 2.0.1 |
| wordpress:wordpress | 2.0.2 |
| wordpress:wordpress | 2.0.3 |
| wordpress:wordpress | 2.0.4 |
| wordpress:wordpress | 2.0.5 |
| wordpress:wordpress | 2.0.6 |
| wordpress:wordpress | 2.0.7 |
| wordpress:wordpress | 2.0.10 |
| wordpress:wordpress | 2.0.10_rc1 |
| wordpress:wordpress | 2.0.10_rc2 |
| wordpress:wordpress | 2.1.1 |
| wordpress:wordpress | 2.1.2 |
| wordpress:wordpress | 2.1.3 |
| wordpress:wordpress | 2.1.3_rc1 |
| wordpress:wordpress | 2.1.3_rc2 |
| wordpress:wordpress | 2.2 |
| wordpress:wordpress | 2.2.1 |
| wordpress:wordpress | 2.2.2 |
| wordpress:wordpress | 2.2.3 |
| wordpress:wordpress | 2.2_revision5002 |
| wordpress:wordpress | 2.2_revision5003 |
| wordpress:wordpress | 2.3 |
| wordpress:wordpress | 2.3.1 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | wordpress | 2.3.2-1 | DEBIAN-CVE-2007-6318 |
From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.
Red Hat
Red Hat rates this Moderate.
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2007-6318.
Public exploits
- Exploit-DB WordPress Core 2.3.1 - Charset SQL Injection
Attack patterns (CAPEC)
- CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
- CAPEC-66 SQL Injection Likelihood: High · Severity: High
- CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
- CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
- CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
- CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.
References
- http://secunia.com/advisories/28005
- http://lists.grok.org.uk/pipermail/full-disclosure/2007-December/058999.html
- http://secunia.com/advisories/28310
- http://securityreason.com/securityalert/3433
- http://www.abelcheung.org/advisory/20071210-wordpress-charset.txt
- http://www.securityfocus.com/archive/1/484828/100/0/threaded
- http://www.securityfocus.com/bid/26795
- http://www.securitytracker.com/id?1019071
- http://www.vupen.com/english/advisories/2007/4172
- https://exchange.xforce.ibmcloud.com/vulnerabilities/38959
- https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00079.html
- https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00098.html