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

Published Jul 10, 2026
·
Updated

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['QUERYSTRING'] via parsestr() (bypassing wpmagicquotes, which does not cover $SERVER), then passed through bare escsql() before being interpolated into unquoted numeric positions in the proximity-search query (HAVING/SELECT clause distance math, BETWEEN bounding-box pre-filter) built by gmwlocationsquery() in plugins/posts-locator/includes/class-gmw-wp-query.php. Because escsql() 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 isnumeric() guard that short-circuits the WHERE clause to AND 1 = 0 when either coordinate is non-numeric, and by replacing the three escsql() calls with (float) casts.

Affected Software

1 affected component
GEO my WP WordPress plugin "GEO my WP"<=4.5.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GEO my WP plugin for WordPress to a version that resolves this vulnerability.

    Fixed in 4.5.5
  2. Configuration

    Implement the upstream fix in class-gmw-wp-query.php: add an is_numeric() guard for the distance/lat/lng inputs so that when either coordinate is non-numeric the query uses short-circuit `AND 1 = 0`, and replace the three esc_sql() calls with `(float)` casts before interpolating into numeric SQL positions.

    GEO my WP plugin for WordPress (plugins/posts-locator/includes/class-gmw-wp-query.php) SQL injection guard for distance/lat/lng = If either coordinate is non-numeric, short-circuit WHERE clause to AND 1 = 0; replace three esc_sql() calls with (float) casts

Event History

Jul 10, 2026
CVE Published
via MITRE·04:31 AM
Data Sourced
via MITRE·04:31 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-15300?

CVE-2026-15300 has a severity rating of critical with a score of 9.1.

2

How do I fix CVE-2026-15300?

To fix CVE-2026-15300, update the GEO my WP plugin to version 4.5.5 or later.

3

What type of vulnerability is CVE-2026-15300?

CVE-2026-15300 is classified as an SQL Injection vulnerability.

4

Which parameters are affected by CVE-2026-15300?

CVE-2026-15300 affects the 'distance', 'lat', and 'lng' parameters in the GEO my WP plugin.

5

What is the impact of CVE-2026-15300?

CVE-2026-15300 can allow unauthenticated attackers to perform SQL Injection, potentially compromising the database.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203