Vulnerability in org.geoserver:gs-wms
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2023-35042 has been found in org.geoserver:gs-wms.
Successful exploitation can lead to full system takeover.
What to do: upgrade org.geoserver:gs-wms to 2.20.4 or later.
If unsure, ask your IT team or search "org.geoserver:gs-wms CVE-2023-35042" on the vendor's site.
CVE-2023-35042 (org.geoserver:gs-wms)
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Patched: 2.20.4 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (unclassified) exists in org.geoserver:gs-wms.
Check the vendor advisory for the affected versions of org.geoserver:gs-wms.
Severity: ?. Successful exploitation can lead to full system takeover.
Update to 2.20.4.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Audit SBOM/dependencies to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで org.geoserver:gs-wms を使っているサービスとバージョンを洗い出す。
-
2
Apply patchpatch
Upgrade org.geoserver:gs-wms to 2.20.4ステージング環境で 2.20.4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Mavenorg.geoserver:gs-wms |
≥ 2.20.0, < 2.20.4→ 2.20.4 |
2.20.4 |
| Mavenorg.geoserver:gs-wfs |
≥ 2.20.0, < 2.20.4→ 2.20.4 |
2.20.4 |
| Mavenorg.geoserver:gs-wps |
≥ 2.20.0, < 2.20.4→ 2.20.4 |
2.20.4 |
Original description The description as published by the source.
GeoServer 2, in some configurations, allows remote attackers to execute arbitrary code via java.lang.Runtime.getRuntime().exec in wps:LiteralData within a wps:Execute request, as exploited in the wild in June 2023.
RCE in Jiffle
The Jiffle map algebra language, provided by jai-ext, allows efficiently execute map algebra over large images. A vulnerability CVE-2022-24816 has been recently found in Jiffle, that allows a Code Injection to be performed by properly crafting a Jiffle invocation.
In the case of GeoServer, the injection can be performed from a remote request.
Assessment
GeoTools includes the Jiffle language as part of the gt-process-raster- module, applications using it should check whether it’s possible to provide a Jiffle script from remote, and if so, upgrade or remove the functionality (see also the GeoServer mitigation, below).
The issue is of particular interest for GeoServer users, as GeoServer embeds Jiffle in the base WAR package. Jiffle is available as a OGC function, for usage in SLD rendering transformations.
This allows for a Remote Code Execution in properly crafted OGC requests, as well as from the administration console, when editing SLD files.
Mitigations
In case you cannot upgrade at once, then the following mitigation is strongly recommended:
- Stop GeoServer
- Open the war file, get into
WEB-INF/liband remove thejanino-.jar - Restart GeoServer.
This effectively…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory nvd.nist.gov
- advisory isc.sans.edu
- package github.com
- web docs.geoserver.org
- web geoserver.org
- web osgeo-org.atlassian.net