SQL Injection Affecting geocoder package, versions <1.6.1
Snyk CVSS
Attack Complexity
Low
Threat Intelligence
EPSS
0.17% (55th
percentile)
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
Introduced: 22 Jan 2020
CVE-2020-7981 Open this link in a new tabHow 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.