SQL Injection Affecting geocoder package, versions <1.6.1


0.0
high

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    EPSS 0.17% (55th percentile)
Expand this section
NVD
9.8 critical

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUBY-GEOCODER-543302
  • published 26 Jan 2020
  • disclosed 22 Jan 2020
  • credit Unknown

How to fix?

Upgrade geocoder to version 1.6.1 or higher.

Overview

geocoder is a package that provides object geocoding (by street or IP address), reverse geocoding (coordinates to street address), distance queries for ActiveRecord and Mongoid, result caching, and more.

Affected versions of this package are vulnerable to SQL Injection. sql.rb in Geocoder allows a Boolean-based SQL injection when within_bounding_box is used in conjunction with untrusted sw_lat, sw_lng, ne_lat, or ne_lng data.

References