Act nowKnown exploited

Advisory · CVE-2026-120705

Unauthenticated XML injection in GeoServer WFS can read files and reach internal URLs

GeoServer contains an XML injection flaw in the WFS 2.0 GetFeatureById stored query that lets an unauthenticated remote attacker read local text files or fetch attacker-chosen HTTP or HTTPS URLs. CISA lists it as known exploited; it is one step in a chain that ends in unauthenticated remote code execution.

Vendor
OSGeo
Product
GeoServer
Identifier / CWE
CVE-2026-120705
CWE-91, CWE-611, CWE-918
Action timing
Nov 30, 2026
ELI5

Explain it like I’m five

GeoServer answers map questions, and one kind of question lets a stranger slip in instructions that make it read files off its own disk or fetch web pages it was never supposed to show anyone.

SIMPLIFIED_ATTACK_PATH04 STEPS
  1. 01Crafted stored query

    An unauthenticated attacker sends a WFS 2.0 GetFeatureById request with a crafted ID parameter.

  2. 02XML injection

    The ID is processed as XML without proper neutralization.

  3. 03File read or SSRF

    The server reads local text files accessible to the GeoServer process or fetches attacker-specified HTTP or HTTPS URLs.

  4. 04Chain to RCE

    Combined with the other flaws in the same chain, this reaches unauthenticated remote code execution on the GeoServer instance.

What happened

CISA added CVE-2026-120705 to the Known Exploited Vulnerabilities catalog on November 27, 2026, with a remediation due date of November 30, 2026. GeoServer contains an XML injection vulnerability in the WFS 2.0 GetFeatureById stored query: an unauthenticated remote attacker can make the server read local text files accessible to the GeoServer process or fetch attacker-specified HTTP or HTTPS URLs via a crafted ID parameter.

The vendor rates the flaw High. It is step 3 of a five-step chain the GeoServer team describes in its November 2026 security update: a data-directory path disclosure, this XML injection, a service authorization bypass, a predictable remember-me key allowing administrator session forgery, and deserialization in the JDBC user and role services. Together the chain achieves unauthenticated remote code execution.

GeoServer fixed the flaw in releases 3.0.2, 2.28.6, and 2.27.7. Earlier releases in those lines are affected. NVD had not yet published a record for this CVE at the time this advisory was written.

What to do

  1. Upgrade GeoServer to 3.0.2, 2.28.6, or 2.27.7, matching your release line.
  2. Restrict network access to GeoServer, especially internet-facing WFS endpoints, until patched.
  3. Review WFS access logs for GetFeatureById requests with unusual ID parameters, requests to local file paths, or outbound fetches to unexpected URLs.
  4. Check whether the other flaws in the same chain are also present on your instance and patch them together, since the chain only needs the full set to reach code execution.
  5. If file reads or outbound requests cannot be excluded, determine which local files and internal services were reachable from the GeoServer process and rotate any exposed credentials.

Management note

This is a known-exploited flaw that is dangerous on its own as a file read and SSRF, and worse as part of a published chain to unauthenticated remote code execution. GeoServer instances are often internet-facing by design, so treat the upgrade as urgent and check the logs, not just the version number.