Vulnerability DatabaseCVE-2026-120705

CVE-2026-120705: 
Chainguard vulnerability analysis and mitigation

Overview

CVE-2026-120705 is an unauthenticated WFS GetFeatureById XML injection vulnerability in GeoServer that allows remote attackers to read local files and perform server-side request forgery (SSRF) without any authentication. Disclosed on November 23, 2026, it affects org.geoserver:gs-wfs-core versions up to 2.27.6, 2.28.0–2.28.5, and 3.0.0–3.0.1, as well as org.geotools:gt-metadata versions up to 33.6, 34.0–34.5, and 35.0–35.1. It carries a CVSS v3.1 base score of 8.6 (High) (GitHub Advisory). Active exploitation in the wild has been confirmed shortly after disclosure (watchtowr, SecurityWeek).

Technical details

The root cause is a combination of XML Injection (CWE-91), Improper Restriction of XML External Entity Reference (CWE-611), and Server-Side Request Forgery (CWE-918). Specifically, StoredQuery.compile() substitutes the caller-supplied ID parameter directly into the GetFeatureById XML template (<fes:ResourceId rid='${ID}'/>) via plain string replacement, without escaping quotes or angle brackets. This allows an attacker to break out of the rid attribute and inject arbitrary XML elements, including xi:include directives. The resulting XML is then parsed using new Parser(new WFSConfiguration()) — critically, without the GeoServer catalog entity resolver used elsewhere — so XInclude and external entity references are resolved with ordinary URI access, enabling local file reads and SSRF (GitHub Advisory). No authentication, custom stored query creation, or CreateStoredQuery privilege is required to trigger the vulnerability.

Impact

A single unauthenticated HTTP request to the WFS GetFeature endpoint can read any local text file accessible to the GeoServer process, or fetch an arbitrary attacker-controlled HTTP/HTTPS URL. When a layer is published to anonymous users, the retrieved file or URL content is echoed back in the Illegal property name error response; otherwise the file is still read server-side but not returned to the attacker. This enables sensitive configuration file disclosure (e.g., credentials, private keys), internal network reconnaissance via SSRF, and — when chained with other GeoServer vulnerabilities (CVE-2026-129243, CVE-2026-129245) — a full unauthenticated remote code execution chain (GitHub Advisory, sh3llc0d3 blog).

Exploitability

Active exploitation in the wild has been confirmed by multiple sources including watchtowr, Eye Security, and national CERTs, with probing activity observed within days of the patch release (watchtowr, Canadian Centre for Cyber Security). The vulnerability is exploitable by unauthenticated attackers with no user interaction required, and researchers have documented a five-stage unauthenticated RCE chain combining CVE-2026-120705 with CVE-2026-129243 and CVE-2026-129245 (sh3llc0d3 blog). Public proof-of-concept details have been referenced across multiple threat intelligence platforms (threataft). CISA KEV catalog status and EPSS score are not yet confirmed in available sources.

Exploitation steps

  1. Reconnaissance: Identify internet-facing GeoServer instances using Shodan, Censys, or similar tools, filtering for the WFS GetFeature endpoint (typically /geoserver/wfs or /geoserver/ows). Confirm the version is within the affected range (gs-wfs-core ≤ 2.27.6, 2.28.0–2.28.5, or 3.0.0–3.0.1).
  2. Craft malicious ID parameter: Construct a WFS GetFeature request using the built-in stored query urn:ogc:def:query:OGC-WFS::GetFeatureById. Inject a payload into the ID parameter that closes the rid attribute and appends an xi:include element, e.g.: ID=x'/><xi:include href='file:///etc/passwd' parse='text'/><fes:ResourceId rid='
  3. Send unauthenticated request: Submit the crafted HTTP GET or POST request to the WFS endpoint without any authentication headers. Example: GET /geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=<PAYLOAD>
  4. Retrieve file contents: If a layer is published to anonymous users, the contents of the targeted local file (e.g., /etc/passwd, GeoServer configuration files with credentials) are returned in the Illegal property name error response body.
  5. Perform SSRF: Replace the file:// URI with an http:// or https:// URL pointing to an internal service (e.g., cloud metadata endpoint http://169.254.169.254/latest/meta-data/) to enumerate internal network resources.
  6. Chain for RCE: Use credentials or tokens obtained via file disclosure or SSRF as a stepping stone into CVE-2026-129243 and CVE-2026-129245 to achieve full unauthenticated remote code execution (sh3llc0d3 blog, GitHub Advisory).

Indicators of compromise

  • Network: Unusual HTTP GET or POST requests to /geoserver/wfs or /geoserver/ows containing STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById with ID parameter values containing XML special characters (', >, <, xi:include, file://, or internal IP addresses).
  • Network: Outbound HTTP/HTTPS connections from the GeoServer host to internal network addresses (e.g., 169.254.169.254, RFC-1918 ranges) or unexpected external hosts, initiated by the GeoServer Java process.
  • Logs: GeoServer access logs showing repeated WFS GetFeature requests with encoded or malformed ID parameters; error log entries containing Illegal property name alongside file path strings or URL content fragments.
  • Logs: GeoServer application logs (geoserver.log) showing XInclude resolution attempts or XML parsing errors referencing file:// URIs or unexpected HTTP URLs.
  • File System: Unexpected access timestamps on sensitive files readable by the GeoServer process (e.g., /etc/passwd, web.xml, GeoServer security/ directory files).
  • Process: Unusual child processes spawned by the GeoServer JVM (indicative of RCE chain exploitation via chained CVEs) (GitHub Advisory, watchtowr).

Mitigation and workarounds

GeoServer has released patched versions: gs-wfs-core 2.27.7, 2.28.6, and 3.0.2; and gt-metadata 33.7, 34.6, and 35.2. The fix ensures stored query parsing uses the GeoServer entity resolver, and GeoTools PreventLocalEntityResolver now checks redirects (GitHub Advisory). As an immediate workaround, restrict or disable the WFS service for anonymous users via GeoServer's service security settings, or disable WFS entirely if not required. Network-level controls (firewall rules, reverse proxy ACLs) restricting access to the WFS endpoint can also reduce exposure while patching is underway (Canadian Centre for Cyber Security).

Community reactions

The vulnerability attracted rapid and widespread attention from the security community, with watchtowr publishing a detailed FAQ and confirming active exploitation within days of disclosure (watchtowr). Eye Security published a technical write-up on the unauthenticated RCE chain, and The Hacker News covered the dual-CVE exploitation scenario (The Hacker News). National cybersecurity agencies including the Canadian Centre for Cyber Security and Switzerland's NCSC issued advisories urging immediate patching (Canadian Centre for Cyber Security). SecurityWeek and multiple threat intelligence platforms highlighted the speed of exploitation following patch release, with researchers warning of a five-stage unauthenticated RCE chain combining three CVEs (SecurityWeek).

Additional resources


Source: This report was generated using AI

Related Chainguard vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-137490HIGH8.7
  • Chainguard logoChainguard
  • surrealdb
NoYesNov 26, 2026
CVE-2026-137588HIGH7.1
  • Chainguard logoChainguard
  • cpe:2.3:a:librechat:librechat
NoYesNov 26, 2026
CVE-2026-137489MEDIUM5.3
  • Chainguard logoChainguard
  • surrealdb
NoYesNov 26, 2026
CVE-2026-137488MEDIUM5.3
  • Chainguard logoChainguard
  • surrealdb
NoYesNov 26, 2026
CVE-2026-137656LOW2.3
  • Chainguard logoChainguard
  • librechat
NoYesNov 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management