Description
WordPress is prone to a possible SQL injection vulnerability because it fails to properly sanitize user-supplied input before using it in an SQL query. Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database. WordPress versions 3.9.x ranging from 3.9 and up to (and including) 3.9.20 are vulnerable.
Remediation
Update to WordPress version 3.9.21 or latest, and update any plugins that override $wpdb
References
https://blog.ircmaxell.com/2017/10/disclosure-wordpress-wpdb-sql-injection-technical.html
https://blog.ircmaxell.com/2017/10/disclosure-wordpress-wpdb-sql-injection-background.html
http://blog.vulspy.com/2017/11/09/Wordpress-4-8-2-SQL-Injection-POC/
Related Vulnerabilities
MySQL CVE-2022-21331 Vulnerability (CVE-2022-21331)
MySQL CVE-2014-2450 Vulnerability (CVE-2014-2450)
Apache HTTP Server CVE-2002-0839 Vulnerability (CVE-2002-0839)
Grafana Authentication Bypass by Spoofing Vulnerability (CVE-2023-3128)
WordPress Plugin Photoswipe Masonry Gallery Unspecified Vulnerability (1.2.17)