What is GeoServer?
GeoServer is an open-source Java server, maintained under the Open Source Geospatial Foundation (OSGeo), that publishes geospatial data over open standards: WMS for rendered maps, WFS for vector features, WCS for coverages and WPS for processing. It is the default way that governments, utilities, transport agencies, universities and defence organisations expose mapping data to web clients, and it typically sits internet-facing by design because its whole purpose is to serve public map layers.
That position makes it a recurring target. GeoServer instances are reachable without authentication for the anonymous-readable layers they publish, they run a complex XML request parser, and they hold a data directory containing database credentials and the security configuration. The WFS service in particular accepts attacker-controlled XML, which is where this vulnerability lives.
Overview
CVE-2026-120705 is an XML injection in the built-in WFS 2.0 stored query urn:ogc:def:query:OGC-WFS::GetFeatureById, which every GeoServer instance exposes through the public GetFeature operation. A single unauthenticated HTTP request with a crafted ID parameter causes GeoServer to read a local text file that the server process can read, or to fetch an attacker-chosen HTTP or HTTPS URL, making it both an arbitrary file read and a server-side request forgery.
The GeoServer project assigns CVSS 3.1 base score 8.6 (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N), rated High, with CWE-91 (XML injection), CWE-611 (XML external entity) and CWE-918 (SSRF). NVD has since published the same CVSS 3.1 base score of 8.6 with an identical vector, so the vendor and NVD ratings agree at High.
What raises this above a normal information disclosure is its place in a chain. The GeoServer maintainers describe a five-step sequence to unauthenticated remote code execution: CVE-2026-129244 leaks the absolute data directory path, CVE-2026-129243 bypasses service security so an anonymous user can create stored queries, CVE-2026-120705 reads files out of the data directory, CVE-2026-129245 forges an administrator session using the default remember-me key geoserver plus a recovered password digest, and CVE-2026-129242 executes code through JDBC deserialization. CISA added steps two and three to the KEV catalog on 2026-11-27 with a three-day deadline.
Affected Versions
| Product | Vulnerable | Fixed |
|---|---|---|
GeoServer 3.0.x (gs-wfs-core) |
3.0.0 through 3.0.1 | 3.0.2 |
GeoServer 2.28.x (gs-wfs-core) |
2.28.0 through 2.28.5 | 2.28.6 |
GeoServer 2.27.x and earlier (gs-wfs-core) |
2.27.6 and all earlier releases | 2.27.7 |
GeoTools 35.x (gt-metadata) |
35.0 through 35.1 | 35.2 |
GeoTools 34.x (gt-metadata) |
34.0 through 34.5 | 34.6 |
GeoTools 33.x and earlier (gt-metadata) |
33.6 and all earlier releases | 33.7 |
The fixed GeoServer releases shipped in October 2026, before the vulnerability details were published on 2026-11-23.
Technical Details
The defect is textbook string-concatenation injection into a structured format. StoredQuery.compile() builds the query body by substituting the caller's ID parameter into the template <fes:ResourceId rid='${ID}'/> with a plain string replacement and no escaping. A value containing a single quote and angle brackets closes the rid attribute and the ResourceId element, and the attacker then writes arbitrary FES elements of their own into the document.
The second half of the bug is what parses that document. The compiled query is handed to new Parser(new WFSConfiguration()) without the catalog entity resolver that GeoServer applies elsewhere in the same class. With no resolver in place, XInclude directives and external entity declarations are resolved using ordinary URI access, so an injected xi:include pointing at file:///etc/passwd or at an internal HTTP endpoint is fetched by the server.
The retrieved text comes back to the attacker inside an "Illegal property name" error response, which is why this is described as error-based. One nuance matters for triage: the file contents are echoed only when the targeted layer is published to anonymous users. Where the layer is restricted, the file is still read and the SSRF request is still issued, but the output is not returned, so an absence of leaked content does not mean an absence of exposure. No authentication is required, no CreateStoredQuery permission is needed, and no custom stored query has to exist first, because GetFeatureById is built in.
Discovery
The GeoServer advisory credits Quikko and Crypto-Cat as reporters, nteusink as finder, axl8713 as remediation developer and Jody Garnett as coordinator. Crypto-Cat is Jonah Burgess, senior security researcher at Rapid7, who reported the full five-step pre-authentication chain to the project on 2026-08-02 and has published his own analysis and proof of concept. Eye Security is separately credited by The Hacker News with discovering and reporting this issue, and its labs team published a write-up describing a related chain that combines CVE-2026-120705 with CVE-2026-129245 and CVE-2026-120704. The project fixed the issues quietly in the October 2026 releases and held the details until 2026-11-23.
Exploitation Context
watchTowr reported exploitation beginning 2026-11-25. Yordan Ganchev, the firm's principal threat intelligence specialist, said that in the early hours of that day its global honeypot network saw traffic leveraging CVE-2026-120705 and CVE-2026-129244, with threat actors from multiple IP addresses validating vulnerable systems by creating stored queries on GeoServer machines, checking whether they had been created, and deleting them immediately afterward. That behaviour is reconnaissance, not full exploitation, and no source has confirmed a successful end-to-end code execution in the wild; the RCE chain is so far described as demonstrated by researchers rather than observed in attacks.
No threat actor has been attributed, no ransomware use is recorded, and no Shadowserver, Censys or GreyNoise exposure counts have been published for these specific CVEs. Note that public reporting names CVE-2026-129244 alongside CVE-2026-120705 in the observed probes, while CISA listed CVE-2026-129243 rather than CVE-2026-129244; the two are adjacent steps in the same chain and the discrepancy is not resolved in available sources.
Remediation
- Upgrade GeoServer to 2.27.7, 2.28.6 or 3.0.2 depending on your branch. If you embed GeoTools directly, move to 33.7, 34.6 or 35.2.
- Patch the whole chain, not just this CVE. The same releases fix CVE-2026-129242, CVE-2026-129243, CVE-2026-129244 and CVE-2026-129245, and the risk here comes from their combination.
- If you cannot upgrade immediately, restrict or disable the WFS service for anonymous users through GeoServer service security, or disable WFS entirely if your deployment does not need it.
- At a reverse proxy, reject requests whose
serviceparameter contains a forward slash, in both the query string and theserviceattribute of XML POST bodies, to close the service security bypass used to reach stored query creation. - Rotate secrets that the data directory may have leaked. Change the remember-me key in
security/config.xmlto a long random value, change administrator passwords, and rotate any database credentials stored in the data directory. The maintainers caution that changing the remember-me key alone does not help if the same file disclosure also reveals the new key, so patch first. - Review the data directory folders
wfs/queryandworkspaces/*/wfs/queryfor stored queries you did not create, the main indicator the project has published. - Search web server and GeoServer logs for
GetFeaturerequests carrying astoredQuery_idofurn:ogc:def:query:OGC-WFS::GetFeatureByIdwith unusualIDvalues containing quotes, angle brackets orxi:include, and forCreateStoredQueryorDropStoredQueryactivity from anonymous sessions, with attention to 2026-11-25 onward. - Where patching is not immediately possible, restrict network access to the host, and audit exposed systems for credential leaks and unauthorized access.
- Federal civilian agencies must remediate by 2026-11-30 under CISA BOD 26-04.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2026-120705 |
| Vendor / Product | OSGeo - GeoServer |
| NVD Published | 2026-11-30 |
| NVD Last Modified | 2026-11-30 |
| CVSS 3.1 Score | 8.6 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| Severity | HIGH |
| CWE | CWE-91 find similar ↗ |
| CISA KEV Added | 2026-11-27 |
| CISA KEV Deadline | 2026-11-30 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2026-08-02 | Jonah Burgess (CryptoCat) of Rapid7 reports the five-step pre-authentication chain to the GeoServer project |
| 2026-11-23 | GeoServer publishes GHSA-39mw-5chv-jh47 and its November 2026 security update post, disclosing the CVE details |
| 2026-11-25 | watchTowr observes in-the-wild exploitation against its global honeypot network from multiple IP addresses |
| 2026-11-27 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2026-11-30 | NVD publishes its record, scoring the issue CVSS 3.1 8.6 High |
| 2026-11-30 | CISA BOD 26-04 remediation deadline |
References
| Resource | Type |
|---|---|
| NVD - CVE-2026-120705 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |
| GeoServer Advisory GHSA-39mw-5chv-jh47 - Unauthenticated WFS GetFeatureById XML Injection | Vendor Advisory |
| GeoServer Security Update - November 2026 | Vendor Advisory |
| GeoServer Advisory GHSA-rv5g-g2r9-58rj - Service Security Rules Bypassed With a Prefixed Service Name | Vendor Advisory |
| Eye Security Labs - Unauthenticated Remote Code Execution Vulnerability in GeoServer | Security Research |
| Jonah Burgess (CryptoCat) - GeoServer Pre-Auth RCE Chain | Security Research |
| The Hacker News - Hackers Exploit Two GeoServer Flaws as Researchers Warn of Unauthenticated RCE Chains | News |
| Cyber Daily - Hackers Target Pair of GeoServer Vulnerabilities Just Days After Disclosure | News |