A Defender Checklist for CVE-2026-76904 in GeoServer and GeoTools

CVE-2026-76904 is a critical SQL injection in the PostGIS path used by GeoServer. The official records identify the vulnerable function, affected releases, fixed versions, and the data-store conditions that matter. A useful response turns those facts into an inventory and verification routine rather than a single version check.

1. Inventory the application

Find every GeoServer deployment and every custom application that embeds GeoTools. Record the GeoServer version, Java runtime, extensions, deployment format, and the GeoTools libraries actually present. Old libraries can remain in a WAR, an extension directory, or a container layer after a package upgrade.

Mark deployments that expose WFS or WMS to an untrusted network. Include services behind gateways and application load balancers, because the network topology can change without the application inventory being updated.

2. Compare with the affected ranges

The GeoServer advisory covers 3.0.0, 2.28.0 through 2.28.4, and versions later than 2.23.5 and earlier than 2.27.6. Fixed releases are 3.0.1, 2.28.5, and 2.27.6. Custom GeoTools deployments need the PostGIS component from 35.1, 34.5, or 33.6 according to their branch.

Treat the fixed releases as a minimum. If a later supported release has passed compatibility testing, use it. Removing or replacing a single JAR without testing the full application is not equivalent to a vendor release.

3. Inspect PostGIS layers

List every PostGIS 12 or later data store. Identify layers with String or JSON fields. For each one, determine whether a WFS or WMS request can invoke jsonArrayContains through CQL_FILTER or an XML filter.

Record the database role used by the connection pool. Identify superuser status, schema ownership, function execution, and file-related capabilities. The advisory warns that pg_read_file and administrative rights can turn SQL execution into host-level compromise.

4. Reduce the blast radius now

Remove rights the GeoServer role does not need. Use a dedicated role with access limited to the published schemas and required operations. Move administrative database work to a separate account.

Restrict network paths to GeoServer and PostGIS. Close unused OGC endpoints and management interfaces. If the service must remain available before the patch, place it behind controls that reject untrusted filter requests, and document the exception.

5. Patch the code path

Upgrade to at least 3.0.1, 2.28.5, or 2.27.6. For custom software, replace the vulnerable GeoTools PostGIS component with the fixed branch. Rebuild the application rather than copying a new library into an otherwise unverified package.

Do not treat a network rule as the software fix. The GeoTools advisory provides no complete mitigation that leaves the vulnerable SQL construction in place. The fixed dependency is the durable correction.

6. Add detection where it changes a decision

Review WFS and WMS request logs for unexpected filter parameters, repeated errors, and unusual access to PostGIS layers. Review the database for unexpected query activity, schema changes, or function use near the period when the service was reachable.

Detection is limited by what the deployment logs. A service that records only the endpoint and status code may not show the filter expression. Preserve the evidence that exists, and record that absence as a visibility limit rather than a clean result.

7. Validate the fixed state

Confirm the running build and the loaded GeoTools package. Verify the database role and grants. Send a legitimate filter request against a representative layer in a controlled test and check the expected response.

Confirm that the chosen target release is supported for the role it plays. The 2.27.6 release fixed the vulnerability for an end-of-life line and was intended as an urgent mitigation, with an upgrade to a supported line still advisable.

8. Record the exposure context

The ZoomEye search for app="GeoServer" returned 58,835 product matches on November 25, 2026. The CVE filter returned zero. Those numbers describe a visible product population and an indexed vulnerability tag. They do not prove that a matching asset has the vulnerable layer or role.

Store the query, count, timestamp, and scope with the internal inventory. If an external count is higher than the internal count, investigate missing ownership and shadow deployments. If the internal inventory has a host missing from the external view, verify the reverse proxy and network path.

9. Close with an owner

Assign the application owner to the version and package check. Assign the database owner to the role and grant review. Assign the network or platform owner to the reachability decision. Set a completion check for the fixed build, role review, and representative request test.

The checklist is complete when the code path is fixed, the database role is restricted, and the evidence shows that the change applies to the deployment actually serving traffic.

References