PoC Monitor
← All CVEs
CVE-2022-24816published 13 Apr 2022 20:45 UTCData: JSON · API

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.

First public PoC 1.0 yearsafter publication · 27 Apr 2023 · nuclei template
Public PoCs21 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS10.0critical · scored by CNA · CWE-94
CISA KEV 26 Jun 20242.2 years after publication

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

it.geosolutions.jaiext.jiffle:jt-jiffle (Maven)
  • < 1.1.22

Fixed in 1.1.22

from GitHub Security Advisory GHSA-v92f-jx6p-73rx

it.geosolutions.jaiext.jiffle:jt-jiffle-language (Maven)
  • < 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 publication
t=0+90+180+270+360+450+540+630+720CVE published13 Apr 2022 · t = 0First public PoC27 Apr 2023 · t+1.0yAdded to CISA KEV26 Jun 2024 · t+2.2y

First 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
RepositoryCreatedStarsAssessment
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.
SourceTitlePublishedFound by us
nuclei templatenuclei template: GeoServer <1.2.2 - Remote Code Execution27 Apr 202314 Nov 2026

PoC characteristics

What to hunt for in your logs · from 1 PoC repo

POST /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.

POST /geoserver/wms
(?i)^/geoserver/wms(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /geoserver/wms
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.

POST /geoserver/wms
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