CVE-2026-76904: Why the PostGIS Database Role Determines the Damage
CVE-2026-76904 is a GeoServer vulnerability with a database blast radius. The injection occurs in a GeoTools PostGIS filter path, so the privileges of the account behind that connection decide which SQL operations succeed. Two vulnerable GeoServer hosts can have very different consequences if one uses a restricted publishing role and the other runs as a database superuser.
The defect in brief
The jsonArrayContains implementation writes an externally influenced value into generated SQL without escaping it. WFS GetFeature and WMS GetMap can carry OGC filters that invoke the function. GeoServer advisories identify PostGIS 12 or later and a String or JSON field as prerequisites.
The GeoTools advisory assigns CVSS 3.1 a score of 9.8, while the GeoServer record lists 9.1. Both describe a Critical network-reachable flaw with low complexity, no privileges, and no user interaction. The difference in score does not change the upgrade decision.
What the connection role controls
Every SQL expression executes under the role named in the GeoServer data-store configuration. A role limited to selecting and updating specific GeoServer tables can still be abused to read or change those tables. That is a meaningful confidentiality and integrity loss.
Broader grants expand the outcome. A role that can inspect system catalogs may learn about other schemas. A role with write access to application tables may alter records outside the map service. A role that can execute administrative or file-reading functions may cross the boundary from database access toward host compromise.
The GeoServer advisory calls out pg_read_file and warns about a superuser account such as the default postgres/postgres shown in some PostGIS container setups. RCE is therefore a privilege-dependent outcome, not a guaranteed result of every injection.
Where data-store defaults enter the risk
A development convention can become a production problem when it is copied unchanged. A connection that uses a cluster administrator can simplify setup, but it also hands that power to every query path in the application. The same is true for broad schema ownership and function execution grants.
This issue gives defenders a reason to compare the configured GeoServer role with the least access the service actually needs. The review should map permissions for tables, sequences, functions, and file-related operations. It should also check whether the role differs between development, staging, and production.
Affected GeoServer and GeoTools releases
GeoServer 3.0.0 is affected. In the 2.28 line, versions before 2.28.5 are affected. The advisory also covers versions later than 2.23.5 and earlier than 2.27.6. Fixed GeoServer releases are 3.0.1, 2.28.5, and 2.27.6.
Custom applications that use GeoTools directly need a separate dependency check. Fixed PostGIS components include GeoTools 35.1, 34.5, and 33.6 for their corresponding branches.
Exposure without overclaiming
The existing ZoomEye evidence for this topic records 58,835 matches for app="GeoServer" and zero matches for vul.cve="CVE-2026-76904" on November 25, 2026. These figures identify a broad visible product population. They do not establish the version, layer type, database role, or exploitability of any matching host.
Use the product query to build a review queue. Use administrative inventory and database inspection to answer the questions the internet-wide count cannot answer.
Reducing the blast radius
Create or select a dedicated PostGIS role for GeoServer. Grant only the schemas and operations required by the published layers. Remove superuser status, broad schema ownership, pg_read_file, and unnecessary execute privileges. Use separate roles for different applications or tenants when that separation matches the deployment model.
Restrict network paths to the database and to the GeoServer management interfaces. Limit WFS and WMS exposure until the upgrade is complete. Log the database account used by each data store.
Patch and verification
Upgrade GeoServer to at least 3.0.1, 2.28.5, or 2.27.6, or a later supported release from the chosen branch. For custom GeoTools deployments, replace the vulnerable PostGIS JDBC dependency.
After the change, verify the installed build, the loaded GeoTools version, the connection role, and a representative filtered request. Confirm that the role still provides the access the service needs after unnecessary grants are removed. The software fix removes the injection path. Least privilege limits the damage from any future query flaw as well.
Top comments (0)