Vulnerability Details : CVE-2020-7981
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.
Vulnerability category: Sql Injection
Products affected by CVE-2020-7981
- cpe:2.3:a:rubygeocoder:geocoder:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2020-7981
0.17%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 54 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2020-7981
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST |
CWE ids for CVE-2020-7981
-
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.Assigned by: nvd@nist.gov (Primary)
References for CVE-2020-7981
-
https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613
Sanitize lat/lon for SQL query. · alexreisner/geocoder@dcdc3d8 · GitHubPatch;Third Party Advisory
-
https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1
Comparing v1.6.0...v1.6.1 · alexreisner/geocoder · GitHubRelease Notes;Third Party Advisory
Jump to