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 4.2.x ranging from 4.2 and up to (and including) 4.2.16 are vulnerable.
Remediation
Update to WordPress version 4.2.17 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
Apache HTTP Server Other Vulnerability (CVE-2004-0113)
Apache Tomcat 7PK - Errors Vulnerability (CVE-2016-8745)
WordPress Plugin Advanced Forms for ACF Security Bypass (1.6.8)
Drupal Improper Input Validation Vulnerability (CVE-2022-25273)
MediaWiki Resource Management Errors Vulnerability (CVE-2015-8002)