CyberPeople

GeoServer: How a Five-Vulnerability Chain Gives Unauthenticated RCE

GeoServer: 5 Flaws Chain Into Unauthenticated RCE

Five GeoServer flaws chain into unauthenticated remote code execution. CVE-2026-120705 and CVE-2026-129243 are already exploited. Analysis and defense.

GeoServer is an open-source Java server for publishing geospatial data — maps, layers, and vector and raster data — through OGC standards such as WMS, WFS, and WCS. It powers government portals, utility and energy GIS, agriculture, logistics, and universities, wherever maps need to be served to the outside world. In late November 2026 the project released six security advisories that together form a chain leading to full server takeover without authentication. Two links of that chain are already being exploited in the wild.

What GeoServer is and why this matters

GeoServer is one of the most common components of the so-called geospatial stack. It turns a spatial database (PostGIS, Oracle Spatial, and so on) into live mapping services consumed by web maps, mobile apps, and GIS clients. Under the hood are Open Geospatial Consortium standards: the Web Map Service (WMS) serves rendered map images, the Web Feature Service (WFS) serves vector features, and the Web Coverage Service (WCS) serves raster coverages.

That is why GeoServer so often sits on the border between the internet and internal systems. Cadastral and municipal portals, environmental monitoring, energy and water-utility GIS, transport and defence mapping — many of them use GeoServer in some form. When such a server is exposed to the internet, it becomes both a data shop window and a potential entry point into the infrastructure: an attacker who executes code on a GeoServer instance is already inside the organization's network.

So the news that several GeoServer vulnerabilities form a single seamless chain from an anonymous request to code execution is a reason not only to update, but also to reconsider how this server is published to the outside.

Detailed map with location markers

Five links of a single chain

The November GeoServer security bulletin closes six issues at once, five of which form a complete takeover chain. Here they are in the order the attack uses them:

  • CVE-2026-129244 (CVSS 6.9) — a WFS stored query with an overlong identifier returns an exception report that leaks the absolute path to the GeoServer data directory. Harmless alone, but it tells the attacker where to point the next requests.
  • CVE-2026-129243 (CVSS 8.8) — a bypass of security rules via a service-name prefix. Passing x/WFS instead of WFS makes the dispatcher resolve the real service, but the permission check runs against the unresolved name, so no rule matches. An anonymous user can create and delete stored queries that should be admin-only.
  • CVE-2026-120705 (CVSS 8.6) — XML injection in GetFeatureById. The built-in stored query substitutes the caller's identifier into an XML template without escaping and parses it without a proper entity resolver. A single anonymous WFS request can read a local text file readable by the GeoServer process, or perform SSRF against an attacker-chosen URL.
  • CVE-2026-129245 (CVSS 9.2) — a predictable "remember me" cookie signing key. The key is read from security/config.xml, and the release data directory ships with the default value geoserver. With that key and an administrator password digest, an attacker forges a cookie GeoServer accepts as an administrator login — without knowing the password.
  • CVE-2026-129242 (CVSS 8.6) — deserialization in the JDBC user and role services. With an administrator session, the attacker points a JDBC service at an uploaded HSQLDB database, and the driver deserializes a value that runs commands with the privileges of the GeoServer process.

The sixth flaw — CVE-2026-120704 (CVSS 7.2) — is an alternative final step: a JDBC security service configured with the SQLite driver and enable_load_extension can load an arbitrary native library. Eye Security used this variant in its own chain.

Separately, the same bulletin fixes several more issues: SSRF in WPS Download (CVE-2026-120701), SSRF and file read via inline VRT in WPS (CVE-2026-120706), arbitrary file write via GeoWebCache (CVE-2026-120710), and source-IP rule bypasses through the X-Forwarded-For header (CVE-2026-120707 and CVE-2026-120708).

How the attack works in practice

The chain reads almost like a step-by-step recipe, which is exactly what makes it so dangerous. First the attacker sends an anonymous WFS request with an overlong stored-query identifier to learn the absolute path to the data directory (CVE-2026-129244). Then, using the x/WFS bypass, they create their own stored query (CVE-2026-129243) — an operation that by default is restricted to administrators.

Next comes file reading. Through the XML injection in GetFeatureById (CVE-2026-120705) the attacker extracts two critical files: security/usergroup/default/users.xml, which holds the administrator password digest, and security/config.xml, which holds the remember-me signing key. Rapid7 researcher Jonah Burgess, known as CryptoCat, puts it this way: "GeoServer turns escaped text in a saved query into live xi:include elements, which leaks the files holding the remember-me key and the admin password digest."

With those two values, the attacker forges an administrator cookie using the predictable key geoserver (CVE-2026-129245) — no password cracking needed. Then, already as administrator, they point a JDBC service at their own HSQLDB database and, via deserialization (CVE-2026-129242), run arbitrary commands as the account GeoServer runs under.

One nuance the maintainers stress: changing the key in security/config.xml does not help when the same file-read flaw also reveals the new key. Protection only works once both links are closed at once.

Ethical hacking and cybersecurity

Active exploitation has already begun

On 25 November 2026, in the early morning hours, watchTowr observed in-the-wild exploitation of CVE-2026-120705 and CVE-2026-129244 across its global honeypot network. Attackers from multiple IP addresses sent error-based probes: they created stored queries, checked whether they were actually created, and deleted them right away — confirming a server is vulnerable without leaving traces.

Notably, the traffic watchTowr captured mirrored the public proof-of-concept. The captured request carried the User-Agent GeoServer-RCE-PoC, and the stored query was named gssec plus 24 random hex characters — exactly the naming CryptoCat's PoC uses. The PoC itself appeared on GitHub at 22:43 UTC on 23 November, about half an hour after the advisories went up. So barely more than a day passed from the fixes to the first real exploitation attempts.

It is worth underlining: watchTowr observed probing against honeypots — the first two links of the chain. The company did not report whether anyone had yet reached cookie forgery or code execution, and at the time of publication there were no confirmed cases of full compromise of real servers. But the fact of active scanning means delaying the patch is playing roulette.

Who found it and how it was fixed

The five-step chain was independently discovered by Jonah Burgess (CryptoCat), a senior security researcher at Rapid7, who reported it to the GeoServer developers back on 2 August 2026. In parallel, some of the same issues were found by Eye Security researchers: the company reported its own discovery of CVE-2026-120705 and demonstrated unauthenticated RCE on Linux and Windows by combining three flaws — CVE-2026-120705, CVE-2026-129245, and CVE-2026-120704.

The fixes shipped gradually through October and early November: versions 2.27.7 (18 October), 3.0.2 (17 October), and 2.28.6 (2 November). The security advisories describing the six vulnerabilities were published on 23–24 November 2026. On 25 November the Canadian Centre for Cyber Security issued its own advisory (AV26-1207) urging immediate updates and noting that CVE-2026-120705 and CVE-2026-129243 are being exploited in the wild.

How to protect your servers

The most important thing is not to wait. Here is a practical plan for teams running GeoServer:

  • Update to 2.27.7, 2.28.6, or 3.0.2 (or newer) immediately. This is the only complete fix — point patches like changing the key do not close the chain.
  • Take an inventory. GeoServer often lives in containers, VMs, and forgotten test instances. Check every one, including the one nobody seems to use.
  • Rotate the remember-me key. After updating, generate a new random key in security/config.xml. This is an extra layer that only makes sense together with the patch.
  • Don't expose admin and WFS endpoints to the internet. If the map must be public, serve it via WMS and put WFS and the admin UI behind a reverse proxy with authentication, IP restrictions, or a WAF.
  • Disable unneeded extensions. WPS, printing, GeoWebCache, and other optional modules widen the attack surface. Keep only what you actually use.
  • Monitor logs. Suspicious signs include requests with the x/WFS prefix, anonymous clients creating or deleting stored queries, and unusual GetFeatureById requests with foreign identifiers.
  • Change administrator credentials. Since the flaw can leak the password hash, rotate the GeoServer administrator password after updating.

For Ukrainian organizations using GIS solutions in the public and municipal sector, this story is a reminder that an "invisible" infrastructure component can become the main entry point for an attack. If you are responsible for such systems, it is worth updating not only GeoServer itself but everything around it. To sharpen web application security fundamentals, see our cybersecurity learning resources.

Server rack in a data center

Conclusion

The GeoServer story is a classic example of how several "non-critical" medium-severity vulnerabilities add up to a critical result. No single link grants full access: the directory path only hints, the rule bypass only widens options, the file read only leaks secrets, and the predictable key only eases forgery. But assembled in the right order, they become an anonymous server takeover with code execution.

The main lesson is simple and familiar: a vulnerable software component facing the internet will eventually be found. And when a public proof-of-concept is already online and the first probes are appearing on honeypot networks, the clock counts in hours, not weeks. Update GeoServer to 2.27.7, 2.28.6, or 3.0.2 today.

Stay ahead of threats

Weekly cybersecurity intelligence in your inbox. No spam.

CyberPeople contributor