CVE-2017-16510

WordPress before 4.8.3 is affected by an issue where $wpdb->prepare() can create unexpected and unsafe queries leading to potential SQL injection (SQLi) in…

published November 2, 2017

CVSS
—
EPSS
7%
Percentile
93.9
In the wild
Unconfirmed
What it is

⚠️ A double whammy in query handling! WordPress before version 4.8.3 can mishandle SQL queries, putting your site at risk of sneaky SQL injection attacks. 🔥 Think of it as a restaurant where the chef misreads orders—if they don’t double-check, they might serve something that shouldn’t be on the menu. This oversight can lead to unexpected results, just like how careless query preparation can lead to vulnerabilities. An attacker could exploit this vulnerability to manipulate SQL queries, potentially accessing, altering, or deleting sensitive data. This could lead to full control of your database, leaving your site and its users exposed to serious risks. Yikes!

Put simply

Think of it as a restaurant where the chef misreads orders—if they don’t double-check, they might serve something that shouldn’t be on the menu. This oversight can lead to unexpected results, just like how careless query preparation can lead to vulnerabilities. The issue stems from how $wpdb->prepare() is used, allowing for unexpected query creation, which opens the door to SQL injection in plugins and themes. This vulnerability is distinct from CVE-2017-14723, highlighting a unique risk in pre-4.8.3 WordPress setups.

What to do

An attacker could exploit this vulnerability to manipulate SQL queries, potentially accessing, altering, or deleting sensitive data. This could lead to full control of your database, leaving your site and its users exposed to serious risks. Yikes! To safeguard your site, update WordPress to version 4.8.3 or later immediately. Review your plugins and themes to ensure they properly utilize $wpdb->prepare(). Regularly audit your code to catch any unsafe query practices. You’ve got this! With a quick update and a little review, your WordPress site will be safe and sound. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.06704 · 93.9th percentile
Published
2017-11-02T16:00Z
EPSS history
Timeline
  • 02 NOV 16:00Z
    WordPress before 4.8.3 is affected by an issue where $wpdb->prepare() can create unexpected and unsafe queries leading to potential SQL injection (SQLi) in…
    cvelistv5