Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. geocoder
  4. ›
  5. CVE-2020-7981

CVE-2020-7981: SQL Injection

January 25, 2020 (updated January 27, 2020)

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.

References

  • nvd.nist.gov/vuln/detail/CVE-2020-7981

Code Behaviors & Features

Detect and mitigate CVE-2020-7981 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.6.1

Fixed versions

  • 1.6.1

Solution

Upgrade to version 1.6.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

gem/geocoder/CVE-2020-7981.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:30 +0000.