CVE-2024-40625 GeoServer Coverage REST API Allows Server Side Request Forgery

Medium 5.5 Published Updated

Attackers can exploit the Coverage REST API to perform Server-Side Request Forgery by uploading files via arbitrary URLs, potentially accessing internal resources.

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

What is CVE-2024-40625?

CVE-2024-40625 is a medium-severity server-side request forgery vulnerability in geoserver, published on 10 Jun 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

GeoServer is an open source server that allows users to share and edit geospatial data. The Coverage rest api /workspaces/{workspaceName}/coveragestores/{storeName}/{method}.{format} allows attackers to upload files with a specified url (with {method} equals 'url') with no restrict. This vulnerability is fixed in 2.26.0.

Weakness: CWE-918

Which versions are affected by CVE-2024-40625?

4 open source packages ship an affected version, including org.geoserver.web:gs-web-app and org.geoserver:gs-rest. It affects 1 product.

PackageAffectedFixed in
org.geoserver.web:gs-web-app MavenAll versions2.26.0
org.geoserver.web:gs-web-app MavenAll versions2.26.0
org.geoserver:gs-rest MavenAll versions2.26.0
org.geoserver:gs-rest MavenAll versions2.26.0

Products include Osgeo Geoserver.

How do I fix CVE-2024-40625?

Upgrade org.geoserver.web:gs-web-app to 2.26.0 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2024-40625 being exploited?

There is no known exploitation of CVE-2024-40625 in the wild and no public exploit code.

Sources

Also known as GHSA-r4hf-r8gj-jgw2.

Is CVE-2024-40625 in your software?

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

Check your SBOMs for free