Security mailing lists by PureSourceCode

CVE-2024-36401

CRITICAL 9.8CVSS 3.1known exploited

Remote Code Execution (RCE) vulnerability in geoserver

GeoServer is an open source server that allows users to share and edit geospatial data. Prior to versions 2.22.6, 2.23.6, 2.24.4, and 2.25.2, multiple OGC request parameters allow Remote Code Execution (RCE) by unauthenticated users through specially crafted input against a default GeoServer installation due to unsafely evaluating property names as XPath expressions.

The GeoTools library API that GeoServer calls evaluates property/attribute names for feature types in a way that unsafely passes them to the commons-jxpath library which can execute arbitrary code when evaluating XPath expressions. This XPath evaluation is intended to be used only by complex feature types (i.e., Application Schema data stores) but is incorrectly being applied to simple feature types as well which makes this vulnerability apply to ALL GeoServer instances. No public PoC is provided but this vulnerability has been confirmed to be exploitable through WFS GetFeature, WFS GetPropertyValue, WMS GetMap, WMS GetFeatureInfo, WMS GetLegendGraphic and WPS Execute requests. This vulnerability can lead to executing arbitrary code.

Versions 2.22.6, 2.23.6, 2.24.4, and 2.25.2 contain a patch for the issue. A workaround exists by removing the gt-complex-x.y.jar file from the GeoServer where x.y is the GeoTools version (e.g., gt-complex-31.1.jar if running GeoServer 2.25.1). This will remove the vulnerable code from GeoServer but may break some GeoServer functionality or prevent GeoServer from deploying if the gt-complex module is needed.

Published
1 Jul 2024
Last modified
30 Nov 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-94CWE-95
Also known as
GHSA-6jj6-gm7p-fcvv
Sources
NVDJSONCISA KEVJSONOSV GHSA-6jj6-gm7p-fcvvJSON
In CISA's Known Exploited Vulnerabilities catalog since 15 Jul 2024; US federal agencies must fix it by 5 Aug 2024.
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A
NVD security-advisories@github.com (Secondary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD osgeo geoserver
cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*
< 2.22.6 2.22.6
NVD osgeo geoserver
cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*
>= 2.23.0, < 2.23.6 2.23.6
NVD osgeo geoserver
cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*
>= 2.24.0, < 2.24.4 2.24.4
NVD osgeo geoserver
cpe:2.3:a:osgeo:geoserver:*:*:*:*:*:*:*:*
>= 2.25.0, < 2.25.2 2.25.2
NVD osgeo geotools
cpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:*
< 29.6 29.6
NVD osgeo geotools
cpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:*
>= 30.1, < 30.4 30.4
NVD osgeo geotools
cpe:2.3:a:osgeo:geotools:*:*:*:*:*:*:*:*
>= 31.1, < 31.2 31.2
NVD osgeo geotools
cpe:2.3:a:osgeo:geotools:30.0:-:*:*:*:*:*:*
= 30.0
NVD osgeo geotools
cpe:2.3:a:osgeo:geotools:30.0:rc:*:*:*:*:*:*
= 30.0
NVD osgeo geotools
cpe:2.3:a:osgeo:geotools:31.0:-:*:*:*:*:*:*
= 31.0
NVD osgeo geotools
cpe:2.3:a:osgeo:geotools:31.0:rc:*:*:*:*:*:*
= 31.0
OSV Maven org.geoserver.web:gs-web-app >= 2.24.0, < 2.24.4 2.24.4
OSV Maven org.geoserver:gs-wfs >= 2.24.0, < 2.24.4 2.24.4
OSV Maven org.geoserver:gs-wms >= 2.24.0, < 2.24.4 2.24.4
OSV Maven org.geoserver.web:gs-web-app >= 2.25.0, < 2.25.2 2.25.2
OSV Maven org.geoserver:gs-wfs >= 2.25.0, < 2.25.2 2.25.2
OSV Maven org.geoserver:gs-wms >= 2.25.0, < 2.25.2 2.25.2
OSV Maven org.geoserver.web:gs-web-app >= 2.23.0, < 2.23.6 2.23.6
OSV Maven org.geoserver:gs-wfs >= 2.23.0, < 2.23.6 2.23.6
OSV Maven org.geoserver:gs-wms >= 2.23.0, < 2.23.6 2.23.6
OSV Maven org.geoserver.web:gs-web-app < 2.22.6 2.22.6
OSV Maven org.geoserver:gs-wfs < 2.22.6 2.22.6
OSV Maven org.geoserver:gs-wms < 2.22.6 2.22.6

References

History

  • 30 Nov 2026 19:41 UTC · NVD: affected list changed (11 entries)
  • 25 Nov 2026 20:55 UTC · NVD: first stored (published 1 Jul 2024)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Jul 2024)
  • 25 Nov 2026 20:10 UTC · CISA KEV: first stored (published 15 Jul 2024)
  • 15 Jul 2024 00:00 UTC · Listed as known exploited
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.