CVE-2024-36401: OSGeo GeoServer GeoTools Eval Injection Vulnerability
OSGeo · GeoServer
Vendor fix available · Affected: OSGeo GeoServer · Exploitation: in CISA KEV since 15 Jul 2024
Verdict
Patch nowAttackers are using it: in CISA KEV since 15 Jul 2024.
- YesAttacks seen: in CISA KEV since 15 Jul 2024
- YesPublic exploit code since 4 Jul 2024
- 100%Chance of exploitation in 30 days, higher than 99% of scored CVEs
- YesFix available: Vendor fix available
How we decide
Patch now: attacks are on record (CISA KEV, the EU exploited list, CISA marking exploitation active, or a report of exploitation), or exploit code is public for a flaw reachable over the network with no login that has exploit odds of 10% or more, or is rated critical with odds of at least 1%. Patch this cycle: any other public exploit code, scanning observed, or exploit odds of 10% or more. Routine: a fix exists and none of those. No verdict yet: no fix on record and nothing else known. The verdict says how soon to act, not how severe the flaw is, and it changes when these facts change.
What it isNVD
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.
Exploit requirementsfrom the CVSS 3.1 vector
- Where from
- Remotely, over the network
- Login
- None needed
- User action
- None needed
- Conditions
- None stated in the score
The published text states nothing further that an attacker needs.
Federal deadline
CISA KEV · added 15 Jul · catalogue entry
Passed 851 days ago
Higher than 99% of scored CVEs
ExploitationIn CISA KEV
ExploitationIn CISA KEV
- In CISA KEVCISA KEV catalogue15 Jul 2024
- Exploited (reported)SANS ISC22 Jul
- Proof of concept public24 public GitHub repositories (unverified), listed by PoC-in-GitHub4 Jul 2024
Not seen so far: scanning observed.
Who exploits it, and who says so
Weakness and public checksImproper Neutralization of Directives in Dynamically Evaluated Code
Weakness and public checks
- Public check
- GeoServer RCE in Evaluating Property Name Expressions · nuclei template in projectdiscovery/nuclei-templates
- Weakness
- Improper Neutralization of Directives in Dynamically Evaluated Code · Command and Code Injection
CISA required actionFrom the KEV catalogue
CISA required action
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Related CVEsGeoServer
Other CVEs in geoserver
Every published CVE for geoserver , by how far exploitation has gone. This one is among them.
What changed6 changes, latest 1 Dec
What changed
- SecurityOnline reported exploitation by WeaveLotus, according to SOCRadar Threat Research Unit (STRU) SecurityOnline
- The Hacker News reported exploitation by RedOps, according to SOCRadar The Hacker News
- SANS ISC reported exploitation by Rondo botnet SANS ISC
- SANS ISC reported exploitation SANS ISC
- CISA added it to the KEV catalogue CISA
- PoC-in-GitHub lists 23 public GitHub repositories (unverified) PoC-in-GitHub
Coverage4 articles · 3 outlets
Coverage4 articles · 3 outlets
One row per outlet, in order of first report; the chart covers the last 90 days. First in our coverage: SANS ISC, 22 Jul.
- Wed 22 Jul, 19:40 UTC. SANS ISC, first report. Rondo botnet revives Geoserver flaw, exploiting CVE-2024-36401. Cites a CVE in CISA KEV.
- Fri 27 Nov, 17:30 UTC. The Hacker News, its first report on the story. RedOps targets Southeast Asian governments in espionage campaign. Cites a CVE in CISA KEV.
- Mon 30 Nov, 12:30 UTC. The Hacker News. ThreatBook shuts down open source CyberStrikeAI after abuse. Cites a CVE in CISA KEV.
- Tue 1 Dec, 09:00 UTC. SecurityOnline, its first report on the story. WeaveLotus espionage campaign breaches Southeast Asian governments. Cites a CVE in CISA KEV.
- First report
- Article
- Running total
Show as tableHide table
| Published (UTC) | Outlet | Headline |
|---|---|---|
| 27 Nov 17:30 | The Hacker News | RedOps targets Southeast Asian governments in espionage campaign |
| 30 Nov 12:30 | The Hacker News | ThreatBook shuts down open source CyberStrikeAI after abuse |
| 1 Dec 09:00 | SecurityOnline | WeaveLotus espionage campaign breaches Southeast Asian governments |
- ThreatBook shuts down open source CyberStrikeAI after abuseThe Hacker News · mentions it in passing
- Rondo botnet revives Geoserver flaw, exploiting CVE-2024-36401SANS ISC · first in our coverage
New articles also arrive in the RSS feed.