Geosolutions-it jai-ext
Improper Control of Generation of Code in jai-ext
JAI-EXT is an open-source project which aims to extend the Java Advanced Imaging (JAI) API. Programs allowing Jiffle script to be provided via network request can lead to a Remote Code Execution as the Jiffle script is compiled into Java code via Janino, and executed. In particular, this affects the downstream GeoServer project. Version 1.2.22 will contain a patch that disables the ability to inject malicious code into the resulting script. Users unable to upgrade may negate the ability to compile Jiffle scripts from the final application, by removing janino-x.y.z.jar from the classpath.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- < 1.1.22
Fixed in 1.1.22
from GitHub Security Advisory GHSA-v92f-jx6p-73rx
- < 1.1.22
Fixed in 1.1.22
from GitHub Security Advisory GHSA-v92f-jx6p-73rx
Mitigation
Upgrade it.geosolutions.jaiext.jiffle:jt-jiffle to 1.1.22 or later.
Upgrade it.geosolutions.jaiext.jiffle:jt-jiffle-language to 1.1.22 or later.
Timeline
Days relative to CVE publicationFirst public PoC 1.0 years after publication; added to CISA KEV 2.2 years after publication. First PoC: nuclei template: GeoServer <1.2.2 - Remote Code Execution (nuclei template, 27 Apr 2023).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| c1ph3rbyt3/CVE-2022-24816 | 17 Jan 2025 +2.8 y | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: GeoServer <1.2.2 - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /geoserver/wms
- Content-Type
application/xml- Seen in
- 1 repo: c1ph3rbyt3/CVE-2022-24816
- Evidence
- c1ph3rbyt3/CVE-2022-24816/CVE-2022-24816.py:98
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/geoserver/wms(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2022-24816 geosolutions-it jai-ext exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/geoserver/wms"; reference:url,poc.griffinguard.io/cve/CVE-2022-24816; classtype:web-application-attack; sid:9038717; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: geosolutions-it jai-ext exploit attempt (CVE-2022-24816)
id: gg-pocmon-cve-2022-24816-9038717
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-24816. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2022-24816
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/geoserver/wms'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2022.24816