Skip to content
Connect AISign inSign up free
CVE-2024-364019.8CriticalCWE-95

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

99.8%probability of exploitation in the next 30 days
99th percentile
050100

Higher than 99% of scored CVEs

9.8CriticalCVSS 3.1
LowCrit.
ExploitationIn CISA KEV

ExploitationIn CISA KEV

  1. In CISA KEVCISA KEV catalogue15 Jul 2024
  2. Exploited (reported)SANS ISC22 Jul
  3. Proof of concept public24 public GitHub repositories (unverified), listed by PoC-in-GitHub4 Jul 2024

Not seen so far: scanning observed.

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.

As a list
Other CVEs in geoserver: each mark is one CVE.Drag to move · Ctrl + scroll to zoom · a mark opens that CVE
What changed6 changes, latest 1 Dec

What changed

  1. SecurityOnline reported exploitation by WeaveLotus, according to SOCRadar Threat Research Unit (STRU) SecurityOnline
  2. The Hacker News reported exploitation by RedOps, according to SOCRadar The Hacker News
  3. SANS ISC reported exploitation by Rondo botnet SANS ISC
  4. SANS ISC reported exploitation SANS ISC
  5. CISA added it to the KEV catalogue CISA
  6. 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.

Full timeline
Quiet for 4 dayslast report 1 Dec4 articles3 outlets
22 Jul · SANS ISC first29 Sep22 Oct14 NovNow
  • 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.
All coveragerunning total3The Hacker…2SecurityOnl…128 Nov1 Dec4Now
  • First report
  • Article
  • Running total
Show as table
3 articles about CVE-2024-36401 from 2 outlets
Published (UTC)OutletHeadline
27 Nov 17:30The Hacker NewsRedOps targets Southeast Asian governments in espionage campaign
30 Nov 12:30The Hacker NewsThreatBook shuts down open source CyberStrikeAI after abuse
1 Dec 09:00SecurityOnlineWeaveLotus espionage campaign breaches Southeast Asian governments
  1. ThreatBook shuts down open source CyberStrikeAI after abuse
    The Hacker News · mentions it in passing

New articles also arrive in the RSS feed.

References5 links

References