CVE-2024-40625 GeoServer Coverage REST API Allows Server Side Request Forgery
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.
| Package | Affected | Fixed in |
|---|---|---|
org.geoserver.web:gs-web-app Maven | All versions | 2.26.0 |
org.geoserver.web:gs-web-app Maven | All versions | 2.26.0 |
org.geoserver:gs-rest Maven | All versions | 2.26.0 |
org.geoserver:gs-rest Maven | All versions | 2.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.
Other vulnerabilities in geoserver
- CVE-2023-25157 Unfiltered SQL Injection Vulnerabilities in Geoserver
- CVE-2024-34711 GeoServer has improper ENTITY_RESOLUTION_ALLOWLIST URI validation in XML Processing (SSRF)
- CVE-2023-41339 Unsecured WMS dynamic styling sld=<url> parameter affords blind unauthenticated SSRF in GeoServer
- CVE-2023-43795 WPS Server Side Request Forgery in GeoServer
- CVE-2024-29198 GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost
Sources
Also known as GHSA-r4hf-r8gj-jgw2.