CVE-2025-58175: Gs web app GeoServer Has A Server-Side Request Vulnerability
MODERATECVE-2025-58175 is a MODERATE (CVSS 6.5) geoserver has a server-side request vulnerability (CWE-20: Improper Input Validation) affecting Gs web app libraries in the Maven ecosystem. The issue involves geoserver has a server-side request forgery (ssrf) vulnerability in its xml entity resolution. Remediation is available by upgrading affected packages to version 2.26.4, 2.27.3.
CVE-2025-58175 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L).
How to Fix CVE-2025-58175
To remediate this vulnerability, upgrade all affected Gs web app dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.geoserver.web</groupId>
<artifactId>gs-web-app</artifactId>
<version>2.26.4</version>
</dependency>
<dependency>
<groupId>org.geoserver</groupId>
<artifactId>gs-main</artifactId>
<version>2.26.4</version>
</dependency>
<dependency>
<groupId>org.geoserver</groupId>
<artifactId>gs-main</artifactId>
<version>2.27.3</version>
</dependency>
<dependency>
<groupId>org.geoserver.web</groupId>
<artifactId>gs-web-app</artifactId>
<version>2.27.3</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.geoserver.web
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-58175, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.geoserver.web
Analyze the terminal output to locate any version of Gs web app in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.26.4), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.geoserver.web command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Gs web app, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-58175 Affected Gs web app Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.geoserver.web:gs-web-app
|
Maven |
< 2.26.4
|
2.26.4
|
|
org.geoserver:gs-main
|
Maven |
< 2.26.4
|
2.26.4
|
|
org.geoserver:gs-main
|
Maven |
≥ 2.27.0
< 2.27.3
|
2.27.3
|
|
org.geoserver.web:gs-web-app
|
Maven |
≥ 2.27.0
< 2.27.3
|
2.27.3
|
References
Frequently Asked Questions
What is CVE-2025-58175?
Which Gs web app versions are affected?
What version fixes CVE-2025-58175?
Is gs-web-app affected?
Is gs-main affected?
What is the CVSS score of CVE-2025-58175?
What CWE is associated with CVE-2025-58175?
How can I check Maven dependencies for CVE-2025-58175?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x4r9-gmw3-hxww",
"modified" : "2026-06-12T18:23:35Z",
"published" : "2026-06-12T18:23:35Z",
"aliases" : [ "CVE-2025-58175" ],
"summary" : "GeoServer has a Server-Side Request Forgery (SSRF) Vulnerability in its XML Entity Resolution",
"details" : "### Summary\nA GeoServer that uses `ENTITY_RESOLUTION_ALLOWLIST` may allow attacker to perform unauthenticated Server-Side Request Forgery (SSRF).\n\n### Details\nThis vulnerability requires that GeoServer is set up to use a proxy base URL and the `ENTITY_RESOLUTION_ALLOWLIST` (default since 2.25.0):\n\n### Impact\nThis vulnerability allows an attacker to cause GeoServer to make requests to an unintended location.\n\n### Workaround\nGeoServer installations are only affected by this vulnerability if they use a proxy base URL that does not contain a URL path or end with a slash (e.g., `https://somesite.org` instead of `https://somesite.org/` or `https://somesite.org/geoserver`). If the proxy base URL does not contain a path, adding a slash to the end of the URL will mitigate this vulnerability.\n\n### Resources\nhttps://osgeo-org.atlassian.net/browse/GEOS-11867\nhttps://github.com/geoserver/geoserver/pull/8622\n\n### Credits:\n- Le Mau Anh Phong at Verichains Cyber Force",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geoserver.web:gs-web-app"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.26.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.26.3"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geoserver:gs-main"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.26.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.26.3"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geoserver:gs-main"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.27.0"
}, {
"fixed" : "2.27.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.27.2"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geoserver.web:gs-web-app"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.27.0"
}, {
"fixed" : "2.27.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.27.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/geoserver/geoserver/security/advisories/GHSA-x4r9-gmw3-hxww"
}, {
"type" : "WEB",
"url" : "https://github.com/geoserver/geoserver/pull/8622"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/geoserver/geoserver"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-611", "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-12T18:23:35Z",
"nvd_published_at" : null
}
}