CVE-2024-36401: Remote Code Execution (RCE) vulnerability in geoserver

CVE-2024-36401 · Severity: critical · CVSS 3.1 · Exploited in the wild · Published 2024-07-01

OSGeo GeoServer and GeoTools are vulnerable to Remote Code Execution (RCE) due to unsafe evaluation of property names as XPath expressions via the commons-jxpath library. Unauthenticated attackers can exploit this through various OGC request parameters (e.g., WFS, WMS, WPS) to execute arbitrary code on the server.

Technologies: org.geoserver:gs-wfs (Maven), org.geoserver:gs-wms (Maven), org.geoserver.web:gs-web-app (Maven), OSGeo GeoServer. Vendors: Maven, OSGeo.

Quick answers

Is CVE-2024-36401 exploited in the wild?
Yes. CVE-2024-36401 is known to be exploited in the wild, first recorded on 15 July 2024. Treat it as urgent.
How severe is CVE-2024-36401?
Critical severity, with a CVSS score of 3.1, published 1 July 2024.
Which products and versions are affected?
org.geoserver:gs-wfs (Maven) ECOSYSTEM:introduced=2.24.0,fixed=2.24.4; org.geoserver:gs-wms (Maven) ECOSYSTEM:introduced=2.24.0,fixed=2.24.4; org.geoserver.web:gs-web-app (Maven) ECOSYSTEM:introduced=2.24.0,fixed=2.24.4.
Is there a fix for CVE-2024-36401?
Yes. org.geoserver:gs-wfs (Maven): upgrade to 2.24.4 or later; org.geoserver:gs-wms (Maven): upgrade to 2.24.4 or later; org.geoserver.web:gs-web-app (Maven): upgrade to 2.24.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2024-36401 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2024-36401?
Check whether you run org.geoserver:gs-wfs (Maven), org.geoserver:gs-wms (Maven), org.geoserver.web:gs-web-app (Maven) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • org.geoserver:gs-wfs (Maven): upgrade to 2.24.4 or later
    # set org.geoserver:gs-wfs to 2.24.4 in your pom.xml or build.gradle
  • org.geoserver:gs-wms (Maven): upgrade to 2.24.4 or later
    # set org.geoserver:gs-wms to 2.24.4 in your pom.xml or build.gradle
  • org.geoserver.web:gs-web-app (Maven): upgrade to 2.24.4 or later
    # set org.geoserver.web:gs-web-app to 2.24.4 in your pom.xml or build.gradle

Affected products

  • OSGeo GeoServer < 2.22.6, 2.23.0 to < 2.23.6, 2.24.0 to < 2.24.4, 2.25.0 to < 2.25.2
  • OSGeo GeoTools < 29.6, 30.0 to < 30.4, 31.0 to < 31.2

Identifiers

  • CVE-2024-36401
  • GHSA-6jj6-gm7p-fcvv

Timeline

  • 2024-07-15: disclosed
  • 2024-07-15: kev added: Added to CISA Known Exploited Vulnerabilities Catalog
  • 2024-07-15: advisory

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.