CVE-2026-9848

The WP Ticket plugin for WordPress is vulnerable to SQL Injection via the WordPress search query parameter (`s`) in versions up to, and including, 6.0.4 The plugin hooks WordPress's `posts_request` filter with `wp_ticket_com_posts_request()`, which calls `emd_author_search_results()` when the current request is an unauthenticated front-end search. That function reads `$query->query_vars['s']` — already wp_unslash()'d by `WP_Query::parse_query()`, so wp_magic_quotes protection has been stripped — and concatenates the raw value into a SQL `LIKE` clause inside a UNION sub-SELECT appended to the main query, with no `$wpdb->prepare()` or escaping. This makes it possible for unauthenticated attackers to append additional SQL queries into already-existing queries that can be used to extract sensitive information from the database.
Configurations

No configuration.

History

21 Jul 2026, 19:10

Type Values Removed Values Added
Summary
  • (es) El plugin WP Ticket para WordPress es vulnerable a inyección SQL a través del parámetro de consulta de búsqueda de WordPress ('s') en versiones hasta la 6.0.4, inclusive. El plugin engancha el filtro 'posts_request' de WordPress con wp_ticket_com_posts_request(), que llama a emd_author_search_results() cuando la solicitud actual es una búsqueda de front-end no autenticada. Esa función lee $query->query_vars['s'] - ya 'wp_unslash()'d por WP_Query::parse_query(), por lo que la protección 'wp_magic_quotes' ha sido eliminada - y concatena el valor sin procesar en una cláusula SQL 'LIKE' dentro de un sub-SELECT UNION adjunto a la consulta principal, sin $wpdb->prepare() ni escape. Esto hace posible que atacantes no autenticados añadan consultas SQL adicionales a consultas ya existentes que pueden ser utilizadas para extraer información sensible de la base de datos.

13 Jun 2026, 03:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-06-13 03:16

Updated : 2026-07-21 19:10


NVD link : CVE-2026-9848

Mitre link : CVE-2026-9848

CVE.ORG link : CVE-2026-9848


JSON object : View

Products Affected

No product.

CWE
CWE-89

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')