CVE-2022-24816
Improper Control of Generation of Code in jai-ext
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.
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
Affected products
geosolutions-it · jai-extpublic PoCs found — 1
githubgithub.com/c1ph3rbyt3/CVE-2022-24816★ 1⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.
Want to know if your infrastructure is exposed to this?
Talk to TrueHacking →