Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ruby-geocoder | 1.5.1-3 | — |
| Debian 13 | ruby-geocoder | 1.5.1-3 | — |
| Debian 12 | ruby-geocoder | 1.5.1-3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | geocoder | < 1.6.1 | 1.6.1 | GHSA-864j-6qpp-cmrr |