{"id":"UBUNTU-CVE-2017-16510","details":"WordPress before 4.8.3 is affected by an issue where $wpdb-\u003eprepare() can create unexpected and unsafe queries leading to potential SQL injection (SQLi) in plugins and themes, as demonstrated by a \"double prepare\" approach, a different vulnerability than CVE-2017-14723.","modified":"2025-10-24T04:46:34Z","published":"2017-11-02T16:29:00Z","upstream":["CVE-2017-16510"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-16510"},{"type":"REPORT","url":"https://wpvulndb.com/vulnerabilities/8941"},{"type":"REPORT","url":"https://github.com/WordPress/WordPress/commit/a2693fd8602e3263b5925b9d799ddd577202167d"},{"type":"REPORT","url":"https://blog.ircmaxell.com/2017/10/disclosure-wordpress-wpdb-sql-injection-technical.html"},{"type":"REPORT","url":"https://codex.wordpress.org/Version_4.8.3"},{"type":"REPORT","url":"https://wordpress.org/news/2017/10/wordpress-4-8-3-security-release/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-16510"}],"affected":[{"package":{"name":"wordpress","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/wordpress@4.4.2+dfsg-1ubuntu1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3+dfsg-1","4.3.1+dfsg-1","4.4+dfsg-1","4.4.1+dfsg-1","4.4.2+dfsg-1","4.4.2+dfsg-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"wordpress","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_name":"wordpress-l10n","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_name":"wordpress-theme-twentyfifteen","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_name":"wordpress-theme-twentyfourteen","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_version":"4.4.2+dfsg-1ubuntu1","binary_name":"wordpress-theme-twentysixteen"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-16510.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}