CVE-2022-24816criticalunder attackCWE-94

CVE-2022-24816: critical vulnerability in geosolutions-it jai-ext

Improper Control of Generation of Code in jai-ext

Published · Updated

E-mail alert when it lands in KEV, gets a public PoC or its score goes up.

100Vexday Risk Score

Patch now. It under exploitation confirmed by CISA and has a working public exploit.

ssvc Actcvss 10epss 100%
from disclosure to weapon1010 days
Published on NVDApr 13
1st PoC+1010d
CISA KEV+805d
Action required by CISAfederal deadline: 2024-07-17

Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

In short

JAI-EXT allows attackers to execute arbitrary code on a server by submitting malicious Jiffle scripts through network requests. These scripts are compiled to Java code and run without proper validation, giving attackers complete control over the system.

Technical detail

CWE-94: Improper Control of Code Generation. Jiffle scripts submitted via network input are compiled to Java bytecode by the Janino compiler without sanitization, enabling arbitrary code execution. Affected systems include GeoServer and any application accepting Jiffle scripts from untrusted sources; exploitation requires network access to a Jiffle-enabled endpoint.

Summary generated and translated by AI from the official description.

The full analysis of this CVE is available in Portuguese →

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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.