{"id":"UBUNTU-CVE-2020-7981","details":"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.","modified":"2025-07-17T16:55:26Z","published":"2020-01-25T20:15:00Z","withdrawn":"2025-07-18T16:45:44Z","upstream":["CVE-2020-7981"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-7981"},{"type":"REPORT","url":"https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613"},{"type":"REPORT","url":"https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-7981"}],"affected":[{"package":{"name":"ruby-geocoder","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-geocoder@1.5.1-3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.1-3"}]}],"versions":["1.5.1-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"ruby-geocoder","binary_version":"1.5.1-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7981.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}