S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
critical·Product Based Web Vulnerabilities·Updated Aug 30, 2026

CVE-2023-25157 Scanner

CVE-2023-25157 Scanner - SQL Injection vulnerability in GeoServer

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, subdomain, ipv4
CostFree
3
Times Used
continuous scan runs
5.8k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2026-76904
9.8
CVSScritical
Exploitable remotely over the internet · no authentication required.

GeoTools is an open source Java library that provides tools for geospatial data. Starting in version 30.5 and prior to versions 33.6, 34.5, and 33.6, an SQL Injection Vulnerability is present when executing OGC Filters with PostGIS DataStore implementation: `jsonArrayContains` function; Requires PostGIS 12 or greater with a String or JSON field. For PostGIS 12 and greater `jsonArrayContains(<column>, <pointer>, <value>)` function writes `<value>` into generated SQL without escaping. Patches are available in versions 33.6, 34.5, and 33.6. No known workaround is available. To limit scope of SQL Injection the PostGIS connection pool should be configured with limited rights.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
geotoolsby geotools
= 35.0
Updated Aug 27, 2026View on NVD →
Detail

GeoServer is a widely used open-source software server developed in Java. It enables organizations to share and edit geospatial data efficiently. This software is employed by various governmental, research, and environmental agencies to manage spatial data. Users can access geospatial data through a web-based service, allowing for greater dissemination of geographic information. The software supports various data formats and enables the integration of maps from multiple sources. As it is open-source, GeoServer benefits from community contributions, enhancing its features continuously.

SQL Injection is a critical vulnerability that allows attackers to execute arbitrary SQL code on a database. A specific function, jsonArrayContains(), within GeoServer's CQL filter was found to be susceptible to injection. Attackers can exploit this vulnerability without authentication to run unauthorized queries. If the GeoServer is connected to a PostGIS database through PostgreSQL, the attack can potentially escalate to executing operating system commands. This type of vulnerability often leads to unauthorized data access and can result in further exploitation when not addressed promptly.

The vulnerability resides in the FilterToSqlHelper.constructEquality method, which improperly constructs SQL queries. The function fails to sanitize inputs properly, especially within the PostgreSQL JSONB functionality. This lack of proper escaping allows the injection through specially crafted inputs. Specifically, an attacker can break out of the JSON path query string by manipulating single quotes within the value parameter, triggering SQL injection. Detection involves sending crafted requests to the server and analyzing responses for SQL errors or unexpectedly delayed responses due to induced database operations.

Exploiting this SQL Injection could lead to severe consequences, such as unauthorized data exfiltration or modification. When attackers gain database access, sensitive information can be compromised or manipulated, risking data integrity. In the worst-case scenario, if a PostGIS backend is run under superuser privileges, attackers might execute system commands via PostgreSQL, causing broader system compromise. Organizations using vulnerable versions are at significant risk if mitigation measures are not promptly deployed.

REFERENCES

Solution Advice
  • Upgrade GeoServer to version 2.21.4 or 2.22.2 or later.
  • Enable the PostGIS DataStore preparedStatements setting and disable encode functions to prevent SQL injection misuse.
  • Conduct regular security assessments to identify and address vulnerabilities.
  • Limit database privileges to minimize potential damage from injections.
  • Implement input validation to ensure only safe data is processed.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

CVE-2023-25157 Scanner - SQL Injection vulnerability in GeoServer | S4E