High

Improper Input Validation in GeoServer

  • Disclosed: 22.04.2022
  • Updated: 11.10.2026 11:21

Impact

The GeoServer security mechanism can perform an unchecked JNDI lookup, which in turn can be used to perform class deserialization and result in arbitrary code execution. The same can happen while configuring data stores with data sources located in JNDI, or while setting up the disk quota mechanism. In order to perform any of the above changes, the attack needs to have obtained admin rights and use either the GeoServer GUI, or its REST API.

Patches

The lookups are going to be restricted in GeoServer 2.21.0, 2.20.4, 2.19.6.

Workarounds

Protection can be achieved by making the GUI (geoserver/web), the REST configuration (geoserver/rest) and the embedded GeoWebCache configuration (geoserver/gwc/rest) unreachable from remote hosts, in addition to protecting access to the file system where the GeoServer configuration is stored.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.geoserver:gs-main >= 2.20.0, < 2.20.4, < 2.19.6 2.20.4, 2.19.6

References

CVSS score 7.2/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-20, CWE-917
Platform
Java / Kotlin (Maven)
Package
org.geoserver:gs-main
Disclosed
22.04.2022
Updated
11.10.2026 11:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-4pm3-f52j-8ggh - CC BY 4.0

Vulnerability history: org.geoserver:gs-main

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
7
First → latest
04.2022 08.2026
Without a fix
2
Exploited in attacks
0

Severity breakdown

  • High 4
  • Medium 3

Disclosures per year

  1. 2022: 2
  2. 2023: 0
  3. 2024: 3
  4. 2025: 0
  5. 2026: 2
  1. Medium · 6.5 CVE-2025-58175 < 2.26.4, >= 2.27.0, < 2.27.3 2.26.4, 2.27.3
  2. Medium · 4.5 CVE-2024-34696 >= 2.10.0, < 2.24.4, >= 2.25.0, < 2.25.1 2.24.4, 2.25.1
  3. High · 7.2 CVE-2023-41877 <= 2.23.4 no fix
  4. High · 7.5 CVE-2021-40822 <= 2.18.5, >= 2.19.0, <= 2.19.2 no fix
  5. Improper Input Validation in GeoServer this entry
    High · 7.2 CVE-2022-24847 >= 2.20.0, < 2.20.4, < 2.19.6 2.20.4, 2.19.6

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.