GitHub Advisoryadvisory · Maven
GHSA-5gw5-jccf-6hxw GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost
HIGH
Official page ↗
- Aliases
- CVE-2024-29198
- Ecosystem
- Maven
- Packages
- org.geoserver:gs-wfs, org.geoserver.web:gs-app
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-918
- Reviewed
- 2025-06-10
Affected packages
• Maven org.geoserver:gs-wfs: >= 2.0.0, < 2.24.4 → fixed in 2.24.4
• Maven org.geoserver.web:gs-app: >= 2.0.0, < 2.24.4 → fixed in 2.24.4
• Maven org.geoserver:gs-wfs: >= 2.25.0, < 2.25.2 → fixed in 2.25.2
• Maven org.geoserver.web:gs-app: >= 2.25.0, < 2.25.2 → fixed in 2.25.2
Description
Summary
It possible to achieve Service Side Request Forgery (SSRF) via the Demo request endpoint if Proxy Base URL has not been set.
Details
A unauthenticated user can supply a request that will be issued by the server. This can be used to enumerate internal networks and also in the case of cloud instances can be used to obtain sensitive data.
Mitigation
1. When using GeoServer with a proxy, manage the proxy base value as a system administrator, use the application property ``PROXY_BASE_URL`` to provide a non-empty value that cannot be overridden by the user interface or incoming request.
2. When using GeoServer directly without a proxy, block all access to TestWfsPost by editing the web.xml file. Adding this block right before the end:
```xml
BlockDemoRequests
/TestWfsPost/*
BLOCKED
```
Resolution
Upgrading to GeoServer 2.24.4, or 2.25.2, removes the ``TestWfsPost`` servlet resolving this issue.
The demo request page functionality is now implemented directly in the browser.
Reference
• https://osgeo-org.atlassian.net/browse/GEOS-11794
• https://osgeo-org.atlassian.net/browse/GEOS-11390
• https://nvd.nist.gov/vuln/detail/CVE-2021-40822
Related
Alias · CVE (1)
- CVE-2024-29198 GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. vulnerability
Weakness · CWE (1)
- CWE-918 Server-Side Request Forgery weakness
References
- https://github.com/geoserver/geoserver/security/advisories/GHSA-5gw5-jccf-6hxw web
- https://nvd.nist.gov/vuln/detail/CVE-2021-40822 advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-29198 advisory
- https://github.com/geoserver/geoserver package
- https://osgeo-org.atlassian.net/browse/GEOS-11390 web
- https://osgeo-org.atlassian.net/browse/GEOS-11794 web