SQL Injection Affecting ruby-geocoder package, versions <1.5.1-3


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.48% (71st 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 IDSNYK-DEBIAN14-RUBYGEOCODER-11767221
  • published10 Aug 2025
  • disclosed25 Jan 2020

Introduced: 25 Jan 2020

CVE-2020-7981  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade Debian:14 ruby-geocoder to version 1.5.1-3 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-geocoder package and not the ruby-geocoder package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

sql.rb in Geocoder before 1.6.1 allows Boolean-based SQL injection when within_bounding_box is used in conjunction with untrusted sw_lat, sw_lng, ne_lat, or ne_lng data.

CVSS Base Scores

version 3.1