CVE-2026-120705: OSGeo GeoServer XML Injection Leading to RCE Chain
An XML injection vulnerability (CVE-2026-120705) in OSGeo GeoServer allows unauthenticated remote attackers to read local files or fetch arbitrary URLs. This flaw can be chained with other vulnerabilities to achieve unauthenticated remote code execution. Community intelligence indicates active exploitation of this CVE.
Overview
CVE-2026-120705 describes an XML injection vulnerability in OSGeo GeoServer that permits unauthenticated remote attackers to read local files or initiate outbound HTTP/HTTPS requests. This vulnerability is critical as it can be combined with other GeoServer flaws to achieve unauthenticated remote code execution. Community intelligence indicates this CVE is actively exploited, necessitating immediate attention from defenders.
Technical Analysis
This vulnerability is an XML injection flaw within OSGeo GeoServer. An unauthenticated remote attacker can exploit it by crafting a malicious ID parameter within a WFS 2.0 GetFeatureById stored query. The crafted ID parameter allows the attacker to:
* Cause the GeoServer process to read local text files accessible to it.
* Force the GeoServer process to fetch attacker-specified HTTP or HTTPS URLs.
This vulnerability serves as a critical primitive that can be chained with CVE-2026-129244, CVE-2026-129243, CVE-2026-129245, and CVE-2026-129242 to achieve unauthenticated remote code execution on affected GeoServer instances. Specific affected versions are not detailed in the provided source material.
Detection
Defenders should focus on web server access logs and GeoServer application logs for signs of exploitation attempts.
* Web Server Logs (Apache, Nginx, IIS): Look for GET requests to the /geoserver/wfs endpoint containing the query parameters service=WFS&version=2.0.0&request=GetFeatureById and an id= parameter with unusual or suspicious content.
* Suspicious id parameter content:
* XML special characters (<, >, &, ', ").
* Common file paths (e.g., /etc/passwd, C:\Windows\win.ini).
* URL schemes (e.g., http://, https://).
* GeoServer Application Logs: Monitor for errors or unusual activity related to WFS GetFeatureById queries, especially those involving file system access or outbound network connections.
Sigma Detection Rules
GeoServer WFS GetFeatureById XML Injection Attempt
title: GeoServer WFS GetFeatureById XML Injection Attempt
id: 9029e46f-c1b8-4d51-a90d-275b22b7a242
status: experimental
description: Detects attempts to exploit CVE-2026-120705 via XML injection in the GeoServer WFS GetFeatureById query's ID parameter.
logsource:
category: webserver
detection:
selection_base:
cs-uri-stem|contains: '/geoserver/wfs'
cs-uri-query|contains:
- 'service=WFS'
- 'version=2.0.0'
- 'request=GetFeatureById'
- 'id='
selection_xml_chars:
cs-uri-query|contains:
- '<'
- '>'
- '&'
- "'"
- '"'
selection_file_paths:
cs-uri-query|contains:
- '/etc/passwd'
- '/etc/shadow'
- 'C:\\Windows\\win.ini'
- 'C:\\Windows\\System32\\drivers\\etc\\hosts'
condition: selection_base and (selection_xml_chars or selection_file_paths)
level: high
GeoServer WFS GetFeatureById URL Fetch Attempt
title: GeoServer WFS GetFeatureById URL Fetch Attempt
id: 7e1f5d2b-a1c3-4e0e-9b8f-1d2a6c7f8e1a
status: experimental
description: Detects attempts to exploit CVE-2026-120705 to cause GeoServer to fetch arbitrary URLs via the WFS GetFeatureById query's ID parameter.
logsource:
category: webserver
detection:
selection_base:
cs-uri-stem|contains: '/geoserver/wfs'
cs-uri-query|contains:
- 'service=WFS'
- 'version=2.0.0'
- 'request=GetFeatureById'
- 'id='
selection_urls:
cs-uri-query|contains:
- 'http://'
- 'https://'
condition: selection_base and selection_urls
level: medium
Mitigations
- Patch Immediately: Apply any available vendor-provided patches for OSGeo GeoServer as soon as they are released. Monitor official GeoServer channels for updates.
- Network Segmentation: Restrict direct public access to GeoServer instances. Place them behind a reverse proxy or Web Application Firewall (WAF) and enforce strict network segmentation.
- Input Validation/WAF Rules: Implement WAF rules to detect and block requests to
/geoserver/wfsthat contain suspicious XML-like syntax, file paths, or URL schemes within theidparameter ofGetFeatureByIdqueries. - Least Privilege: Ensure the GeoServer process runs with the absolute minimum necessary file system and network permissions to limit the impact of successful exploitation.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-120705
- https://ltna.com.au/cyber
Indicators of Compromise
No public IOCs available at time of writing.
MITRE ATT&CK
Generated by
gemini-2.5-flash ·1,664 input / 1,564 output tokens ·
Reviewed and approved by a human analyst before publication