GSD-2020-7981
Vulnerability from gsd - Updated: 2020-01-25 00:00Details
sql.rb in Geocoder 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.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2020-7981",
"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.",
"id": "GSD-2020-7981"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "geocoder",
"purl": "pkg:gem/geocoder"
}
}
],
"aliases": [
"CVE-2020-7981",
"GHSA-864j-6qpp-cmrr"
],
"details": "sql.rb in Geocoder allows Boolean-based SQL injection when within_bounding_box\nis used in conjunction with untrusted sw_lat, sw_lng, ne_lat, or ne_lng data.\n",
"id": "GSD-2020-7981",
"modified": "2020-01-25T00:00:00.000Z",
"published": "2020-01-25T00:00:00.000Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/alexreisner/geocoder/blob/master/CHANGELOG.md#161-2020-jan-23"
},
{
"type": "WEB",
"url": "https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1"
},
{
"type": "WEB",
"url": "https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": 7.5,
"type": "CVSS_V2"
},
{
"score": 9.8,
"type": "CVSS_V3"
}
],
"summary": "Geocoder gem for Ruby contains possible SQL injection vulnerability"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2020-7981",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "n/a",
"version": {
"version_data": [
{
"version_value": "n/a"
}
]
}
}
]
},
"vendor_name": "n/a"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "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."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "n/a"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613",
"refsource": "MISC",
"url": "https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613"
},
{
"name": "https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1",
"refsource": "MISC",
"url": "https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1"
}
]
}
},
"github.com/rubysec/ruby-advisory-db": {
"cve": "2020-7981",
"cvss_v2": 7.5,
"cvss_v3": 9.8,
"date": "2020-01-25",
"description": "sql.rb in Geocoder allows Boolean-based SQL injection when within_bounding_box\nis used in conjunction with untrusted sw_lat, sw_lng, ne_lat, or ne_lng data.\n",
"gem": "geocoder",
"ghsa": "864j-6qpp-cmrr",
"patched_versions": [
"\u003e= 1.6.1"
],
"related": {
"url": [
"https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1",
"https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613"
]
},
"title": "Geocoder gem for Ruby contains possible SQL injection vulnerability",
"url": "https://github.com/alexreisner/geocoder/blob/master/CHANGELOG.md#161-2020-jan-23"
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c1.6.1",
"affected_versions": "All versions before 1.6.1",
"cvss_v2": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-89",
"CWE-937"
],
"date": "2020-01-27",
"description": "`sql.rb` in Geocoder 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.",
"fixed_versions": [
"1.6.1"
],
"identifier": "CVE-2020-7981",
"identifiers": [
"CVE-2020-7981"
],
"not_impacted": "All versions starting from 1.6.1",
"package_slug": "gem/geocoder",
"pubdate": "2020-01-25",
"solution": "Upgrade to version 1.6.1 or above.",
"title": "SQL Injection",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2020-7981"
],
"uuid": "9f05e825-13ba-4abd-98e6-aea920c762c8"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:rubygeocoder:geocoder:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndExcluding": "1.6.1",
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2020-7981"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "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."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-89"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613",
"refsource": "MISC",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613"
},
{
"name": "https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1",
"refsource": "MISC",
"tags": [
"Release Notes",
"Third Party Advisory"
],
"url": "https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1"
}
]
}
},
"impact": {
"baseMetricV2": {
"acInsufInfo": false,
"cvssV2": {
"accessComplexity": "LOW",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "PARTIAL",
"baseScore": 7.5,
"confidentialityImpact": "PARTIAL",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
"version": "2.0"
},
"exploitabilityScore": 10.0,
"impactScore": 6.4,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"severity": "HIGH",
"userInteractionRequired": false
},
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 9.8,
"baseSeverity": "CRITICAL",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 3.9,
"impactScore": 5.9
}
},
"lastModifiedDate": "2020-01-27T18:59Z",
"publishedDate": "2020-01-25T20:15Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…