{"id":"CVE-2020-7981","aliases":["CVE-2020-7981","GHSA-864j-6qpp-cmrr"],"related":[],"kind":"vulnerability","state":"published","title":"SQL Injection in Geocoder","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El archivo sql.rb en Geocoder versiones anteriores a 1.6.1, permite una inyección de SQL basada en Boolean cuando within_bounding_box se usa junto con datos no confiables sw_lat, sw_lng, ne_lat o ne_lng.","source":"nvd"}],"published":"2020-01-25T19:18:35.000Z","modified":"2026-06-17T03:25:44.110Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.1"}],"ecosystem":"RubyGems","package":"geocoder","purl":"pkg:gem/geocoder","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.6.1"}],"vendor":"rubygeocoder","product":"geocoder","cpe":"cpe:2.3:a:rubygeocoder:geocoder:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7981","tags":["advisory"],"sources":["ghsa"]},{"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7981","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/alexreisner/geocoder","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/alexreisner/geocoder/blob/master/CHANGELOG.md#161-2020-jan-23","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/geocoder/CVE-2020-7981.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-7981","url":"https://www.cve.org/CVERecord?id=CVE-2020-7981","licence":"CVE Terms of Use","modified":"2024-08-04T09:48:24.934Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-864j-6qpp-cmrr","url":"https://github.com/advisories/GHSA-864j-6qpp-cmrr","licence":"CC-BY-4.0","modified":"2024-02-16T08:10:34.444Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-7981","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7981","licence":"Public domain","modified":"2026-06-17T03:25:44.110Z"}],"updatedAt":"2026-11-25T22:57:50.673Z","epss":{"score":0.01484,"percentile":0.74733,"date":"2026-12-01T12:00:22.000Z"}}