Skip to main content

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')


Severity High
Score 9.8/10


GeoTools is an open-source Java library that provides tools for geospatial data. GeoTools includes support for OGC Filter expression language parsing, encoding, and execution against a range of datastore. SQL Injection Vulnerabilities have been found when executing "OGC" Filters with "JDBCDataStore" implementations. Users unable to upgrade may disable "encode functions" for PostGIS DataStores or enable "prepared statements" for JDBCDataStores as partial mitigation. This vulnerability affects versions prior to 24.7, 25.x prior to 25.7, 26.x prior to 26.7, 27.x prior to 27.4, and 28.x prior to 28.2.

  • LOW
  • HIGH
  • NONE
  • NONE
  • HIGH
  • HIGH

CWE-89 - SQL Injection

Structured Query Language (SQL) injection attacks are one of the most common types of vulnerabilities. They exploit weaknesses in vulnerable applications to gain unauthorized access to backend databases. This often occurs when an attacker enters unexpected SQL syntax in an input field. The resulting SQL statement behaves in the background in an unintended manner, which allows the possibility of unauthorized data retrieval, data modification, execution of database administration operations, and execution of commands on the operating system.


Advisory Timeline

  • Published