Vulnerabilities in pkg:maven/org.geoserver.main/gs-main
PACKAGECVE-2024-34711 is a CRITICAL (CVSS 9.3) geoserver has improper entity_resolution_allowlist uri vulnerability (CWE-20: Improper Input Validation) affecting Gs web app libraries in the Maven ecosystem. The issue involves geoserver has improper entity_resolution_allowlist uri validation in xml processing (ssrf). Remediation is available by upgrading affected packages to version 2.25.0.
pkg:maven/org.geoserver.main/gs-main
Vulnerability advisories affecting package pkg:maven/org.geoserver.main/gs-main. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-mc43-4fqr-c965 | CVE-2024-34711 | CRITICAL | GeoServer has improper ENTITY_RESOLUTION_ALLOWLIST URI validation in XML Processing (SSRF) |
CVE-2024-34711 at a Glance
Security Impact
CVSS: 9.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N).
How to Fix CVE-2024-34711
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.25.0</version>
</dependency>
<dependency>
<groupId>org.geoserver.main</groupId>
<artifactId>gs-main</artifactId>
<version>2.25.0</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-2024-34711, 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.25.0), 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-2024-34711 Affected Gs web app Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.geoserver.web:gs-web-app
|
Maven |
< 2.25.0
|
2.25.0
|
|
org.geoserver.main:gs-main
|
Maven |
< 2.25.0
|
2.25.0
|
References
Frequently Asked Questions
What is CVE-2024-34711?
Which Gs web app versions are affected?
What version fixes CVE-2024-34711?
Is gs-web-app affected?
Is gs-main affected?
What is the CVSS score of CVE-2024-34711?
What CWE is associated with CVE-2024-34711?
How can I check Maven dependencies for CVE-2024-34711?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mc43-4fqr-c965",
"modified" : "2025-06-10T15:35:23Z",
"published" : "2025-06-10T14:13:44Z",
"aliases" : [ "CVE-2024-34711" ],
"summary" : "GeoServer has improper ENTITY_RESOLUTION_ALLOWLIST URI validation in XML Processing (SSRF)",
"details" : "### Summary\nAn improper URI validation vulnerability exists that enables an unauthorized attacker to perform XML External Entities (XEE) attack, then send GET request to any HTTP server. Attacker can abuse this to scan internal networks and gain information about them then exploit further. Moreover, attacker can read limited `.xsd` file on system.\n\n### Details\nBy default, GeoServer use `PreventLocalEntityResolver` class from GeoTools to filter out malicious URIs in XML entities before resolving them. The URI must match the regex `(?i)(jar:file|http|vfs)[^?#;]*\\\\.xsd`. But the regex leaves a chance for attackers to request to any HTTP server or limited file.\n\n### Impact\n\nAn unauthenticated attacker can:\n1. Scan internal network to gain insight about it and exploit further.\n2. SSRF to endpoint ends with `.xsd`.\n3. Read limited `.xsd` file on system.\n\n### Mitigation\n\n1. Define the system property ``ENTITY_RESOLUTION_ALLOWLIST`` to limit the supported external schema locaitons.\n2. The built-in allow list covers the locations required for the operation of OGC web services: ``www.w3.org``,``schemas.opengis.net``,``www.opengis.net``,``inspire.ec.europa.eu/schemas``.\n3. The [user guide](https://docs.geoserver.org/latest/en/user/production/config.html#production-config-external-entities) provides details on how to add additional locations (this is required for app-schema plugin where a schema is supplied to define an output format).\n\n### Resolution \n\n1. GeoServer 2.25.0 and greater default to the use of ``ENTITY_RESOLUTION_ALLOWLIST`` and does not require you to provide a system property.\n2. The use of ``ENTITY_RESOLUTION_ALLOWLIST`` is still supported if you require additional schema locations to be supported beyond the built-in allow list.\n3. GeoServer 2.25.1 change ``ENTITY_RESOLUTION_ALLOWLIST `` no longer supports regular expressions\n\n### References\n\n* [External Entities Resolution](https://docs.geoserver.org/latest/en/user/production/config.html#production-config-external-entities) (GeoServer User Guide)\n\n### Credits\n* Le Mau Anh Phong from VNG Security Response Center & VNUHCM - University of Information Technology",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geoserver.web:gs-web-app"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.25.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geoserver.main:gs-main"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.25.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/geoserver/geoserver/security/advisories/GHSA-mc43-4fqr-c965"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34711"
}, {
"type" : "WEB",
"url" : "https://docs.geoserver.org/latest/en/user/production/config.html#production-config-external-entities"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/geoserver/geoserver"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-200", "CWE-611", "CWE-918" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-10T14:13:44Z",
"nvd_published_at" : "2025-06-10T15:15:22Z"
}
}