Vulnerabilities in pkg:maven/org.geoserver.main/gs-main

PACKAGE
Advisory Identifier: GHSA-mc43-4fqr-c965
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.geoserver.main/gs-main

1 Known Advisory Record(s)

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

CVE Identifier CVE-2024-34711
GHSA Identifier GHSA-mc43-4fqr-c965
Severity CRITICAL
CVSS v3.1 Base Score 9.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Gs web app
Package Ecosystem Maven
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (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.

org.geoserver.web:gs-web-app fixed: 2.25.0
<dependency>
    <groupId>org.geoserver.web</groupId>
    <artifactId>gs-web-app</artifactId>
    <version>2.25.0</version>
</dependency>
org.geoserver.main:gs-main fixed: 2.25.0
<dependency>
    <groupId>org.geoserver.main</groupId>
    <artifactId>gs-main</artifactId>
    <version>2.25.0</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### Summary An 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. ### Details By 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. ### Impact An unauthenticated attacker can: 1. Scan internal network to gain insight about it and exploit further. 2. SSRF to endpoint ends with `.xsd`. 3. Read limited `.xsd` file on system. ### Mitigation 1. Define the system property ``ENTITY_RESOLUTION_ALLOWLIST`` to limit the supported external schema locaitons. 2. 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``. 3. 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). ### Resolution 1. GeoServer 2.25.0 and greater default to the use of ``ENTITY_RESOLUTION_ALLOWLIST`` and does not require you to provide a system property. 2. The use of ``ENTITY_RESOLUTION_ALLOWLIST`` is still supported if you require additional schema locations to be supported beyond the built-in allow list. 3. GeoServer 2.25.1 change ``ENTITY_RESOLUTION_ALLOWLIST `` no longer supports regular expressions ### References * [External Entities Resolution](https://docs.geoserver.org/latest/en/user/production/config.html#production-config-external-entities) (GeoServer User Guide) ### Credits * Le Mau Anh Phong from VNG Security Response Center & VNUHCM - University of Information Technology

CVE-2024-34711 Affected Gs web app Versions

2 component(s)
Fixed Versions:
2.25.0
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?
CVE-2024-34711 is a security vulnerability in Gs web app involving GeoServer has improper ENTITY_RESOLUTION_ALLOWLIST URI validation in XML Processing (SSRF) under CWE-20: Improper Input Validation.
Which Gs web app versions are affected?
Affected versions include releases prior to 2.25.0 across affected packages: org.geoserver.web:gs-web-app, org.geoserver.main:gs-main.
What version fixes CVE-2024-34711?
Upgrading to 2.25.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gs-web-app affected?
Yes, org.geoserver.web:gs-web-app is affected in releases prior to 2.25.0. Upgrade your dependency to 2.25.0 or later.
Is gs-main affected?
Yes, org.geoserver.main:gs-main is affected in releases prior to 2.25.0. Upgrade your dependency to 2.25.0 or later.
What is the CVSS score of CVE-2024-34711?
CVE-2024-34711 has a CVSS v3.1 base score of 9.3 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N.
What CWE is associated with CVE-2024-34711?
CVE-2024-34711 is classified under CWE-20: Improper Input Validation (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.).
How can I check Maven dependencies for CVE-2024-34711?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.geoserver.web'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}