CVE-2020-7981: Geocoder - SQL Injection
- Cve: CVE-2020-7981
- Name: Geocoder - SQL Injection
- 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.
- Impact: Attackers can execute arbitrary SQL commands, potentially leading to data leakage, modification, or deletion.
- Remediation: Update to version 1.6.1 or later.
- Vulnerability type: sql_injection
- Vulnerability impact: information_disclosure, data_tampering
- Requirement type: user_interaction
- Requirements: Attacker needs to supply malicious bounding box coordinates
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01484
- Epss percentile: 0.7465
- Assignee: [email protected]
- Published at: 2020-01-25T20:15:09Z
- Age in days: 2495
- Modified at: 2026-06-17T03:25:44Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-7981
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
Hackerone
- Reports: 2
- Rank: 3806
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613 | nvd | Patch, Third Party Advisory |
| https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1 | nvd | Release Notes, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| rubygeocoder:geocoder | < 1.6.1 | no | nvd | /v1/products/rubygeocoder/geocoder |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| alexreisner/geocoder | commit, compare, package | yes | /v1/repositories/alexreisner/geocoder |
Index
- Repositories: 1
- Packages: 1
- Checked, none or zero: repositories high signal
Exploitation
- Remote: yes
- Hackerone reports: 2
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts