14 min to read
GeoServer RCE Chains Under Attack: What Happened and What to Do
Two GeoServer bugs are now on CISA's exploited list. Chained together, they hand an anonymous attacker your map server.
Most organisations know where their firewall, VPN and email server are. Far fewer could tell you where their map server is, who installed it, or when it was last patched. That blind spot is exactly where attackers are working this week.
On 27 November 2026, CISA added two flaws in GeoServer, the widely used open-source server for publishing maps and geospatial data, to its Known Exploited Vulnerabilities (KEV) catalog: CVE-2026-120705 (XML injection) and CVE-2026-129243 (incorrect authorization) (CISA). Neither bug is a remote code execution flaw on its own. But two separate research teams showed that, chained with other GeoServer bugs fixed in the same releases, they let an unauthenticated attacker forge an administrator session and run code on the server (The Hacker News, Eye Security). US federal agencies have to patch by today, 30 November.
If your organisation runs GeoServer for a GIS portal, a utility network map, a land-records system, a logistics dashboard or an agriculture project, this post is for you.
TL;DR / Key takeaways
- What: CISA confirmed active exploitation of GeoServer CVE-2026-120705 (CVSS 8.6, unauthenticated file read and SSRF via WFS) and CVE-2026-129243 (CVSS 8.8, security rules bypassed with a service name like
x/WFS).- Why it is serious: chained with CVE-2026-129245 (CVSS 9.2, default remember-me key
geoserver) and a JDBC code-execution bug, an anonymous attacker can become admin and run code. The default configuration is affected.- Fix: upgrade to GeoServer 3.0.2, 2.28.6 or 2.27.7 (plus GeoTools
gt-metadata35.2 / 34.6 / 33.7). Patches have been out since October.- Patching is not enough if you were exposed: the maintainers warn the same file read can leak password hashes and the signing key. Rotate admin passwords and every credential in the data directory.
- Hunt: look for
serviceparameters containing/,GetFeatureByIdrequests carrying XML, unknown stored queries inwfs/query, and unexpected JDBC security services.
What happened (timeline)
| Date | Event |
|---|---|
| 2 Aug 2026 | Rapid7 researcher Jonah Burgess (“CryptoCat”) reports a five-step unauthenticated RCE chain to GeoServer (The Hacker News) |
| Aug 2026 | A separate GeoServer zero-day, the PostGIS SQL injection CVE-2026-76904, is exploited within hours of disclosure (The Hacker News, Aug) |
| 29 Sep 2026 | Eye Security reports its own three-step chain to the maintainers (Eye Security) |
| 19 Oct to early Nov | Fixed releases 3.0.2, 2.28.6 and 2.27.7 ship, quietly, without full details (Eye Security, The Hacker News) |
| 23-24 Nov | GitHub security advisories and CVEs are published; Eye Security releases its write-up (GHSA-39mw-5chv-jh47) |
| 25 Nov | watchTowr sees exploitation against its honeypots “in the early morning hours” (The Hacker News) |
| 27 Nov | CISA adds CVE-2026-120705 and CVE-2026-129243 to KEV (CISA) |
| 30 Nov | Federal remediation deadline |
The gap matters. Fixes existed for five or six weeks before the advisories went public, and exploitation followed within roughly a day of publication. Anyone who treats “a GeoServer point release” as optional maintenance rather than a security event was caught out.
The vulnerabilities
All six bugs below are fixed in GeoServer 3.0.2, 2.28.6 and 2.27.7. Affected ranges are 3.0.0-3.0.1, 2.28.0-2.28.5 and 2.27.6 and earlier.
| CVE | Score | What it does | Role |
|---|---|---|---|
| CVE-2026-120705 (KEV) | 8.6 (CVSS 3.1) | GetFeatureById WFS stored query inserts the caller’s ID into XML without escaping; injected xi:include reads local files or makes server-side HTTP requests. No login needed |
Steal secrets |
| CVE-2026-129243 (KEV) | 8.8 (CVSS 4.0) | A prefixed service name such as x/WFS resolves to WFS, but security rules check the raw name, so protected operations run without a role check. By default, anonymous users can create and delete stored queries |
Bypass access control |
| CVE-2026-129244 | 6.9 | Stored-query error discloses the data directory path | Reconnaissance |
| CVE-2026-129245 | 9.2 (CVSS 4.0) | Remember-me cookies are signed with a key from security/config.xml that ships as geoserver |
Forge admin login |
| CVE-2026-120704 | 7.2 (CVSS 3.1) | Admin-supplied JDBC settings allow SQLite load_extension to load a native library |
Code execution |
| CVE-2026-129242 | 8.6 (CVSS 4.0) | JDBC user/role services deserialize Java objects from an attacker-supplied HSQLDB database | Code execution |
Sources: the GeoServer advisories for CVE-2026-120705, CVE-2026-129243, CVE-2026-129245, CVE-2026-120704 and CVE-2026-129242, plus The Hacker News for CVE-2026-129244.
CVE-2026-120705 also needs the GeoTools library update: gt-metadata 33.7, 34.6 or 35.2. If you embed GeoTools in your own Java application, check that dependency too (GHSA-39mw-5chv-jh47).
How the attack chain works (conceptually)
There are two published routes to code execution. Both follow the same logic: read a secret, forge an admin, abuse an admin feature.
Eye Security’s route (three steps) (Eye Security):
- Use the WFS XML injection (CVE-2026-120705) to read
users.xml, which holds usernames and password hashes, andsecurity/config.xml, which holds the remember-me signing key. - Combine the admin’s stored password digest with the (usually default) key to forge a remember-me cookie that GeoServer accepts as an administrator login (CVE-2026-129245). No password cracking is needed.
- As “admin”, register a SQLite JDBC security service that loads a native library and runs code as the GeoServer process (CVE-2026-120704). Eye Security verified this on Linux and Windows and says the default configuration is vulnerable.
The maintainers’ and CryptoCat’s route (five steps) leaks the data directory path (CVE-2026-129244), uses the x/WFS bypass (CVE-2026-129243) to create a malicious stored query, reads the key and admin digest through it, forges the cookie, and then points a JDBC user service at an uploaded HSQLDB file to trigger deserialization (CVE-2026-129242) (The Hacker News).
Two details from the advisories are easy to miss:
- The file read still happens even when nothing is published to anonymous users. Contents are only returned in the error message if a layer is anonymously published; otherwise “the file is still read but not shown” (GHSA-39mw-5chv-jh47). The SSRF side (server-side HTTP requests) is a risk in its own right on cloud hosts and internal networks.
- On the signing key, the maintainers are blunt: “Changing the key in
security/config.xmldoes not help when the same file disclosure also reveals the key” (GHSA-hgm3-wq4h-8vvq). The patched releases no longer store the key in the data directory, use a random key per node, and invalidate existing remember-me cookies on upgrade.
What attackers are doing
watchTowr’s Yordan Ganchev said attackers “sent error-based exploit probes to validate that the server is vulnerable” and that “threat actors from multiple IP addresses were observed validating vulnerable systems”. The probes created a stored query, checked it existed, and deleted it straight away (The Hacker News). That create-check-delete pattern is classic mass-scanning: build a list of vulnerable servers now, come back for them later. It also means a clean-looking wfs/query folder today does not prove you were never probed.
Eye Security identified more than 3,000 internet-accessible GeoServer instances (Eye Security). No public figure yet says how many are still unpatched or already compromised.
GeoServer is also a proven espionage entry point. In research published the same day as the KEV listing, SOCRadar described WeaveLotus, a suspected Vietnam-linked cluster that breached five government, military and legislative bodies in Thailand and the Philippines in August-September 2026. Its way into a Thai military organisation was GeoServer, “likely” via the older CVE-2024-36401, after which it set up a SOCKS5 proxy and reverse SSH tunnel and pulled records from a downstream content system (The Hacker News, SOCRadar). There is no evidence linking WeaveLotus to the new CVEs, but it shows what happens after a GeoServer foothold: the map server becomes a pivot into everything it connects to.
Am I affected?
You are at risk if all of these are true:
- You run GeoServer 3.0.0-3.0.1, 2.28.0-2.28.5 or 2.27.6 or earlier (check About GeoServer > Build Information in the web UI).
- Its OWS/WFS endpoints are reachable by untrusted users, either from the internet or from a large internal network.
- WFS is enabled (it is by default).
Also check for hidden copies: GeoServer bundled inside GIS platforms, Docker images, or project servers built by a vendor or consultant years ago. Treat any version on the unsupported 2.27.x branch as a migration task, not just a patch (Eye Security).
If a vulnerable instance was internet-facing at any point since 24 November, assume its secrets have been read and follow the response steps below, even if you find nothing in the logs.
Detection and hunting
POST bodies are often not logged by default, so absence of evidence in access logs is not proof of safety (CSA research note). Combine log searches with file-system checks.
1. Web/proxy log searches
~|#| Prefixed service names (CVE~|-|2026~|-|129243), raw and URL~|-|encoded slash
grep ~|-|Ei 'service~|=|[^& ]*(/|%2f)[^& ]*' /var/log/nginx/access.log* /path/to/tomcat/logs/localhost_access_log*
~|#| GetFeatureById stored~|-|query calls carrying XML / XInclude (CVE~|-|2026~|-|120705)
grep ~|-|Ei 'GetFeatureById' /var/log/nginx/access.log* | grep ~|-|Ei '(%3c|~|<||xinclude|xi:include|%22|")'
~|#| Stored~|-|query create/drop activity from unexpected sources
grep ~|-|Ei 'request~|=|(CreateStoredQuery|DropStoredQuery)' /var/log/nginx/access.log*
A Sigma-style rule for SIEMs that ingest web logs:
title: GeoServer WFS service~|-|name bypass or GetFeatureById injection
status: experimental
logsource:
category: webserver
detection:
bypass:
cs~|-|uri~|-|query|re: '(?i)service~|=|[^&]*(/|%2f)'
injection:
cs~|-|uri~|-|query|contains|all:
~|-| 'GetFeatureById'
cs~|-|uri~|-|query|contains:
~|-| '%3C'
~|-| 'xinclude'
~|-| 'xi:include'
storedquery:
cs~|-|uri~|-|query|contains:
~|-| 'CreateStoredQuery'
~|-| 'DropStoredQuery'
condition: bypass or injection or storedquery
falsepositives:
~|-| Legitimate administrators managing stored queries
level: high
2. Data directory checks
GEOSERVER_DATA_DIR~|=|/opt/geoserver/data_dir ~|#| adjust
~|#| Stored queries you did not create (the maintainers' recommended check)
ls ~|-|la "$GEOSERVER_DATA_DIR"/wfs/query/ "$GEOSERVER_DATA_DIR"/workspaces/*/wfs/query/ 2>/dev/null
~|#| Security services changed recently (unexpected JDBC user/role services)
find "$GEOSERVER_DATA_DIR/security" ~|-|type f ~|-|mtime ~|-|30 ~|-|ls
~|#| Database files or native libraries that should not be in the data directory
find "$GEOSERVER_DATA_DIR" ~|-|type f \( ~|-|iname '*.so' ~|-|o ~|-|iname '*.dll' ~|-|o ~|-|iname '*.db' \
~|-|o ~|-|iname '*.sqlite' ~|-|o ~|-|iname '*.script' ~|-|o ~|-|iname '*.data' \) ~|-|mtime ~|-|60 ~|-|ls
In the web UI, review Security > Users, Groups, Roles and Authentication for JDBC services or providers nobody on your team configured.
3. Host and network signs of follow-on activity
- The GeoServer Java process spawning shells (
sh,bash,cmd.exe,powershell.exe) or tools such ascurl,wgetorssh. - New outbound connections from the GeoServer host, especially long-lived SSH sessions or SOCKS traffic, the tradecraft WeaveLotus used after its GeoServer entry (The Hacker News).
- Requests from the GeoServer host to cloud metadata endpoints or internal services (a sign of SSRF use).
No official IOCs (IP addresses, hashes) have been published for this exploitation wave at the time of writing.
What to do: prioritised checklist
Immediately (today)
- Upgrade to GeoServer 3.0.2 (stable) or 2.28.6 (maintenance); use 2.27.7 only as a stop-gap before moving off 2.27.x. Update GeoTools
gt-metadataif you ship it yourself (GeoServer releases). - If you cannot upgrade today, apply all of these together (GHSA-39mw-5chv-jh47, GHSA-rv5g-g2r9-58rj, GHSA-hgm3-wq4h-8vvq):
- Restrict or disable WFS for anonymous users, or disable WFS if you do not use it.
- At your reverse proxy, block any request whose
serviceparameter contains/(query string and theserviceattribute in XML POST bodies). - Remove
remembermefrom thewebfilter chain (Security > Authentication). - Restrict access to the admin console and the REST API (
/rest/resource,/rest/security) to trusted networks.
- Take the server off the open internet if it does not need to be there, or put it behind a VPN or identity-aware proxy.
A minimal nginx example for the query-string part of the proxy block (POST bodies need WAF body inspection or the WFS restrictions above):
location /geoserver/ {
~|#| Block prefixed service names such as x/WFS (CVE~|-|2026~|-|129243)
if ($args ~* "(^|&)service~|=|[^&]*(/|%2f)") { return 403; }
~|#| Keep the admin UI and REST API internal
location ~ ^/geoserver/(web|rest)/ {
allow 10.0.0.0/8;
deny all;
proxy_pass http://127.0.0.1:8080;
}
proxy_pass http://127.0.0.1:8080;
}
This week
- Rotate credentials. Change all GeoServer administrator passwords (“If you suspect exposure, change administrator passwords”, per the advisory) and every secret stored in or reachable from the data directory, especially PostGIS and other datastore connection passwords.
- Hunt using the log and file checks above, going back to at least 24 November, and ideally to August given the earlier zero-day.
- Remove unneeded JDBC drivers such as SQLite from the GeoServer classpath, as the maintainers recommend (GHSA-wc3v-48j7-xf57).
- In clusters running patched versions, set a shared remember-me key with the
GEOSERVER_REMEMBERME_KEYproperty rather than relying on a file in the data directory.
Longer term
- Inventory “niche” servers. GeoServer, GeoNetwork, report servers like JasperReports and ticketing tools like osTicket all featured in this month’s reporting. They need named owners and a place in your vulnerability management process.
- Treat upstream maintenance releases as security events. Here, fixes predated the advisories by weeks.
- Run GeoServer with least privilege: a dedicated low-privilege service account, read-only database users where possible, and egress filtering so a compromised map server cannot open tunnels or reach internal services freely.
OffensioX perspective
This incident follows a pattern we keep seeing: attackers are not only hunting famous edge devices, they are mining the long tail of specialist open-source servers that sit on the internet with default settings. A remember-me key that ships as geoserver is a reminder that “default configuration” and “secure configuration” are not the same thing. Fixes shipping weeks before advisories, and exploitation starting a day after details go public, means patch cadence has to be driven by releases, not headlines. For Pakistani government departments, utilities, telecoms and development projects that publish maps and land or network data through GeoServer, the WeaveLotus case is a useful warning: a map server is rarely the prize, but it is often the doorway. If you are not sure what your organisation exposes, OffensioX’s penetration testing and external attack surface assessments can find these forgotten services and verify that fixes actually hold.
References
- CISA: CISA Adds Three Known Exploited Vulnerabilities to Catalog (27 Nov 2026)
- CISA Known Exploited Vulnerabilities Catalog
- GeoServer advisory GHSA-39mw-5chv-jh47 (CVE-2026-120705)
- GeoServer advisory GHSA-rv5g-g2r9-58rj (CVE-2026-129243)
- GeoServer advisory GHSA-hgm3-wq4h-8vvq (CVE-2026-129245)
- GeoServer advisory GHSA-wc3v-48j7-xf57 (CVE-2026-120704)
- GeoServer advisory GHSA-9wf2-fcgq-vxhq (CVE-2026-129242)
- GeoServer 3.0.2 release
- Eye Security: Unauthenticated remote code execution vulnerability in GeoServer
- The Hacker News: Hackers Exploit Two GeoServer Flaws as Researchers Warn of Unauthenticated RCE Chains
- The Hacker News: GeoServer Zero-Day Targeted in Active Exploitation Attempts (Aug 2026)
- The Hacker News: Suspected Vietnam-Linked Hackers Target Southeast Asia in South China Sea Espionage Campaign
- SOCRadar: RedOps: WeaveLotus Targets Southeast Asian Governments
- Cloud Security Alliance: GeoServer Under Active Exploitation: KEV-Listed RCE Chains and the WeaveLotus Campaign
- Security Affairs: U.S. CISA adds Drupal Core and GeoServer flaws to its KEV catalog