CVE-2020-7981
CRITICAL 9.8CVSS 3.1SQL Injection in Geocoder
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.
- Published
- 25 Jan 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-864j-6qpp-cmrr
- Sources
- NVDJSONOSV GHSA-864j-6qpp-cmrrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubygeocoder | geocodercpe:2.3:a:rubygeocoder:geocoder:*:*:*:*:*:*:*:* |
< 1.6.1 | 1.6.1 |
| OSV | RubyGems | geocoder | < 1.6.1 | 1.6.1 |
References
- https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613 · Patch, Third Party Advisory, WEB
- https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1 · Release Notes, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7981 · ADVISORY
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7981 · WEB
- https://github.com/alexreisner/geocoder · PACKAGE
- https://github.com/alexreisner/geocoder/blob/master/CHANGELOG.md#161-2020-jan-23 · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/geocoder/CVE-2020-7981.yml · WEB
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 25 Jan 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Jun 2020)