GHSA-5gw5-jccf-6hxw

Suggest an improvement
Source
https://github.com/advisories/GHSA-5gw5-jccf-6hxw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-5gw5-jccf-6hxw/GHSA-5gw5-jccf-6hxw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5gw5-jccf-6hxw
Aliases
Published
2025-06-10T14:13:25Z
Modified
2025-06-10T15:35:17Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost
Details

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:

       <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

Database specific
{
    "cwe_ids":  [
        "CWE-918"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-06-10T14:13:25Z",
    "nvd_published_at":  "2025-06-10T15:15:22Z",
    "severity":  "HIGH"
}
References

Affected packages

Maven / org.geoserver:gs-wfs

Package

Name
org.geoserver:gs-wfs
View open source insights on deps.dev
Purl
pkg:maven/org.geoserver/gs-wfs

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.24.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-5gw5-jccf-6hxw/GHSA-5gw5-jccf-6hxw.json"

Maven / org.geoserver.web:gs-app

Package

Name
org.geoserver.web:gs-app
View open source insights on deps.dev
Purl
pkg:maven/org.geoserver.web/gs-app

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.24.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-5gw5-jccf-6hxw/GHSA-5gw5-jccf-6hxw.json"

Maven / org.geoserver:gs-wfs

Package

Name
org.geoserver:gs-wfs
View open source insights on deps.dev
Purl
pkg:maven/org.geoserver/gs-wfs

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.25.0
Fixed
2.25.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-5gw5-jccf-6hxw/GHSA-5gw5-jccf-6hxw.json"

Maven / org.geoserver.web:gs-app

Package

Name
org.geoserver.web:gs-app
View open source insights on deps.dev
Purl
pkg:maven/org.geoserver.web/gs-app

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.25.0
Fixed
2.25.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-5gw5-jccf-6hxw/GHSA-5gw5-jccf-6hxw.json"