SQL injection in geotools - CVE-2023-25158

 

SQL injection in geotools - CVE-2023-25158

Published: February 21, 2023 / Updated: August 15, 2026


Vulnerability identifier: #VU142658
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-25158
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary SQL commands.

The vulnerability exists due to SQL injection in the OGC Filter handling in org.geotools.jdbc when processing user-supplied filter input. A remote attacker can send a specially crafted filter expression to execute arbitrary SQL commands.


Affected software

geotools

How to mitigate CVE-2023-25158

Install security update from vendor's website.

geotools - addressed in versions 24.7, 25.7, 26.7, 27.4, 28.2

External References

Related Security Bulletins