8.6highExploited
GeoServer: Unauthenticated WFS GetFeatureById XML injection
- Severity
- 8.6high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 21.2% (higher than 97% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
GeoServer is an open source server that allows users to share and edit geospatial data. Prior to "org.geoserver:gs-wfs-core" versions 2.27.7, 2.28.6, and 3.0.2 and prior to "org.geotools:gt-metadata" versions 33.7, 34.6, and 35.2, GeoServer exposes the built-in WFS 2.0 stored query urn:ogc:def:query:OGC-WFS::GetFeatureById through the public GetFeature operation. The stored query substituted the caller's ID parameter into an XML template without escaping, then parsed the result without GeoServer's entity resolver. An unauthenticated caller could inject XML, including an xi:include, into the query. This issue has been patched in "org.geoserver:gs-wfs-core" versions 2.27.7, 2.28.6, and 3.0.2 and "org.geotools:gt-metadata" versions 33.7, 34.6, and 35.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| geoserver geoserver | < 33.7, >= 34.0, < 34.6, >= 35.0, < 35.2, < 2.27.7, >= 2.28.0, < 2.28.6, >= 3.0.0, < 3.0.2 | CVE List |
| osgeo geoserver | before 2.27.7, from 2.28.0 before 2.28.6, from 3.0.0 before 3.0.2 | NVD, CISA KEV |
| osgeo geotools | before 33.7, from 34.0 before 34.6, from 35.0 before 35.2 | NVD |
Classification
What each source says
CVE List
GeoServer is an open source server that allows users to share and edit geospatial data. Prior to "org.geoserver:gs-wfs-core" versions 2.27.7, 2.28.6, and 3.0.2 and prior to "org.geotools:gt-metadata" versions 33.7, 34.6, and 35.2, GeoServer exposes the built-in WFS 2.0 stored query urn:ogc:def:query:OGC-WFS::GetFeatureById through the public GetFeature operation. The stored query substituted the caller's ID parameter into an XML template without escaping, then parsed the result without GeoServer's entity resolver. An unauthenticated caller could inject XML, including an xi:include, into the query. This issue has been patched in "org.geoserver:gs-wfs-core" versions 2.27.7, 2.28.6, and 3.0.2 and "org.geotools:gt-metadata" versions 33.7, 34.6, and 35.2.
CISA KEV
OsGeo GeoServer contains an XML injection vulnerability that allows an unauthenticated remote attacker to cause the server to read local text files accessible to the GeoServer process or fetch attacker-specified HTTP or HTTPS URLs via a crafted ID parameter in the WFS 2.0 GetFeatureById stored query. This vulnerability can be chained with CVE-2026-129244, CVE-2026-129243, CVE-2026-129245, and CVE-2026-129242 to achieve unauthenticated remote code execution on an affected GeoServer instance.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-120705 changed 2026-11-30 | CVE Terms of Use |
| NVD | CVE-2026-120705 changed 2026-11-30 | Public domain |
| CISA KEV | CVE-2026-120705 changed 2026-11-27 | CC0-1.0 |