{"id":26815,"date":"2026-09-19T16:31:50","date_gmt":"2026-09-19T08:31:50","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-6295"},"modified":"2026-09-19T16:31:50","modified_gmt":"2026-09-19T08:31:50","slug":"cve-2026-6295","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-6295","title":{"rendered":"CVE-2026-6295 [MEDIUM] &#8211; The WP Optimizer plugin for WordPress is vulnerable to SQL Injection via the &#8216;s&#8217; parameter"},"content":{"rendered":"<p>The WP Optimizer plugin for WordPress is vulnerable to SQL Injection via the &#8216;s&#8217; parameter in all versions up to and including 2.5.0. This is due to an unsafe subquery-detection branch in the Query::parse_key_compare_field() method that, when the user-supplied value matches the regex ^[(s]*SELECTs+, wraps the value in parentheses and embeds it directly into the SQL string without any escaping or quoting. While the normal LIKE code path correctly uses esc_sql($wpdb-&gt;esc_like(&#8230;)) and wraps the value in single quotes, this branch completely bypasses those protections. Because the attack payload (SELECT &#8230;) contains no single quotes, WordPress&#8217;s wp_magic_quotes() provides no protection. This makes it possible for authenticated attackers with administrator-level access to inject arbitrary SQL subqueries \u2014 including time-based blind payloads \u2014 that can be used to extract sensitive information from the database.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The WP Optimizer plugin for WordPress is vulnerable to SQL Injection via the &#8216;s&#8217; parameter in all versions up to and including 2.5.0. This is due to an unsafe subquery-detection branch in the Query::p<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-26815","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/26815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}