CVE-2026-120705 - OSGeo GeoServer XML Injection Vulnerability

CVE-2026-120705

OSGeo GeoServer - Unauthenticated File Read and SSRF via the WFS GetFeatureById Stored Query

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

  1. 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.
  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.
  3. 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.
  4. At a reverse proxy, reject requests whose service parameter contains a forward slash, in both the query string and the service attribute of XML POST bodies, to close the service security bypass used to reach stored query creation.
  5. Rotate secrets that the data directory may have leaked. Change the remember-me key in security/config.xml to 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.
  6. Review the data directory folders wfs/query and workspaces/*/wfs/query for stored queries you did not create, the main indicator the project has published.
  7. Search web server and GeoServer logs for GetFeature requests carrying a storedQuery_id of urn:ogc:def:query:OGC-WFS::GetFeatureById with unusual ID values containing quotes, angle brackets or xi:include, and for CreateStoredQuery or DropStoredQuery activity from anonymous sessions, with attention to 2026-11-25 onward.
  8. Where patching is not immediately possible, restrict network access to the host, and audit exposed systems for credential leaks and unauthorized access.
  9. Federal civilian agencies must remediate by 2026-11-30 under CISA BOD 26-04.

Key Details

PropertyValue
CVE ID CVE-2026-120705
Vendor / Product OSGeo - GeoServer
NVD Published2026-11-30
NVD Last Modified2026-11-30
CVSS 3.1 Score8.6
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
SeverityHIGH
CWE CWE-91 find similar ↗
CISA KEV Added2026-11-27
CISA KEV Deadline2026-11-30
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Required Action

CISA BOD 26-04 Deadline: 2026-11-30. Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA's BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA's "Forensics Triage Requirements" (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.

Timeline

DateEvent
2026-08-02Jonah Burgess (CryptoCat) of Rapid7 reports the five-step pre-authentication chain to the GeoServer project
2026-11-23GeoServer publishes GHSA-39mw-5chv-jh47 and its November 2026 security update post, disclosing the CVE details
2026-11-25watchTowr observes in-the-wild exploitation against its global honeypot network from multiple IP addresses
2026-11-27Added to CISA Known Exploited Vulnerabilities catalog
2026-11-30NVD publishes its record, scoring the issue CVSS 3.1 8.6 High
2026-11-30CISA BOD 26-04 remediation deadline