# CVE-2022-24816: Improper Control of Generation of Code ('Code Injection') in jai-ext

Source: https://junglewise.ai/threats/cve-2022-24816-osgeo-geoserver-jai-ext-code-injection-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-09-19. Updated: 2026-05-09  
License: CC BY 4.0 with a link back

CVE-2022-24816 · Severity: critical · CVSS 3.1 · Exploited in the wild · Published 2023-09-19

OSGeo GeoServer JAI-EXT contains a code injection vulnerability where Jiffle scripts provided via network requests are compiled into Java code via Janino and executed. This allows remote attackers to achieve arbitrary code execution on the underlying system.

Vendors: [Maven](https://junglewise.ai/threats/vendors/maven), [OSGeo](https://junglewise.ai/threats/vendors/osgeo).

## Quick answers

**Is CVE-2022-24816 exploited in the wild?** Yes. CVE-2022-24816 is known to be exploited in the wild, first recorded on 26 June 2024. Treat it as urgent.

**How severe is CVE-2022-24816?** Critical severity, with a CVSS score of 3.1, published 19 September 2023.

**Which products and versions are affected?** it.geosolutions.jaiext.jiffle:jt-jiffle (Maven) ECOSYSTEM:introduced=0,fixed=1.1.22; it.geosolutions.jaiext.jiffle:jt-jiffle-language (Maven) ECOSYSTEM:introduced=0,fixed=1.1.22.

**Is there a fix for CVE-2022-24816?** Yes. it.geosolutions.jaiext.jiffle:jt-jiffle (Maven): upgrade to 1.1.22 or later; it.geosolutions.jaiext.jiffle:jt-jiffle-language (Maven): upgrade to 1.1.22 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2022-24816 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2022-24816?** Check whether you run it.geosolutions.jaiext.jiffle:jt-jiffle (Maven), it.geosolutions.jaiext.jiffle:jt-jiffle-language (Maven) or OSGeo JAI-Ext at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- it.geosolutions.jaiext.jiffle:jt-jiffle (Maven): upgrade to 1.1.22 or later

  ```sh
  # set it.geosolutions.jaiext.jiffle:jt-jiffle to 1.1.22 in your pom.xml or build.gradle
  ```

- it.geosolutions.jaiext.jiffle:jt-jiffle-language (Maven): upgrade to 1.1.22 or later

  ```sh
  # set it.geosolutions.jaiext.jiffle:jt-jiffle-language to 1.1.22 in your pom.xml or build.gradle
  ```


## Affected products

- GeoSolutionsGroup JAI-EXT < 1.1.22
- OSGeo GeoServer

## Identifiers

- CVE-2022-24816
- GHSA-v92f-jx6p-73rx

## Timeline

- 2022-04-13: disclosed: NVD Published Date
- 2024-06-26: kev added: Added to CISA Known Exploited Vulnerabilities Catalog
- 2024-06-26: exploited: Reported as exploited in the wild per CISA KEV entry
