>samit_hota
Back to advisories

Security Advisory · SH-2026-266

MEDIUMCVE-2026-120705OPEN

OSGeo GeoServer Vulnerability (CVE-2026-120705) Allows Unauthenticated RCE

Affected: OSGeo GeoServer

Samit Hota·
#kev#osgeo

Unauthenticated attackers can leverage an XML injection vulnerability in OSGeo GeoServer to read sensitive local files and issue internal network requests without prior credentials. Tracked under CVE-2026-120705, this OSGeo GeoServer XML Injection Vulnerability resides in the handling of the ID parameter during Web Feature Service (WFS) 2.0 GetFeatureById stored query processing. When combined with a cluster of related security flaws, this entry point elevates from local data leakage to complete, unauthenticated remote code execution (RCE).

Technical Analysis and Exploitation Path

GeoServer relies heavily on XML-based protocol parsers to process spatial data requests. In the WFS 2.0 specification implementation, stored queries permit pre-configured parameterized queries to be executed dynamically by clients. When parsing the ID parameter inside a GetFeatureById stored query call, GeoServer fails to adequately sanitize input or restrict external XML entity resolution.

An unauthenticated remote attacker can craft an HTTP GET or POST request targeting the WFS endpoint containing malicious XML structures or parameter encodings. This yields two immediate initial access primitives:

  • Arbitrary Local File Disclosure: The GeoServer process reads local files accessible under its operating system permissions, such as application configuration files, stored database credentials, system configuration, or sensitive geospatial datasets.
  • Server-Side Request Forgery (SSRF): The application forces the underlying server to resolve external or internal HTTP/HTTPS URLs specified by the attacker. This allows scanning of internal network spaces or querying cloud environment metadata endpoints.

The primary severity of CVE-2026-120705 lies in weaponized chain scenarios. By combining this XML injection with secondary flaws—specifically CVE-2026-129244, CVE-2026-129243, CVE-2026-129245, and CVE-2026-129242—attackers can leverage file read or SSRF capabilities to bypass administrative boundaries, manipulate internal endpoints, or achieve direct command execution on the host operating system.

Attack Surface and Target Profile

GeoServer is a foundational component across government mapping agencies, public utilities, defense contractors, and enterprise GIS environments. Because Web Feature Services are designed to expose public or inter-agency mapping layers, the GeoServer WFS endpoint (/geoserver/wfs) is frequently exposed to the public internet without mandatory user authentication.

Deployments often run inside Java application servers (such as Tomcat) or within containerized environments (Docker/Kubernetes). These instances commonly maintain persistent database connections to backend systems like PostGIS or Oracle Spatial. Gaining shell access on a GeoServer host gives attackers an immediate operational pivot into core internal networks and sensitive geospatial infrastructure.

Mitigation and Forensics Guidance

Organizations operating OSGeo GeoServer should audit exposed instances immediately and execute targeted remediation steps:

  • Apply Vendor Updates: Deploy the latest patched version of GeoServer that resolves CVE-2026-120705 and its companion vulnerabilities (CVE-2026-129244, CVE-2026-129243, CVE-2026-129245, and CVE-2026-129242). If patching cannot be executed immediately, restrict internet access to WFS endpoints or disable unauthenticated stored query functionality where feasible.
  • Directive Deadlines: Federal entities and organizations subject to CISA Directive BOD 26-04 guidance must ensure remediation or cloud service mitigation is completed prior to the mandatory November 30, 2026 due date.
  • Forensic Triage: Review web application firewall (WAF) and GeoServer request logs for anomalous wfs or GetFeatureById queries containing XML entity definitions (<!ENTITY), file protocol schemas (file://), or out-of-band HTTP callbacks directed toward unfamiliar IP addresses.

Found something similar in your stack?

Let's find out before it becomes an incident.

Book an advisory call