Skip to content
OpenAdvisories
High · 7.2 Public exploit CVE-2023-51444 EUVD-2024-0890GHSA-9v5q-2gwq-q9hq

GeoServer arbitrary file upload vulnerability in REST Coverage Store API

Published Mar 20, 2024 · Updated Aug 21, 2024 · Assigned by GitHub_M

Description

GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. An arbitrary file upload vulnerability exists in versions prior to 2.23.4 and 2.24.1 that enables an authenticated administrator with permissions to modify coverage stores through the REST Coverage Store API to upload arbitrary file contents to arbitrary file locations which can lead to remote code execution. Coverage stores that are configured using relative paths use a GeoServer Resource implementation that has validation to prevent path traversal but coverage stores that are configured using absolute paths use a different Resource implementation that does not prevent path traversal. This vulnerability can lead to executing arbitrary code. An administrator with limited privileges could also potentially exploit this to overwrite GeoServer security files and obtain full administrator privileges. Versions 2.23.4 and 2.24.1 contain a fix for this issue.

Affected products

VendorProductAffectedFixed
geoserver geoserver < 2.23.4, = 2.24.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.geoserver:gs-platform < 2.23.4 2.23.4 GHSA-9v5q-2gwq-q9hq
Maven org.geoserver:gs-platform >= 2.24.0, < 2.24.1 2.24.1 GHSA-9v5q-2gwq-q9hq
Maven org.geoserver:gs-restconfig < 2.23.4 2.23.4 GHSA-9v5q-2gwq-q9hq
Maven org.geoserver:gs-restconfig >= 2.24.0, < 2.24.1 2.24.1 GHSA-9v5q-2gwq-q9hq

References