{"id":"CVE-2020-7981","published":"2020-01-25T19:18:35Z","modified":"2024-08-04T09:48:24Z","title":"sql.rb in Geocoder before 1.6.1 allows Boolean-based SQL injection when within_bounding_box is used in conjunction…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01484,"percentile":0.74613,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613","tags":["x_refsource_MISC"]},{"url":"https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":14.92}]},"affected":[{"ecosystem":"RubyGems","package":"geocoder","vulnerableRanges":["<1.6.1"],"patched":["1.6.1"],"from":["GHSA-864j-6qpp-cmrr"],"provenance":"source"}],"summary":{"text":"The flaw is a Boolean-based SQL injection in sql.rb, a component of the Geocoder library, affecting versions before 1.6.1. It is triggered when the within_bounding_box method is used with untrusted input supplied as the sw_lat, sw_lng, ne_lat, or ne_lng values. An attacker who can supply those bounding-box coordinates to an application using the affected code can inject SQL and infer database contents from true/false responses.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:23Z"},"euvd":{"id":"EUVD-2020-0472","exploited":false,"provenance":"source"}}