Who is affected
OSGeo GeoServer instances are affected by an XML injection flaw in the WFS 2.0 GetFeatureById stored query handler. The vulnerability allows unauthenticated remote attackers to read local files or trigger HTTP/HTTPS requests from the server. The record does not specify which versions of GeoServer are vulnerable, nor does it state whether only internet-facing instances are at risk or whether internal deployments are equally exposed.
How to check whether this touches you
- Inventory whether you run GeoServer anywhere in your environment, including development, staging and production instances.
- Determine whether any GeoServer instance is reachable over the network from untrusted sources; prioritise instances accessible from the internet or from less-trusted internal networks.
- Query the running GeoServer version via its admin interface or API; note that version alone is not conclusive proof of vulnerability or safety, as backported security fixes can be applied to older releases.
- Check whether WFS 2.0 services are enabled and whether GetFeatureById stored queries are in use.
- Review network logs and firewall rules to establish baseline connectivity to any WFS endpoints.
What to do
- Contact OSGeo or consult their official advisories immediately to obtain the specific patched version and any interim mitigations. Do not wait for a patch if interim controls are available.
- If patching cannot be deployed within your organisation's change windows, implement network controls: restrict access to WFS endpoints to trusted sources only, disable WFS 2.0 if not in use, or place the instance behind an authentication proxy.
- Enable detailed logging of all requests to WFS GetFeatureById endpoints, including the ID parameter values and source IP addresses. Retain these logs for retrospective investigation.
- If your GeoServer instance is internet-facing and unpatched, escalate to your incident response team and consider taking the service offline until a fix is applied, in accordance with CISA BOD 26-04.
- Test and deploy the vendor patch as soon as it is available and validated in a non-production environment.
If you find you were exposed
Review access logs and network traffic capture from at least 90 days before the patch was deployed, looking for requests to WFS GetFeatureById endpoints with unusual ID parameters, requests that reference local file paths, or unexpected outbound HTTP/HTTPS connections initiated by the GeoServer process. The XML injection vector typically leaves traces in request logs and application-level debug logs if those were enabled. Consult your log retention policy immediately; many organisations purge older logs within weeks, so timely collection is essential to establish whether exploitation occurred.