Detect OSGeo GeoServer XML Injection / XXE / SSRF Exploitation (CVE-2026-120705) in Splunk
Detects exploitation attempts against OSGeo GeoServer via XML injection, XML External Entity (XXE) processing, and server-side request forgery (SSRF) against OGC web service endpoints (WFS, WMS, WCS, WPS). CVE-2026-120705 is a KEV-listed GeoServer vulnerability (CWE-91 XML injection, CWE-611 XXE, CWE-918 SSRF) added to the CISA KEV catalog on 2026-11-27. Exploitation typically involves POST requests carrying crafted XML payloads (OGC filter/transaction bodies) containing DOCTYPE/ENTITY declarations or SYSTEM references pointing at internal or external resources. This detection inspects web, proxy, and WAF telemetry for malicious XML bodies and anomalous outbound requests originating from GeoServer hosts.
MITRE ATT&CK
- Tactic
- Initial Access Execution Collection
SPL Detection Query
``` df00tech DF00-b121beebac · https://df00tech.com/detections/CVE-2026-120705 · licence: https://df00tech.com/detections/licence ```
index=web (uri_path="*/geoserver/*" OR uri_path IN ("/geoserver/wfs","/geoserver/wms","/geoserver/wcs","/geoserver/ows","/geoserver/wps"))
| where (method="POST" OR method="PUT")
| eval payload=lower(coalesce(form_data, request_body, uri_query))
| where match(payload,"doctype|<!entity|system\s|file:|ftp:|jar:|expect:")
| table _time src_ip method uri_path status http_user_agent dest_host payload
| sort - _time Searches web/proxy logs for POST/PUT requests to GeoServer OGC endpoints containing XXE declarations or SSRF/file protocol handlers in the XML body.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Legitimate wfs:Transaction XML posts from desktop GIS clients
- Authorized DAST/web scanners against the GeoServer instance
- Monitoring probes that submit templated OGC request bodies
Other platforms for CVE-2026-120705
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Simulated XXE POST to GeoServer WFS endpoint (lab)
Expected signal: Web/proxy log entry for POST /geoserver/wfs with request body containing DOCTYPE, ENTITY and SYSTEM
- Test 2 Simulated SSRF via GeoServer OGC request (lab)
Expected signal: Web/proxy log entry for POST /geoserver/ows with body containing SYSTEM and ftp: handler
- Test 3 High-volume OGC endpoint probing (lab)
Expected signal: Numerous POST entries from one source across multiple /geoserver/ paths within a short window
References (5)
- https://geoserver.org/vulnerability/2026/11/23/cve-update.html
- https://github.com/geoserver/geoserver/security/advisories/GHSA-39mw-5chv-jh47
- https://nvd.nist.gov/vuln/detail/CVE-2026-120705
- https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk
- https://thehackernews.com/2026/11/hackers-exploit-two-geoserver-flaws-as.html
Response Playbook
Triage
- Confirm the targeted host is running OSGeo GeoServer and identify its exact version against the vendor advisory GHSA-39mw-5chv-jh47 and the vendor CVE update page to determine whether it is in an affected range.
- Extract and decode the full XML request body from the alerting request and determine whether it contains a DOCTYPE/ENTITY declaration (XXE) or a SYSTEM/protocol reference indicating file read or SSRF.
- Review the source IP reputation, geolocation, and whether the same source issued multiple OGC endpoint requests (WFS/WMS/WCS/WPS) in a short window suggesting automated exploitation.
- Correlate the request with GeoServer application logs and any resulting outbound connections from the GeoServer host to internal or external addresses (SSRF indicator).
Containment
- Block the offending source IP(s) at the WAF/reverse proxy and restrict external access to GeoServer OGC endpoints to known clients.
- Apply the vendor-provided GeoServer update (2.27.7, 2.28.6, or 3.0.2) or configuration mitigation (disable external entity resolution and restrict outbound network access from the GeoServer service account) per the vendor advisory.
Evidence Collection
- Preserve web server, reverse proxy, and WAF logs including full request bodies for the affected time window.
- Capture GeoServer application/catalog logs, JVM process details, and any files the service read or wrote, plus outbound connection records from the GeoServer host.
Escalation Criteria
- !Evidence that the XXE/SSRF retrieved internal files, cloud metadata, or reached internal-only services indicates successful exploitation, escalate to incident response.
- !Outbound data exfiltration, new persistence, or lateral movement originating from the GeoServer host requires immediate escalation and host isolation.
Investigation Guide
Forensic Artifacts
- >
Web/proxy access logs containing POST bodies with DOCTYPE/ENTITY/SYSTEM markers - >
GeoServer application logs and JVM garbage/error traces referencing entity resolution or network calls - >
Outbound connection records from the GeoServer host to internal addresses or metadata endpoints
Tuning Guidance
Baseline the set of legitimate GIS client source IPs and user agents that normally submit wfs:Transaction XML; allowlist those to reduce noise. Tighten body-pattern matching to require DOCTYPE together with SYSTEM/ENTITY rather than any single keyword if valid payloads trigger false positives. Prioritize alerts where the request is followed by anomalous outbound traffic from the GeoServer host.
Hunting Queries
Finds source IPs issuing a high volume of POST/PUT requests across multiple GeoServer OGC endpoints, a pattern consistent with automated exploitation attempts.
// df00tech DF00-b121beebac · https://df00tech.com/detections/CVE-2026-120705 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has "/geoserver/" and csMethod in ("POST","PUT") | summarize count(), dcount(csUriStem) by cIP, bin(TimeGenerated, 1h) | where count_ > 20 ``` df00tech DF00-b121beebac · https://df00tech.com/detections/CVE-2026-120705 · licence: https://df00tech.com/detections/licence ```
index=web uri_path="*/geoserver/*" (method=POST OR method=PUT) | stats count dc(uri_path) as paths by src_ip | where count>20 Atomic Red Team Tests
Sends a benign XML body containing an external entity declaration to a lab GeoServer WFS endpoint to validate web-log and WAF detection of XXE markers.
Command
curl -s -X POST 'https://geoserver.lab.local/geoserver/wfs' -H 'Content-Type: application/xml' --data '<?xml version="1.0"?><!DOCTYPE t [<!ENTITY x SYSTEM "file:///etc/hostname">]><wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs">&x;</wfs:GetFeature>' Cleanup
echo 'No persistent changes; clear test request from lab logs if required' Expected Telemetry
Web/proxy log entry for POST /geoserver/wfs with request body containing DOCTYPE, ENTITY and SYSTEM
Expected Detection
KQL/SPL/EQL rules fire on the DOCTYPE+ENTITY+SYSTEM markers in the POST body
Posts an XML body referencing an internal resource URL to validate detection of SSRF/file-handler markers.
Command
curl -s -X POST 'https://geoserver.lab.local/geoserver/ows' -H 'Content-Type: application/xml' --data '<?xml version="1.0"?><!DOCTYPE t [<!ENTITY s SYSTEM "ftp://169.254.169.254/latest/">]><t>&s;</t>' Cleanup
echo 'No persistent changes' Expected Telemetry
Web/proxy log entry for POST /geoserver/ows with body containing SYSTEM and ftp: handler
Expected Detection
Rules match the SYSTEM + protocol handler markers and flag potential SSRF
Issues repeated POST requests across multiple GeoServer OGC endpoints to validate the high-volume hunting query.
Command
for p in wfs wms wcs ows wps; do for i in $(seq 1 10); do curl -s -X POST "https://geoserver.lab.local/geoserver/$p" -H 'Content-Type: application/xml' --data '<?xml version="1.0"?><t>probe</t>' >/dev/null; done; done Cleanup
echo 'No persistent changes' Expected Telemetry
Numerous POST entries from one source across multiple /geoserver/ paths within a short window
Expected Detection
High-volume hunting query flags the source IP for enumerating multiple OGC endpoints