CRITICAL

CVE-2022-24816

Geosolutionsgroup Jai Ext 2022-04-13 CVSS v3.1
CVSS
10
KEV

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.

Summary dbcve.org

JAI-EXT's Jiffle scripting feature compiles user-provided Jiffle scripts into Java bytecode via the Janino library without sanitizing malicious code injection. This allows remote attackers to execute arbitrary code on the server by submitting crafted Jiffle scripts through network requests, as demonstrated in the downstream GeoServer project.

Mitigation

Upgrade to JAI-EXT version 1.2.22 or later which patches the code injection vector. If upgrade is not immediately possible, remove the janino JAR from the classpath to disable Jiffle script compilation entirely, though this will break any Jiffle-dependent functionality.

Patch Commit

Weakness (CWE)

CWE-94 Code Injection

EPSS Score

99.91%
Probability of exploitation in next 30 days
100th percentile

References

View on dbcve.org
Base CVE data derived from NVD (public domain). Enrichment by dbcve.org (CC-BY-4.0). Fetched via API.
Back to CVE