CVE-2026-136488 in GeoDirectory Plugin
Summary
by MITRE • 11/26/2026
The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to generic SQL Injection via the 'stype' parameter in all versions up to, and including, 2.8.208 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. 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. This is possible because the plugin's mu-plugin companion (copied automatically on install when the default 'Enable Fast AJAX' option is on) defines DOING_AJAX on any front-end request carrying gd-ajax=1, and an unconditional branch in geodir_get_current_posttype() restores the attacker-controlled stype value after the allow-list check clears it, allowing the tainted value to reach the SQL sink without any preparation.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
The GeoDirectory plugin for WordPress, a widely used solution for creating business directories and classified listings, contains a critical security flaw affecting all versions up through 2.8.208. This vulnerability manifests as an unauthenticated generic SQL injection via the stype parameter within AJAX requests. The root cause lies in insufficient input validation and sanitization mechanisms that fail to properly escape user-supplied data before it is incorporated into database queries. Because this flaw exists in a component accessible without authentication, any remote attacker can exploit it to manipulate backend database operations, potentially leading to unauthorized access of sensitive information such as user credentials, personal data, or administrative configurations stored within the WordPress database.
The technical mechanism behind this exploitation relies on specific behaviors within the plugin's architecture, particularly involving its mu-plugin companion which is automatically installed when the default Enable Fast AJAX option is enabled. This configuration causes the DOING_AJAX constant to be defined for any front-end request that includes the gd-ajax=1 parameter in its query string or post data. Within this context, the function geodir_get_current_posttype() performs an allow-list check on the stype parameter intended to restrict input to valid values. However, a logical flaw exists wherein the code unconditionally restores the original attacker-controlled value of stype after the validation step clears it if invalid. This design error effectively bypasses the security control, allowing tainted data to reach the SQL sink without any preparation or escaping applied by WordPress's standard database abstraction layer.
From an operational perspective, this vulnerability allows for significant impact on the integrity and confidentiality of the targeted website. An unauthenticated attacker can append arbitrary SQL commands to existing queries, facilitating techniques such as extracting sensitive information from other tables, modifying data, or potentially achieving remote code execution depending on the specific database configuration and privileges granted to the WordPress application user. This aligns with Common Weakness Enumeration CWE-89 Improper Neutralization of Special Elements used in an SQL Command, highlighting a failure to neutralize special elements that could alter the intent of a command. The exploitation vector is classified under MITRE ATT&CK technique T1059 Command and Scripting Interpreter via database commands, as it allows indirect execution through the database interface rather than direct shell access initially.
Mitigation strategies for this vulnerability involve immediate action to update the GeoDirectory plugin to version 2.8.209 or later where these issues have been addressed by properly sanitizing inputs before they reach SQL queries and correcting the logic in geodir_get_current_posttype() to ensure validated values are used rather than restored originals. For sites unable to patch immediately, administrators should consider disabling the Enable Fast AJAX option if not strictly necessary, thereby preventing the DOING_AJAX condition from triggering for standard requests. Additionally implementing a Web Application Firewall can help detect and block SQL injection patterns targeting the stype parameter in gd-ajax requests. Regular security audits and adherence to secure coding practices that emphasize input validation at multiple layers are essential to prevent similar flaws in future updates or related plugins within the WordPress ecosystem.