GeoServer arbitrary file upload vulnerability in REST Coverage Store API
geoserver
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.geoserver:gs-platform Maven |
|
|
| org.geoserver:gs-restconfig Maven |
|
geoserver
| Product | Affected | Fixed in |
|---|---|---|
| org.geoserver:gs-platform Maven |
|
|
| org.geoserver:gs-restconfig Maven |
|
|
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.
From the CVE record · GitHub_M
GeoServer's REST Coverage Store API allows path traversal for coverage stores configured with absolute paths. An authenticated administrator with permission to modify coverage stores can upload files to arbitrary locations, potentially leading to remote code execution or overwriting security files to gain full administrator privileges.
Teams running Maven org.geoserver:gs-platform or org.geoserver:gs-restconfig versions below 2.23.4, or versions 2.24.0 through below 2.24.1, should check their installations.