High

GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost

  • Disclosed: 10.06.2025
  • Updated: 11.10.2026 12:21

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

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.geoserver:gs-wfs >= 2.0.0, < 2.24.4, >= 2.25.0, < 2.25.2 2.24.4, 2.25.2
Java / Kotlin (Maven) org.geoserver.web:gs-app >= 2.0.0, < 2.24.4, >= 2.25.0, < 2.25.2 2.24.4, 2.25.2

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-918
Platform
Java / Kotlin (Maven)
Package
org.geoserver:gs-wfs, org.geoserver.web:gs-app
Disclosed
10.06.2025
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-5gw5-jccf-6hxw - CC BY 4.0

Vulnerability history: org.geoserver:gs-wfs

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
5
First → latest
06.2023 06.2025
Without a fix
0
Exploited in attacks
1

Severity breakdown

  • Critical 2
  • High 3

Disclosures per year

  1. 2023: 1
  2. 2024: 1
  3. 2025: 3
  4. 2026: 0
  1. High · 7.5 ghsa-68cf-j696-wvv9 >= 1.0.0, < 2.24.4, >= 2.25.0, < 2.25.2 2.24.4, 2.25.2
  2. High · 8.2 CVE-2025-30220 >= 2.27.0, < 2.27.1, >= 2.26.0, < 2.26.3, < 2.25.7 2.27.1, 2.26.3, 2.25.7
  3. GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost this entry
    High · 7.5 CVE-2024-29198 >= 2.0.0, < 2.24.4, >= 2.25.0, < 2.25.2 2.24.4, 2.25.2
  4. Critical · 9.8 Exploited in attacks CVE-2024-36401 >= 2.24.0, < 2.24.4, >= 2.25.0, < 2.25.2, >= 2.23.0, < 2.23.6, < 2.22.6 2.24.4, 2.25.2, 2.23.6, 2.22.6
  5. Critical · 9.8 CVE-2023-35042 < 2.18.6, >= 2.19.0, < 2.19.6, >= 2.20.0, < 2.20.4 2.18.6, 2.19.6, 2.20.4

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.