GeoServer up to 2.23.5/2.24.3/2.25.1 OGC Request eval injection
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 9.7 | $0-$5k | 0.00 |
Summary
A vulnerability marked as very critical has been reported in GeoServer up to 2.23.5/2.24.3/2.25.1. Impacted is an unknown function of the component OGC Request Handler. Performing a manipulation results in eval injection. This vulnerability is cataloged as CVE-2024-36401. It is possible to initiate the attack remotely. Furthermore, there is an exploit available. It is suggested to upgrade the affected component.
Details
A vulnerability classified as very critical has been found in GeoServer up to 2.23.5/2.24.3/2.25.1. This affects an unknown code of the component OGC Request Handler. The manipulation with an unknown input leads to a eval injection vulnerability. CWE is classifying the issue as CWE-95. The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval"). This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:
GeoServer is an open source server that allows users to share and edit geospatial data. Prior to versions 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.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.
It is possible to read the advisory at github.com. This vulnerability is uniquely identified as CVE-2024-36401 since 05/27/2024. The exploitability is told to be easy. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details are unknown but a public exploit is available. The pricing for an exploit might be around USD $0-$5k at the moment (estimation calculated on 08/31/2025).
The exploit is shared for download at packetstormsecurity.com. It is declared as attacked. The CISA Known Exploited Vulnerabilities Catalog lists this issue since 07/15/2024 with a due date of 08/05/2024:
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.Upgrading to version 2.23.6, 2.24.4 or 2.25.2 eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at 0day.today (39682) and CNNVD (CNNVD-202407-085). Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Product
Name
Version
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 9.8VulDB Meta Temp Score: 9.7
VulDB Base Score: 9.8
VulDB Temp Score: 9.4
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 9.8
NVD Vector: 🔍
CNA Base Score: 9.8
CNA Vector (GitHub, Inc.): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Eval injectionCWE: CWE-95 / CWE-94 / CWE-74
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Attacked
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
KEV Added: 🔍
KEV Due: 🔍
KEV Remediation: 🔍
KEV Ransomware: 🔍
KEV Notice: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
0day.today: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: GeoServer 2.23.6/2.24.4/2.25.2
Patch: github.com
Timeline
05/27/2024 🔍07/01/2024 🔍
07/01/2024 🔍
08/31/2025 🔍
Sources
Product: github.comAdvisory: GHSA-6jj6-gm7p-fcvv
Status: Confirmed
CVE: CVE-2024-36401 (🔍)
GCVE (CVE): GCVE-0-2024-36401
GCVE (VulDB): GCVE-100-270099
CNNVD: CNNVD-202407-085 - GeoServer 代码注入漏洞
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 07/01/2024 19:03Updated: 08/31/2025 00:56
Changes: 07/01/2024 19:03 (64), 07/14/2024 00:32 (6), 07/15/2024 20:21 (13), 07/15/2024 23:35 (2), 07/16/2024 03:25 (11), 07/17/2024 10:44 (1), 07/21/2024 00:11 (2), 08/04/2024 00:54 (1), 09/09/2024 22:30 (1), 03/23/2025 00:12 (2), 08/31/2025 00:56 (1)
Complete: 🔍
Cache ID: 216::103
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.