CVE-2022-24816: Improper Control of Generation of Code ('Code Injection') in jai-ext
CVE-2022-24816 · Severity: critical · CVSS 3.1 · Exploited in the wild · Published 2023-09-19
OSGeo GeoServer JAI-EXT contains a code injection vulnerability where Jiffle scripts provided via network requests are compiled into Java code via Janino and executed. This allows remote attackers to achieve arbitrary code execution on the underlying system.
Yes. it.geosolutions.jaiext.jiffle:jt-jiffle (Maven): upgrade to 1.1.22 or later; it.geosolutions.jaiext.jiffle:jt-jiffle-language (Maven): upgrade to 1.1.22 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2022-24816 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2022-24816?
Check whether you run it.geosolutions.jaiext.jiffle:jt-jiffle (Maven), it.geosolutions.jaiext.jiffle:jt-jiffle-language (Maven) or OSGeo JAI-Ext at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
it.geosolutions.jaiext.jiffle:jt-jiffle (Maven): upgrade to 1.1.22 or later
# set it.geosolutions.jaiext.jiffle:jt-jiffle to 1.1.22 in your pom.xml or build.gradle
it.geosolutions.jaiext.jiffle:jt-jiffle-language (Maven): upgrade to 1.1.22 or later
# set it.geosolutions.jaiext.jiffle:jt-jiffle-language to 1.1.22 in your pom.xml or build.gradle
Affected products
GeoSolutionsGroup JAI-EXT < 1.1.22
OSGeo GeoServer
Identifiers
CVE-2022-24816
GHSA-v92f-jx6p-73rx
Timeline
2022-04-13: disclosed: NVD Published Date
2024-06-26: kev added: Added to CISA Known Exploited Vulnerabilities Catalog
2024-06-26: exploited: Reported as exploited in the wild per CISA KEV entry