CVE-2026-120705: GeoServer reads local files through an unauthenticated WFS stored query

ByLinuxtastic

November 29, 2026 #CVE, #GeoServer

GeoServer is the open-source OGC server that publishes geospatial data over WFS, WMS and related protocols, and it runs on a Java servlet container on Linux. The WFS 2.0 stored query GetFeatureById, reachable through the ordinary public GetFeature operation, inserted the caller’s id value into an XML template without escaping it and then parsed the result with external entity resolution turned on. An unauthenticated request can therefore read a local text file the GeoServer process can reach, or make the server fetch an attacker-chosen HTTP or HTTPS URL, and receive the content back in the response. It is on CISA’s exploited-vulnerabilities list and is one documented step in a chain to unauthenticated remote code execution. If you run GeoServer below 2.27.7, 2.28.6 or 3.0.2, upgrade today and keep WFS closed to anonymous users until you do. This page shows how to check the version and the anonymous access, how to upgrade, and the proxy rule that blocks the request in the meantime.

CVE-2026-120705 at a glance.

ComponentGeoServer’s WFS core (org.geoserver:gs-wfs-core) and the GeoTools metadata library (org.geotools:gt-metadata) underneath it, as deployed in a Java servlet container (Tomcat or the bundled Jetty) on Linux. Not packaged by Debian, Ubuntu or Red Hat; installs come from the GeoServer WAR or platform-independent binary
Affected versionsGeoServer up to and including 2.27.6, 2.28.0 to 2.28.5 and 3.0.0 to 3.0.1 (GeoServer advisory GHSA-39mw-5chv-jh47); underlying GeoTools gt-metadata to 33.6, 34.0–34.5 and 35.0–35.1
Fixed inGeoServer 2.27.7, 2.28.6 and 3.0.2; GeoTools 33.7, 34.6 and 35.2
SeverityCVSS 3.1 8.6 High from the GeoServer CNA (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N). NVD has no record and EPSS no score as of 30 November 2026, so the figures here are the vendor advisory’s. CWE-91, CWE-611 and CWE-918
Exploited in the wildOn CISA’s Known Exploited Vulnerabilities catalogue, added 27 November 2026; federal remediation due 30 November 2026. The ransomware-use field is Unknown. On 30 November 2026 CISA added an SSVC assessment to the CVE record: Exploitation active, Automatable yes, Technical impact partial. No EPSS score has been published yet (checked 30 November 2026)
Who is exposedany GeoServer below the fixed versions that is reachable over the network; no account is needed to send the request, and the file or URL content is echoed back when a layer is published to anonymous users. The advisory names this as one step in a chain (with CVE-2026-129245 and others) to unauthenticated remote code execution. Not affected: 2.27.7, 2.28.6, 3.0.2 and later
PublishedGeoServer advisory 23 November 2026; this page built 29 November 2026, last updated 30 November 2026

What it is

WFS, the Web Feature Service, lets a client ask a GeoServer for map features. A stored query is a named, parameterised query the server keeps; the standard one, urn:ogc:def:query:OGC-WFS::GetFeatureById, takes a single id parameter and returns the feature with that identifier, and it is reachable without authentication through the public GetFeature operation. GeoServer built the query by placing the caller’s id value into an XML template as text, then parsed that XML with an entity resolver that honoured external entities. That is the classic XML external entity pattern, CWE-611: an id value carrying an external entity declaration makes the parser open whatever the entity points at, which the advisory says can be a local file readable by the GeoServer process or an arbitrary HTTP or HTTPS URL. The CWE-918 label is the server-side request forgery that the URL case amounts to, and CWE-91 is the XML injection that lets the entity in.

The GeoServer project’s security update of 23 November 2026 lists this alongside a set of October CVEs and is explicit that several of them chain: this one, a service-security bypass (CVE-2026-129243, covered separately), and a predictable remember-me key rated Critical (CVE-2026-129245) are steps that together reach unauthenticated remote code execution on an affected instance. Read on its own, CVE-2026-120705 is an unauthenticated read primitive, powerful enough on its own where the process can see secrets on disk or reach an internal service, and a building block for worse when combined. The fix is in the October release line; the advisory requires no manual steps beyond upgrading. We have taken the description, the versions and the CVSS from the GeoServer GHSA advisory and the project post, because NVD has no entry for this CVE yet.

Who is affected on Linux

GeoServer is a Java application deployed into a servlet container, not a distribution package, so the version that matters is the GeoServer build you deployed and the trackers below carry little for it. Each row is what the tracker showed on 29 November 2026; the link in a row is the tracker page.

DistributionStatusFixed package
AlpineNot consulted—
DebianNot packaged; tracker unreachable on 29 and 30 November 2026—
UbuntuNot packaged—
RHEL, Rocky, Alma, CentOS StreamNot packaged—
Fedora, openSUSE/SLE, ArchNot consulted—
GeoServer WAR / binary (geoserver.org)Affected below 2.27.7 / 2.28.6 / 3.0.2GeoServer 2.27.7, 2.28.6 or 3.0.2

How to check

Two questions: which GeoServer version is running, and can an anonymous caller reach WFS at all. The first is in the admin UI and on disk; the second decides whether the read primitive returns anything to a stranger.

# 1. version: look in the running instance and in the deployed files
curl -s 'http://localhost:8080/geoserver/web/' | grep -iEo 'GeoServer [0-9.]+' | head -1
find / -name 'gs-wfs-core-*.jar' 2>/dev/null                      # the jar name carries the version
find / -name 'geoserver*.war' -o -name 'GEOSERVER_VERSION*' 2>/dev/null | head

# 2. is WFS reachable without a login? a 200 with a capabilities document means yes
curl -s -o /dev/null -w '%{http_code}\n' 'http://localhost:8080/geoserver/wfs?service=WFS&request=GetCapabilities'

# 3. the exposed surface: which layers are published to the anonymous role
#    (GeoServer admin UI: Security > Data; on disk, the per-layer security rules)
grep -rn 'ROLE_ANONYMOUS\|\*\.\*\.r' "$GEOSERVER_DATA_DIR"/security/layers.properties 2>/dev/null

If step 1 shows 2.27.7, 2.28.6, 3.0.2 or later, the code is fixed. If it shows an older build, step 2 tells you whether WFS answers unauthenticated requests at all, and step 3 tells you whether any layer is readable by the anonymous role, which is what lets the file or URL content come back in the response. A GeoServer whose data is meant to be public will answer step 2 with a 200, and that is normal; the point of the upgrade is that the stored query stops being an XXE sink regardless.

Because the item is on the KEV list, look back. The signature is a WFS GetFeatureById request whose id parameter contains an XML entity or a URL, in the access log of the proxy or the servlet container in front of GeoServer.

# GetFeatureById requests carrying an entity declaration or a URL in the id
zgrep -hiE 'GetFeatureById' /var/log/nginx/access.log* /var/log/apache2/access.log* 2>/dev/null \
  | grep -iE '%21ENTITY|<!ENTITY|SYSTEM|https?%3a|https?:' | tail -50

# outbound connections a map server should not be making (to internal addresses especially)
ss -tnp 2>/dev/null | grep -i java | head -40

A GetFeatureById request with an entity or an external URL in it is not a false positive, and an outbound connection from the Java process to an internal address you did not configure is the SSRF case succeeding. Treat anything the process could read as disclosed: rotate credentials held in the data directory or environment, and review what an attacker could have reached from the server before deciding whether a rebuild is warranted. Restoring a Linux Server covers that.

How to fix it

Upgrade GeoServer to the patched release on your line and restart the servlet container. The project ships the fix in 2.27.7, 2.28.6 and 3.0.2, and there is no configuration change to make afterwards; the underlying GeoTools fix rides along in the GeoServer release.

# typical WAR deployment on Tomcat: replace the deployed application and restart
systemctl stop tomcat9      # or tomcat, or your unit name
cp geoserver-2.28.6.war /var/lib/tomcat9/webapps/geoserver.war     # keep GEOSERVER_DATA_DIR separate
systemctl start tomcat9

# platform-independent binary (bundled Jetty): stop, swap the install directory, keep the data dir, start
#   then confirm the version in the admin UI: About & Status > Server Status

If you cannot upgrade immediately, the advisory’s workaround is to restrict or disable WFS for anonymous users through GeoServer’s service security, or to disable WFS entirely if nothing needs it; that removes the unauthenticated path to the stored query. Where WFS must stay public, a proxy in front of GeoServer can reject GetFeatureById requests whose id contains the characters an XML entity needs, but treat that as a stopgap, because a filter on request text is easier to slip than a fixed parser.

Do not rely on disabling external DTDs in the servlet container alone unless you have confirmed it reaches this parser; the fix is in GeoServer’s own code, and only the upgrade guarantees the stored query stops resolving entities. And because this CVE is a documented link in a chain, do not treat it in isolation: the same release fixes the service-security bypass and the predictable remember-me key it chains with, so upgrade rather than patching one symptom.

Sources

Related reading

This advisory page was assembled from the primary sources listed above on 29 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.