CVE-2023-25158: Unfiltered SQL Injection in Geotools

Published Feb 21, 2023
·
Updated

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 are advised to upgrade to either version 27.4 or to 28.2 to resolve this issue. Users unable to upgrade may disable encode functions for PostGIS DataStores or enable prepared statements for JDBCDataStores as a partial mitigation.

Affected Software

5 affected components
GeoTools GeoTools<24.7
GeoTools GeoTools>=25.0<25.7
GeoTools GeoTools>=26.0<26.7
GeoTools GeoTools>=27.0<27.4
GeoTools GeoTools>=28.0<28.2

Event History

Feb 21, 2023
CVE Published
via MITRE·08:57 PM
Data Sourced
via MITRE·08:57 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-25158?

CVE-2023-25158 is classified as a medium severity SQL Injection vulnerability.

2

How do I fix CVE-2023-25158?

To fix CVE-2023-25158, upgrade GeoTools to a version equal to or greater than 24.7 or to a version that does not exhibit the vulnerability.

3

Which versions of GeoTools are affected by CVE-2023-25158?

CVE-2023-25158 affects GeoTools versions prior to 24.7 and versions from 25.0 up to 25.7, 26.0 up to 26.7, 27.0 up to 27.4, and 28.0 up to 28.2.

4

What impact does CVE-2023-25158 have on applications?

CVE-2023-25158 could allow an attacker to execute arbitrary SQL commands, leading to potential data leaks or unauthorized data manipulation.

5

Is CVE-2023-25158 being actively exploited?

As of now, there is no public information indicating that CVE-2023-25158 is actively being exploited in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203