GEO my WP <= 4.5.4 - Unauthenticated SQL Injection via 'distance' / 'lat' / 'lng' Parameters

9.1
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE CVE-2026-15300
CVSS 9.1 (Critical)
Publicly Published May 27, 2026
Last Updated July 10, 2026

Description

The GEO my WP plugin for WordPress was vulnerable to SQL Injection via the 'distance', 'lat', and 'lng' parameters in versions up to, and including, 4.5.4. The values were read from $_SERVER['QUERY_STRING'] via parse_str() (bypassing wp_magic_quotes, which does not cover $_SERVER), then passed through bare esc_sql() before being interpolated into unquoted numeric positions in the proximity-search query (HAVING/SELECT clause distance math, BETWEEN bounding-box pre-filter) built by gmw_locations_query() in plugins/posts-locator/includes/class-gmw-wp-query.php. Because esc_sql() only escapes string delimiters and these positions are numeric, payloads such as `1 OR SLEEP(3)` survived sanitization. Fixed in 4.5.5 by adding an upstream is_numeric() guard that short-circuits the WHERE clause to `AND 1 = 0` when either coordinate is non-numeric, and by replacing the three esc_sql() calls with (float) casts.

Learn more about SQL Injection vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for GEO my WP

Software Type Plugin
Software Slug geo-my-wp (view on wordpress.org)
Patched? Yes
Remediation Update to version 4.5.5, or a newer patched version
Affected Version
  • <= 4.5.4
Patched Version
  • 4.5.5

Recent vulnerabilities in GEO my WP

# Title CVE ID CVSS Researchers Date
1 GEO my WP <= 4.5.5 - Unauthenticated SQL Injection CVE-2026-52715 7.5 Alvaro Diaz (alvarodh5) June 15, 2026
2 GEO my WP <= 4.5.5 - Unauthenticated SQL Injection via 'swlatlng' / 'nelatlng' Parameters CVE-2026-9757 7.5 Naoya Takahashi (nakko) May 29, 2026
3 GEO my WP <= 4.5.4 - Unauthenticated SQL Injection 7.5 May 28, 2026
4 GEO my WordPress <= 4.5.0.4 - Missing Authorization via get_field_options_ajax CVE-2024-54326 5.4 Trương Hữu Phúc (truonghuuphuc) December 11, 2024
5 GEO My WordPress <= 4.4.0.2 - Authenticated (Admin+) Arbitrary File Upload CVE-2024-9422 7.2 Michael Dyrna October 31, 2024
6 GEO my WordPress <= 4.5.0.3 - Reflected Cross-Site Scripting CVE-2024-47327 6.1 Le Ngoc Anh September 25, 2024
7 GEO my WordPress <= 4.5.0.1 - Unauthenticated Local File Inclusion CVE-2024-6330 9.8 Michael Dyrna July 29, 2024
8 GEO my WordPress <= 4.1 - Cross-Site Request Forgery CVE-2024-32097 4.3 thiennv April 11, 2024
9 GEO my WordPress <= 4.0.2 - Authenticated(Administrator+) SQL Injection CVE-2023-52134 6.6 Muhammad Daffa December 28, 2023
10 GEO my WordPress <= 4.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode CVE-2023-5467 6.4 István Márton October 9, 2023

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation