CVE-2007-6318 SQL injection in n/a

Medium 6.8 Published Updated

Remote attackers can execute arbitrary SQL commands in WordPress when specific multibyte character sets are configured, allowing data access or modification.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2007-6318?

CVE-2007-6318 is a medium-severity SQL injection vulnerability in Wordpress Wordpress, published on 12 Dec 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-89

Which versions are affected by CVE-2007-6318?

It affects 1 product.

Products include Wordpress Wordpress.

How do I fix CVE-2007-6318?

Upgrade to a fixed version.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2007-6318 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-6318 exists.

Public exploit code: 1 Exploit-DB entry.

All Wordpress Wordpress vulnerabilities

Sources

Also known as DEBIAN-CVE-2007-6318, GHSA-79q4-xv4r-946x.

Is CVE-2007-6318 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free