OSGeo · JAI-EXT
CVE-2022-24816
Improper Control of Generation of Code in jai-ext
What it is
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.
CISA: OSGeo GeoServer JAI-EXT contains a code injection vulnerability that, when programs use jt-jiffle and allow Jiffle script to be provided via network request, could allow remote code execution.
What to do
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Deadline for US federal agencies: July 17, 2024
More exploited flaws from OSGeo
| Added | Vulnerability | Product | Severity | Attack chance |
|---|---|---|---|---|
| Dec 11, 2025 | Improper Restriction of XML External Entity Reference | GeoServer | High 8.2 | 61% |
| Jul 15, 2024 | GeoTools Eval Injection | GeoServer | Critical 9.8 | 99.8% |
Sources: Known Exploited Vulnerabilities (CISA, public domain), CVE records (cve.org) and EPSS (FIRST). The chance of attacks is the EPSS estimate that someone will try to exploit the flaw in the next 30 days.