Skip to content
Shipworthy

GeoServer CVE-2026-120705: exploited, what to patch

CISA lists GeoServer CVE-2026-120705 as exploited. One unauthenticated WFS request reads files and fetches URLs, and chains to RCE. Update to 3.0.2 or 2.28.6.

By · · Updated · 13 min read

Diagram of the five-step GeoServer exploit chain, from a leaked data directory path through the x/WFS service bypass, the GetFeatureById XML injection, a forged remember-me cookie and HSQLDB deserialization to code execution, with steps 2 and 3 marked as in CISA's exploited list.

If you run GeoServer and it is reachable from the internet, upgrade it today. CVE-2026-120705 is an XML injection in GeoServer's WFS service that lets anyone, with no login, make the server read its own files and fetch URLs of the attacker's choosing. CISA added it to its list of actively exploited vulnerabilities on 27 November 2026. It is also step three of a published five-step chain that ends in remote code execution, and an exploit for the full chain has been public since 23 November.

The fixed releases are GeoServer 3.0.2, 2.28.6 and 2.27.7. They have been out since October, so this is an upgrade you can do now, not one you have to wait for.

What the flaw is

GeoServer serves map data over OGC standards, and one of those is the Web Feature Service (WFS). WFS 2.0 defines a built-in stored query, urn:ogc:def:query:OGC-WFS::GetFeatureById, that returns a feature by its ID. GeoServer exposes it through the public GetFeature operation.

According to the advisory, the code that filled in that query was doing string substitution on XML. StoredQuery.compile() replaced the ${ID} token in the template <fes:ResourceId rid='${ID}'/> with "plain string replacement, so quotes and angle brackets in the value could close the rid attribute and add new FES elements." The result was then parsed without the catalog entity resolver used elsewhere in the class, "so XInclude and external entities were resolved with ordinary URI access."

Put together, the advisory says a single unauthenticated WFS request can:

  • read a local text file readable by the GeoServer process;
  • fetch an attacker-selected HTTP or HTTPS URL (server-side request forgery);
  • get the fetched text back in the Illegal property name error response.

"No authentication, custom stored query or CreateStoredQuery access is required." The contents are echoed back when a layer is published to anonymous users. Otherwise, in the advisory's words, "the file is still read but not returned."

The project rates it High, CVSS 3.1 8.6 (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N), and files it under CWE-91 (XML injection), CWE-611 (external entities) and CWE-918 (SSRF). One aggregator lists it as 9.5 critical without citing a source. I am going with the vendor's number. NVD has since analysed the CVE without publishing a score of its own (update of 1 December, below).

Why a file read becomes a server takeover

On its own, CVE-2026-120705 is a file read plus SSRF. The reason CISA's entry mentions code execution is the chain around it. GeoServer split one researcher-reported chain into five CVEs "at the request of the CVE Numbering Authority", and lists them in order:

StepCVEWhat it doesSeverity (GHSA)
1CVE-2026-129244An overlong stored query ID makes the error leak the absolute data directory pathMedium
2CVE-2026-129243service=x/WFS skips service security rules, so anonymous users can create stored queriesHigh
3CVE-2026-120705XML injection reads files and fetches URLsHigh
4CVE-2026-129245The remember-me signing key ships as geoserver, so a leaked password digest is enough to forge an admin cookieCritical
5CVE-2026-129242An admin can upload an HSQLDB file whose values are deserialized into running Java objectsHigh

Step 4 is the one worth understanding, because it is not really a bug in the usual sense. The remember-me cookie is signed with a key, the user name, an expiry and the stored password digest. The key lives in security/config.xml, and the release data directory "ships with the key geoserver, which most installations never change." So a file read that reaches the user store gives an attacker the admin's digest, and the default key does the rest: the advisory says that is enough to "create a remember-me cookie that GeoServer accepts as an administrator login, without knowing the password." Changing the key does not help either if the same file read can also fetch security/config.xml.

From there, step 5 turns admin access into code execution as the GeoServer process. The public proof of concept runs against the official docker.osgeo.org/geoserver:3.0.0 image, which, its README notes, "runs GeoServer as root."

CISA added steps 2 and 3, CVE-2026-129243 and CVE-2026-120705, to the catalog on the same day. The other three are not in it.

Who is affected

From the GitHub advisory for CVE-2026-120705, which the proof-of-concept README and the Jira fix versions agree with:

SeriesVulnerableFixed
GeoServer 3.0.x3.0.0 – 3.0.13.0.2
GeoServer 2.28.x2.28.0 – 2.28.52.28.6
GeoServer 2.27.x (end-of-life)2.27.6 and earlier2.27.7
GeoTools (gt-metadata)≤ 33.6, 34.0 – 34.5, 35.0 – 35.133.7, 34.6, 35.2

The vulnerable Maven artifact is org.geoserver:gs-wfs-core. If you embed GeoTools in your own application, the GeoTools part of the fix is the change to PreventLocalEntityResolver so that it checks redirects. Whether your own code has the same stored-query pattern is a separate question the advisory does not answer.

Two things to know about the 2.27 line. The project's release post says the series "has previously reached end-of-life" and asks you to "apply this update as a mitigation measure only." And I found no fix for anything older than 2.27. If you are on 2.26 or earlier, you are migrating, not patching.

Eye Security, one of the reporting teams, says it "identified over 3,000 internet-accessible GeoServer instances." It gives no method or date for that count, so take it as a rough size rather than a measurement you can check.

What to do, in order

1. Upgrade

Move to 3.0.2, 2.28.6 or 2.27.7. If you run the official container, the registry at docker.osgeo.org/geoserver has 3.0.2, 2.28.6 and 2.27.7 tags, plus -gdal variants. The Kartoza image on Docker Hub had a 3.0.2 tag when I looked, but no 2.28.6 or 2.27.7 tag among its 100 most recently updated, and Kartoza has published nothing about the CVE. If you build from someone else's image, check its tag against the version table above rather than trusting latest.

The remember-me fix changes behaviour on upgrade. The key is no longer stored in the data directory, each node generates a random one, and existing remember-me cookies are invalidated. If you run a cluster, set a shared key with the GEOSERVER_REMEMBERME_KEY application property, or users will get logged out as requests move between nodes.

2. If you cannot upgrade today

These come from the advisories, and they reduce exposure. They do not replace the upgrade:

  • Restrict WFS for anonymous users with service security, or disable WFS if you do not use it. That is the advisory's mitigation for CVE-2026-120705 itself.
  • Block service values containing / at your reverse proxy, in the query string and in the service attribute of XML request bodies. That shuts the x/WFS bypass in step 2.
  • Remove rememberme from the web filter chain (Security > Authentication). That breaks step 4. Failing that, set the key in security/config.xml to a long random value.
  • Restrict /rest/resource and /rest/security to trusted networks, which the step 5 advisory recommends.

3. Change admin passwords if you were exposed

The step 4 advisory says it plainly: "If you suspect exposure, change administrator passwords." The forged cookie is built from the password digest, so a new password produces a new digest and an old stolen one stops working. If your instance was internet-facing and unpatched after 23 November, I would treat that as suspected exposure.

How to check whether you were probed

The advisory for step 2 gives one concrete check: review the data directory's wfs/query and workspaces/*/wfs/query folders "for stored queries you did not create." Any stored query you do not recognise means someone used the bypass.

Beyond that, no indicators of compromise have been published: no IP addresses, no hashes, no log signatures. The following are my own suggestions, drawn from how the advisories describe the bugs, not from anyone's incident data:

  • Search access logs for service= values containing a /, such as x/WFS.
  • Search for GetFeatureById requests whose ID value contains <, ', xi:include or file:.
  • Search for error responses containing Illegal property name, which is where the advisory says fetched text comes back.
  • Look for outbound HTTP requests from the GeoServer host to destinations it has no reason to contact. That is what the SSRF half of the bug would produce.
  • Check for remember-me logins as admin from addresses that never logged in with a password.

What is known about the attacks

Not much, and it is worth being precise about how little.

CISA's alert says the two GeoServer CVEs were added "based on evidence of active exploitation", and it does not say whose evidence. The federal due date under BOD 26-04 is 30 November, which is three days after listing. CISA marks known ransomware use as "Unknown".

The only public description of activity is watchTowr's, through SecurityWeek on 25 November. SecurityWeek reports that "attackers sent error-based exploit probes to validate that the server is vulnerable", that "WatchTowr has not reported any instances of attackers successfully achieving remote code execution", and that "at the time of writing there do not appear to be any other reports of exploitation attempts." So what has been described publicly is probing. Successful exploitation has not been reported, though that does not mean it has not happened.

The timeline explains why probing started so quickly. The fixes were merged in mid-October and shipped in releases dated October, but the original release notes said only that "details about the fixes will be provided at the start of November." The five advisories went up on 23 November at about 22:10 UTC. The public proof-of-concept repository was created at 22:43 UTC the same evening. watchTowr's probes were reported two days later. If you skipped the October releases because their notes did not say what they fixed, this is the cost.

What is still unknown

  • Who CISA's evidence came from, and whether it shows anything beyond probing.
  • Any successful compromise. None has been reported publicly.
  • NVD's score. Partly answered on 30 November. GitHub, acting as the CVE Numbering Authority, published the CVE record that day at 17:39 UTC, with the same CVSS 3.1 score of 8.6 and CWE-91 as the advisory. NVD created its entry at 18:18 UTC and marks it "Undergoing Analysis". The only score on it is GitHub's 8.6, so NVD has still not published a score of its own. The record also carries CISA's assessment, added the same afternoon: exploitation "active", automatable "yes", technical impact "partial". The record for step 2, CVE-2026-129243, was published at the same time. Update, 1 December: NVD completed its initial analysis at 20:55 UTC on 30 November and now marks the record "Analyzed". It added the affected versions (GeoServer before 2.27.7, 2.28.x before 2.28.6 and 3.0.x before 3.0.2, plus the GeoTools ranges in the table above) and the details of CISA's KEV listing, but no CVSS score of its own. The only score on the record is still GitHub's 8.6, which is the one to use.
  • Indicators of compromise. None have been published by the project, CISA or watchTowr. That was still true on 1 December. The five GitHub advisories have not changed since 23 November, and I found no new report of a successful compromise.
  • Whether WFS is open to anonymous users by default. The advisories imply it, and Eye Security says the chain needs "no special settings", but no source states the default outright.

I will update this post when watchTowr, CISA or the GeoServer project publishes indicators or reports a confirmed compromise.

The short version

  • CVE-2026-120705: unauthenticated XML injection in GeoServer's WFS GetFeatureById stored query. It reads local files and fetches URLs. CISA lists it as exploited, added 27 November 2026.
  • It is step 3 of a five-CVE chain to remote code execution. The step that makes the chain work is a remember-me key that ships as geoserver.
  • Upgrade to 3.0.2, 2.28.6 or 2.27.7. Clusters need GEOSERVER_REMEMBERME_KEY set after the upgrade.
  • If you cannot upgrade, restrict anonymous WFS, block service values containing / at the proxy, and remove rememberme from the web filter chain.
  • If your server was exposed after 23 November, change admin passwords and check wfs/query for stored queries you did not create.

Frequently asked questions

Which GeoServer versions fix CVE-2026-120705?

GeoServer 3.0.2, 2.28.6 and 2.27.7, according to the project's advisory GHSA-39mw-5chv-jh47. The underlying GeoTools fix is in GeoTools 33.7, 34.6 and 35.2. Vulnerable versions are 3.0.0 to 3.0.1, 2.28.0 to 2.28.5, and 2.27.6 and earlier. The 2.27 series is end-of-life, and the project calls 2.27.7 a mitigation release only.

Is CVE-2026-120705 being exploited?

CISA added it to its Known Exploited Vulnerabilities catalog on 27 November 2026, together with CVE-2026-129243, based on evidence of active exploitation. The only public description of that activity is watchTowr's, relayed by SecurityWeek on 25 November: error-based probes to check whether servers are vulnerable, with no successful remote code execution reported.

Does CVE-2026-120705 need a login?

No. The GeoServer advisory says a single unauthenticated WFS request can read a local text file readable by the GeoServer process, or make the server fetch an attacker-chosen HTTP or HTTPS URL. No custom stored query or CreateStoredQuery access is needed. The file contents come back in the error response when a layer is published to anonymous users.

What can I do if I cannot upgrade GeoServer today?

The advisories give three stopgaps: restrict or disable WFS for anonymous users with service security, or disable WFS entirely if you do not use it; block requests whose service parameter contains a slash at a proxy; and remove rememberme from the web filter chain. Upgrading is the actual fix.

Get The Shipping Forecast

One email on Thursdays: what I tested and wrote that week, plus one tool worth your time.

You'll get a confirmation email first. Unsubscribe in one click. Privacy policy.