CVE-2024-29198 GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost

High 7.5 Published Updated

Attackers can perform Server-Side Request Forgery via the TestWfsPost endpoint if Proxy Base URL is unset, potentially accessing internal resources.

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

What is CVE-2024-29198?

CVE-2024-29198 is a high-severity server-side request forgery vulnerability in geoserver, published on 10 Jun 2025. An attacker can exploit it over the internet without logging in, 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. It possible to achieve Service Side Request Forgery (SSRF) via the Demo request endpoint if Proxy Base URL has not been set. Upgrading to GeoServer 2.24.4, or 2.25.2, removes the TestWfsPost servlet resolving this issue.

Weakness: CWE-918

Which versions are affected by CVE-2024-29198?

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

PackageAffectedFixed in
org.geoserver.web:gs-app MavenFrom 2.0.02.24.4
org.geoserver.web:gs-app MavenFrom 2.0.02.24.4
org.geoserver.web:gs-app MavenFrom 2.25.02.25.2
org.geoserver.web:gs-app MavenFrom 2.25.02.25.2
org.geoserver:gs-wfs MavenFrom 2.0.02.24.4
org.geoserver:gs-wfs MavenFrom 2.0.02.24.4
2 more packages
org.geoserver:gs-wfs MavenFrom 2.25.02.25.2
org.geoserver:gs-wfs MavenFrom 2.25.02.25.2

Products include Osgeo Geoserver.

How do I fix CVE-2024-29198?

Upgrade org.geoserver.web:gs-app to a fixed version for your release line: 2.24.4 or 2.25.2.

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

Is CVE-2024-29198 being exploited?

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

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-5gw5-jccf-6hxw.

Is CVE-2024-29198 in your software?

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

Check your SBOMs for free