How two exploited GeoServer bugs chain into a full server takeover


SaveAdd to Google
Geoserver

GeoServer publishes maps and geospatial data for public portals, which often leaves it exposed to the internet.

Analysis TORONTO, ON

Attackers began probing GeoServer for two newly disclosed flaws within a day of the advisories going public, and on November 27 the U.S. Cybersecurity and Infrastructure Security Agency (CISA) added both to its Known Exploited Vulnerabilities catalog. The Canadian Centre for Cyber Security's advisory AV26-1207 reports that both are being exploited in the wild.

On their own, the two flaws are rated High rather than Critical. What makes them dangerous is that they are links in a documented chain that takes an anonymous attacker all the way to running code on a default GeoServer installation. This analysis walks through that chain, why patching alone does not undo it, and what GeoServer operators should check.

How GeoServer is built, and where the chain attacks it

GeoServer is a Java web application, built on the Spring framework and typically deployed in Jetty or Tomcat, that publishes geospatial data through Open Geospatial Consortium (OGC) standards such as Web Map Service (WMS) and Web Feature Service (WFS). Four parts of its design explain why this chain works.

A single request dispatcher. Every OGC request goes through one dispatcher that reads the service and request parameters (for example service=WFS&request=GetFeature) and routes the call to the matching service implementation. Access control is a separate layer: service security rules, kept in the data directory, map a service and operation to the roles allowed to call it. CVE-2026-129243 exists because these two layers disagreed about the service name. The dispatcher normalized a prefixed value such as x/WFS to WFS, while the security check evaluated the unnormalized name and found no rule to enforce.

WFS 2.0 stored queries. WFS 2.0 lets clients call predefined, parameterized queries by identifier, and defines a mandatory built-in one, GetFeatureById. It also defines operations to manage them: CreateStoredQuery, DescribeStoredQueries and DropStoredQuery. Stored query definitions are XML that the server parses and expands with caller-supplied values. That is the surface for both CVE-2026-120705, where crafted input to GetFeatureById injects XML that the server then resolves to a local file or remote URL, and CVE-2026-129244, where an error raised while processing a stored query echoes the data directory path back to the caller. The create-check-delete pattern watchTowr saw against its honeypots uses exactly these management operations.

A file-based data directory. GeoServer keeps its configuration as files in a data directory rather than in a database. Its security/ folder holds the security configuration, including config.xml, and the default user and group service stores accounts in users.xml, with passwords saved as digests rather than in plain text. Anything that reads arbitrary files the GeoServer process can access, as CVE-2026-120705 does, can therefore read the secrets that protect the server itself.

Spring-style "remember me" cookies. GeoServer's remember-me login follows the token-based design used by Spring Security: the cookie carries the username and an expiry time, plus a signature computed over those values, the user's stored password value and a server-side key. The server accepts the cookie if it can recompute the same signature. If the key is a known constant (geoserver, per CVE-2026-129245) and the password digest can be read from users.xml, an attacker can compute a valid signature for any username and expiry, without ever knowing the plain-text password.

Once an attacker is an administrator, GeoServer's own features do the rest. Administrators can configure JDBC-backed user and role services and other database connections. That is legitimate functionality, but it means admin access to GeoServer is effectively code execution on the host, which is what CVE-2026-129242 and CVE-2026-120704 exploit.

GeoServer has been here before. CVE-2024-36401, a critical 2024 flaw in how OGC filter property names were evaluated, was exploited to pull GeoServer hosts into DDoS botnets, crypto-mining operations and residential proxy networks. In August 2026, attackers probed an unpatched SQL injection in the jsonArrayContains filter function, a regression of an older bug, before GeoServer shipped fixes on August 14. Mapping portals are often internet-facing by design, which keeps them high on attackers' lists.

The flaws

GeoServer's November security update covers more than a dozen issues. These are the ones that matter for the attack chain:

  • CVE-2026-129244 (CVSS 6.9): an exception raised by a WFS stored query discloses the path of GeoServer's data directory.
  • CVE-2026-129243 (CVSS 8.8, exploited): incorrect authorization. Prefixing a service name, for example requesting x/WFS instead of WFS, bypasses the service security rules meant to protect certain operations. The request dispatcher strips the prefix and routes to the real WFS service, but the security check does not match the rule.
  • CVE-2026-120705 (CVSS 8.6, exploited): XML injection through the WFS GetFeatureById stored query. A single unauthenticated WFS request can read local text files the GeoServer process can access, or make the server fetch an attacker-chosen HTTP or HTTPS URL (server-side request forgery).
  • CVE-2026-129245 (CVSS 9.2): GeoServer's "remember me" login feature uses a hard-coded signing key, geoserver. With that key and an administrator's password digest, an attacker can forge a valid administrator session cookie.
  • CVE-2026-129242 (CVSS 8.6): deserialization in the JDBC user and role services allows code execution by an administrator.
  • CVE-2026-120704 (CVSS 7.2): improper control of code generation that lets an administrator run arbitrary code as the GeoServer user.

The chain, step by step

GeoServer's maintainers describe a five-step chain from anonymous access to code execution:

  1. Find the data directory. Trigger a stored query error to leak the data directory path (CVE-2026-129244).
  2. Get past access rules. Prefix the service name to reach stored query operations that should be admin-only (CVE-2026-129243).
  3. Read secrets. Use the GetFeatureById XML injection to read files from the data directory (CVE-2026-120705). Two matter most: the users.xml file, which hold usernames and password digests, and security/config.xml, which holds the remember-me signing key.
  4. Become administrator. Combine the signing key and the administrator's password digest to forge a "remember me" cookie (CVE-2026-129245). The attacker never needs the actual password.
  5. Run code. As administrator, configure a JDBC user or role service that triggers deserialization (CVE-2026-129242).

Rapid7 researcher Jonah Burgess independently found and reported this chain on August 2, 2026. His version ends by pointing a JDBC user service at an uploaded HSQLDB database to run commands. Eye Security, which reported the XML injection flaw, describes a shorter variant: read the user file and the signing key, forge the cookie, then abuse an administrator-controlled JDBC configuration to load an uploaded native library on Linux or Windows (CVE-2026-120704).

The common thread is that no single bug gives an anonymous attacker code execution. A file read, a weak signing key and admin-only features that are dangerous by design combine into a pre-authentication compromise.

What attackers are doing

watchTowr reported in-the-wild exploitation against its honeypot network early on November 25. Attackers from multiple IP addresses sent error-based probes: they created stored queries, checked that they existed, and deleted them immediately. That pattern matches the first two steps of the chain, confirming access before going further. watchTowr's Yordan Ganchev said the flaws can be used to bypass security restrictions, reach internal services, retrieve stored secrets, forge credentials and ultimately run code.

The timing is worth noting. According to The Hacker News, the fixes themselves shipped in GeoServer releases in October and early November, but the advisories describing them were only published on November 24. Organizations that applied October's routine updates were already protected; those that wait for advisories before patching had about a day before attacks started.

Why patching is not enough

GeoServer's maintainers make an important point: an attacker who obtains an administrator's password digest, through any file disclosure or a copy of the data directory, can log in as that administrator. They also note that changing the key in security/config.xml does not help when the same file disclosure also reveals the new key.

In other words, the fix closes the doors, but anything already read through them stays compromised. If an exposed server was unpatched after November 24, treat its password digests, signing key and any secrets stored in the data directory as stolen.

What to do

1. Upgrade. Move to GeoServer 2.27.7, 2.28.6 or 3.0.2. Applications that embed GeoServer or GeoTools libraries need the matching component updates, including GeoTools 33.7, 34.6 or 35.2 for the XML injection fix.

2. Restrict exposure. If you can't patch immediately, watchTowr advises restricting access to the host. At minimum, keep the web administration interface off the internet and limit WFS to the operations your users actually need.

3. Rotate credentials after patching. Change every administrator and user password, generate a new remember-me signing key once the server is patched, and rotate any database or service credentials referenced in the data directory.

4. Hunt for signs of the chain. Based on the published chain and watchTowr's observations, review web logs for:

  • requests where the service parameter contains a slash or prefix, such as x/WFS;
  • anonymous CreateStoredQuery, DescribeStoredQueries or DropStoredQuery requests, especially in quick succession;
  • GetFeatureById requests with unusual XML content;
  • administrator sessions established through "remember me" cookies from unfamiliar IP addresses; and
  • new or changed JDBC user or role services, or unexpected database or library files in the data directory.

5. Check the host. If anything suggests compromise, look for unexpected processes running as the GeoServer user and outbound connections from the server, and consider rebuilding it from a clean image.

The Canadian context

Mapping and open-data portals are common at every level of government in Canada, as well as at utilities, universities and engineering firms, and GeoServer is a popular choice for publishing them. Because these portals are meant to be public, they are often internet-facing with little in front of them. CISA has given U.S. federal agencies until November 30 to patch; Canadian operators should move just as quickly. Suspected compromises can be reported to the Cyber Centre through My Cyber Portal or at [email protected].

The vulnerabilities in this story

  1. CVE-2026-120705 (cve.org, opens in a new tab)

    Not yet rated by the NVD: see the record on cve.org.

  2. CVE-2026-129243 (cve.org, opens in a new tab)

    Not yet rated by the NVD: see the record on cve.org.

  3. CVE-2026-129244 (cve.org, opens in a new tab)

    Not yet rated by the NVD: see the record on cve.org.

  4. CVE-2026-129245 (cve.org, opens in a new tab)

    Not yet rated by the NVD: see the record on cve.org.

  5. CVE-2026-129242 (cve.org, opens in a new tab)

    Not yet rated by the NVD: see the record on cve.org.

  6. CVE-2026-120704 (cve.org, opens in a new tab)

    Not yet rated by the NVD: see the record on cve.org.

Scores and dates: NVD (not endorsed by the NVD). Each ID opens its record on cve.org.

About the author

Editor's Picks

The best of cybersecuritynews.ca, delivered to you weekly.

On Display
Ruby

Ruby2Shell: how one byte of "SS" became a pre-auth Rails risk

Pacific Blue Cross

Pacific Blue Cross cyber incident halts claims for B.C. members

Java4Shell: patched Java, still exposed? Check the bundled runtime