# CVE-2022-24816: Improper Control of Generation of Code in jai-ext

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 10.0
- **CVSS:** 10.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Yes: in CISA KEV since 2024-06-26; federal due date 2024-07-17
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 75.36% (percentile 100, 2026-11-26)
- **CWE:** CWE-94
- **Aliases:** GHSA-v92f-jx6p-73rx
- **Published:** 2022-04-13T20:45:17.000Z
- **Modified:** 2026-06-17T04:32:35.060Z

## Who should check

- Projects that depend on Maven package it.geosolutions.jaiext.jiffle:jt-jiffle (\< 1.1.22)
- Projects that depend on Maven package it.geosolutions.jaiext.jiffle:jt-jiffle-language (\< 1.1.22)
- Anyone running geosolutions-it jai-ext \< 1.1.22

## Description

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 and fixed versions

- Maven `it.geosolutions.jaiext.jiffle:jt-jiffle`: affected \< 1.1.22; fixed 1.1.22 (osv)
- Maven `it.geosolutions.jaiext.jiffle:jt-jiffle-language`: affected \< 1.1.22; fixed 1.1.22 (osv)
- geosolutions-it jai-ext: \< 1.1.22 (cvelist)

## 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

- 2022-04-13: Published
- 2024-06-26: Added to CISA KEV (exploited in the wild)
- 2024-07-17: CISA remediation due date for US federal agencies
- 2026-06-17: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-24816. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-24816.md
Affected: it.geosolutions.jaiext.jiffle:jt-jiffle < 1.1.22; it.geosolutions.jaiext.jiffle:jt-jiffle-language < 1.1.22
Fixed in: 1.1.22

Steps:
1. Search this machine and project for it.geosolutions.jaiext.jiffle:jt-jiffle (Maven), it.geosolutions.jaiext.jiffle:jt-jiffle-language (Maven), geosolutions-it jai-ext: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-24816 being exploited?

Yes. CISA lists CVE-2022-24816 in its Known Exploited Vulnerabilities catalog since 2024-06-26, which means attacks have been seen. No public exploit code is known. EPSS estimates a 75.36% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-24816?

Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2022-24816?

it.geosolutions.jaiext.jiffle:jt-jiffle \< 1.1.22; it.geosolutions.jaiext.jiffle:jt-jiffle-language \< 1.1.22.

### Is there a fix for CVE-2022-24816?

Yes. Fixed in 1.1.22. 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.

### How do I check if I'm affected by CVE-2022-24816?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/geosolutions-it/jai-ext/security/advisories/GHSA-v92f-jx6p-73rx>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-24816>
- patch: <https://github.com/geosolutions-it/jai-ext/commit/cb1d6565d38954676b0a366da4f965fef38da1cb>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24816>
- other: <https://github.com/geosolutions-it/jai-ext>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-24816>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-v92f-jx6p-73rx> (license: <https://creativecommons.org/licenses/by/4.0/>)
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2022-24816> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-24816>
