CVE-2024-29198: GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost
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.
Published Jun 10, 2025
Affected packages
org.geoserver:gs-wfs
- Ecosystem
- Maven
- Affected
- >= 2.0.0, < 2.24.4
- Fixed in
- 2.24.4
- Check
mvn dependency:tree -Dincludes=org.geoserver:gs-wfs
org.geoserver.web:gs-app
- Ecosystem
- Maven
- Affected
- >= 2.0.0, < 2.24.4
- Fixed in
- 2.24.4
- Check
mvn dependency:tree -Dincludes=org.geoserver.web:gs-app
org.geoserver:gs-wfs
- Ecosystem
- Maven
- Affected
- >= 2.25.0, < 2.25.2
- Fixed in
- 2.25.2
- Check
mvn dependency:tree -Dincludes=org.geoserver:gs-wfs
org.geoserver.web:gs-app
- Ecosystem
- Maven
- Affected
- >= 2.25.0, < 2.25.2
- Fixed in
- 2.25.2
- Check
mvn dependency:tree -Dincludes=org.geoserver.web:gs-app
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
- 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.
- 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:
<security-constraint>
<web-resource-collection>
<web-resource-name>BlockDemoRequests</web-resource-name>
<url-pattern>/TestWfsPost/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>BLOCKED</role-name>
</auth-constraint>
</security-constraint>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
Credited to thomsmith, felixmaechtle, davidblasby, nils-loose, jodygarnett, aaime.
References
- https://github.com/geoserver/geoserver/security/advisories/GHSA-5gw5-jccf-6hxw
- https://nvd.nist.gov/vuln/detail/CVE-2021-40822
- https://osgeo-org.atlassian.net/browse/GEOS-11390
- https://osgeo-org.atlassian.net/browse/GEOS-11794
- https://nvd.nist.gov/vuln/detail/CVE-2024-29198
- https://github.com/advisories/GHSA-5gw5-jccf-6hxw
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2025-30220
[XBOW-025-068] XML External Entity (XXE) Processing Vulnerability in GeoServer WFS Service
high8.2Jun 10, 2025GHSA-68cf-j696-wvv9
GeoServer vulnerable to SSRF in TestWfsPost for specific targets, e.g. PHP + Nginx
high7.5Jun 10, 2025CVE-2024-36401
Remote Code Execution (RCE) vulnerability in geoserver
critical9.8ExploitedJul 1, 2024
