Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-7981
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:30 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-7981
Complete source record
{
"id": "5b021112e16f53aebb76c5591f82a3f32148e6a45a96621c21390e7b22f5f188",
"url": "https://osv.dev/vulnerability/CVE-2020-7981",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-7981",
"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.",
"evidence": "osv:CVE-2020-7981",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2020-7981",
"aliases": [
"CVE-2020-7981",
"GHSA-864j-6qpp-cmrr"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/alexreisner/geocoder",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "dfba0ceb86731c1e58ea963d0a6dca3b15c87580"
},
{
"fixed": "dcdc3d8675411edce3965941a2ca7c441ca48613"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:rubygeocoder:geocoder:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.6.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "dcdc3d8675411edce3965941a2ca7c441ca48613"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.6.0",
"v.1.5.2",
"v1.5.1",
"v1.5.0",
"v1.4.9",
"v1.4.8",
"v1.4.7",
"v1.4.6",
"v1.4.5",
"v1.4.4",
"v1.4.3",
"v1.4.2",
"v1.4.1",
"v1.4.0",
"v1.3.7",
"v1.3.6",
"v1.3.5",
"v1.3.4",
"v1.3.3",
"v1.3.2",
"v1.3.1",
"v1.3.0",
"v1.2.14",
"v1.2.13",
"v1.2.12",
"v1.2.11",
"v1.2.10",
"v1.2.9",
"v1.2.8",
"v1.2.7",
"v1.2.6",
"v1.2.5",
"v1.2.4",
"v1.2.3",
"v1.2.2",
"v1.2.1",
"v1.2.0",
"v1.1.9",
"1.1.8",
"1.1.7",
"1.1.1",
"1.1.0",
"1.0.5",
"1.0.4",
"1.0.3",
"1.0.2",
"1.0.1",
"1.0.0",
"0.9.13",
"0.9.12",
"0.9.11",
"0.9.10",
"0.9.9",
"0.9.8",
"0.9.7",
"0.9.6",
"0.9.5",
"0.9.4",
"0.9.3",
"0.9.2",
"0.9.1",
"0.9.0",
"0.8.9",
"0.8.8",
"0.8.7",
"0.8.6",
"0.8.5",
"0.8.4",
"0.8.3",
"0.8.2",
"0.8.1",
"0.8.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7981.json"
}
}
],
"modified": "2026-10-20T10:54:25.021099355Z",
"provider": "osv",
"references": [
"https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1",
"https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-7981",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385326,
"published_at": "2020-01-25T20:15:09.813+00:00"
}