CVE-2026-120705: 
GeoServer Analyse et atténuation de la vulnérabilité

Aperçu

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).

Détails techniques

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).

Exploitabilité

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.

Étapes d’exploitation

  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).

Indicateurs de compromis

  • 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).

Atténuation et solutions de contournement

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).

Réactions de la communauté

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).

Ressources supplémentaires


Source: Ce rapport a été généré à l’aide de l’IA

Connexe GeoServer Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

CVE-2026-129245CRITICAL9.2
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NonOuiNov 24, 2026
CVE-2026-129243HIGH8.8
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NonOuiNov 24, 2026
CVE-2026-120705HIGH8.6
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NonOuiNov 24, 2026
CVE-2026-120704HIGH7.2
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NonOuiNov 24, 2026
CVE-2026-129244MEDIUM6.9
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NonOuiNov 24, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités