CVE-2007-0107 SQL injection in n/a

Medium 6.8 Published Updated

Remote attackers can execute arbitrary SQL commands in WordPress by exploiting multibyte character set handling flaws when mbstring is enabled.

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-0107?

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

Official description

WordPress before 2.0.6, when mbstring is enabled for PHP, decodes alternate character sets after escaping the SQL query, which allows remote attackers to bypass SQL injection protection schemes and execute arbitrary SQL commands via multibyte charsets, as demonstrated using UTF-7.

Which versions are affected by CVE-2007-0107?

It affects 1 product.

Products include Wordpress Wordpress.

How do I fix CVE-2007-0107?

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-0107 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

All Wordpress Wordpress vulnerabilities

Sources

Also known as DEBIAN-CVE-2007-0107, GHSA-mm56-chx8-v576.

Is CVE-2007-0107 in your software?

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

Check your SBOMs for free