CVE-2024-29198: GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost

Published Jun 10, 2025
·
Updated

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 PROXYBASEURL 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 <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

Other sources

GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. It possible to achieve Service Side Request Forgery (SSRF) via the Demo request endpoint if Proxy Base URL has not been set. Upgrading to GeoServer 2.24.4, or 2.25.2, removes the TestWfsPost servlet resolving this issue.

MITRE

Affected Software

6 affected componentsFixes available
maven/org.geoserver.web:gs-app>=2.25.0<2.25.2
2.25.2
maven/org.geoserver:gs-wfs>=2.25.0<2.25.2
2.25.2
maven/org.geoserver.web:gs-app>=2.0.0<2.24.4
2.24.4
maven/org.geoserver:gs-wfs>=2.0.0<2.24.4
2.24.4
OSGeo GeoServer>=2.0.0<2.24.4
OSGeo GeoServer>=2.25.0<2.25.2

Event History

Jun 10, 2025
Advisory Published
via GitHub·02:13 PM
Data Sourced
via GitHub·02:13 PM
DescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·02:27 PM
Data Sourced
via MITRE·02:27 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
Affected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-29198?

CVE-2024-29198 is classified as a medium severity vulnerability due to its potential for exploitation via Service Side Request Forgery.

2

How do I fix CVE-2024-29198?

To mitigate CVE-2024-29198, upgrade to GeoServer versions 2.25.2 or 2.24.4 as they contain the necessary fixes.

3

What systems are affected by CVE-2024-29198?

CVE-2024-29198 affects GeoServer versions 2.25.0 to 2.25.2 and 2.0.0 to 2.24.4.

4

Can an unauthenticated user exploit CVE-2024-29198?

Yes, an unauthenticated user can exploit CVE-2024-29198 to perform SSRF attacks if the Proxy Base URL is not configured.

5

What type of attack is facilitated by CVE-2024-29198?

CVE-2024-29198 facilitates Service Side Request Forgery (SSRF) attacks, allowing attackers to reach internal resources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203