CVE-2023-51444 GeoServer arbitrary file upload vulnerability in REST Coverage Store API

High 7.2 Published Updated

Authenticated administrators can upload arbitrary files to arbitrary locations via the REST API, leading to remote code execution or privilege escalation.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-51444?

CVE-2023-51444 is a high-severity vulnerability in geoserver, published on 20 Mar 2024. An attacker needs administrator access to exploit it, with no action from the victim.

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

Weakness: CWE-434, CWE-20

Which versions are affected by CVE-2023-51444?

8 open source packages ship an affected version, including org.geoserver:gs-platform and org.geoserver:gs-restconfig. It affects 1 product.

PackageAffectedFixed in
org.geoserver:gs-platform MavenAll versions2.23.4
org.geoserver:gs-platform MavenAll versions2.23.4
org.geoserver:gs-platform MavenFrom 2.24.02.24.1
org.geoserver:gs-platform MavenFrom 2.24.02.24.1
org.geoserver:gs-restconfig MavenAll versions2.23.4
org.geoserver:gs-restconfig MavenAll versions2.23.4
2 more packages
org.geoserver:gs-restconfig MavenFrom 2.24.02.24.1
org.geoserver:gs-restconfig MavenFrom 2.24.02.24.1

Products include Geoserver Geoserver.

How do I fix CVE-2023-51444?

Upgrade org.geoserver:gs-platform to a fixed version for your release line: 2.23.4 or 2.24.1.

Is CVE-2023-51444 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-51444 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-9v5q-2gwq-q9hq.

Is CVE-2023-51444 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free