CVE-2023-41339 Unsecured WMS dynamic styling sld=<url> parameter affords blind unauthenticated SSRF in GeoServer

High 8.6 Published Updated

Unauthenticated attackers can exploit unsecured dynamic styling parameters to perform Server-Side Request Forgery, potentially stealing credentials.

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

What is CVE-2023-41339?

CVE-2023-41339 is a high-severity server-side request forgery vulnerability in geoserver, published on 24 Oct 2023. 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. The WMS specification defines an ``sld=<url>`` parameter for GetMap, GetLegendGraphic and GetFeatureInfo operations for user supplied "dynamic styling". Enabling the use of dynamic styles, without also configuring URL checks, provides the opportunity for Service Side Request Forgery. This vulnerability can be used to steal user NetNTLMv2 hashes which could be relayed or cracked externally to gain further access. This vulnerability has been patched in versions 2.22.5 and 2.23.2.

Weakness: CWE-918

Which versions are affected by CVE-2023-41339?

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

PackageAffectedFixed in
org.geoserver.web:gs-web-app MavenAll versions2.22.5
org.geoserver.web:gs-web-app MavenAll versions2.22.5
org.geoserver.web:gs-web-app MavenFrom 2.23.02.23.2
org.geoserver.web:gs-web-app MavenFrom 2.23.02.23.2
org.geoserver:gs-wms MavenAll versions2.22.5
org.geoserver:gs-wms MavenAll versions2.22.5
2 more packages
org.geoserver:gs-wms MavenFrom 2.23.02.23.2
org.geoserver:gs-wms MavenFrom 2.23.02.23.2

Products include Osgeo Geoserver.

How do I fix CVE-2023-41339?

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

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

Is CVE-2023-41339 being exploited?

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

Sources

Also known as GHSA-cqpc-x2c6-2gmf.

Is CVE-2023-41339 in your software?

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

Check your SBOMs for free