CVE-2007-1897 SQL injection in n/a
Authenticated attackers can execute arbitrary SQL commands via XML-RPC in WordPress, potentially compromising database integrity and confidentiality.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2007-1897?
CVE-2007-1897 is a medium-severity SQL injection vulnerability in Wordpress Wordpress, published on 9 Apr 2007. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
SQL injection vulnerability in xmlrpc (xmlrpc.php) in WordPress 2.1.2, and probably earlier, allows remote authenticated users to execute arbitrary SQL commands via a string parameter value in an XML RPC mt.setPostCategories method call, related to the post_id variable.
Weakness: CWE-89
Which versions are affected by CVE-2007-1897?
It affects 1 product.
Products include Wordpress Wordpress.
How do I fix CVE-2007-1897?
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-1897 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-1897 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Wordpress Wordpress
Sources
Also known as DEBIAN-CVE-2007-1897, GHSA-pp8c-8h35-cghc.