Actively exploited · Published Apr 13, 2022 · Assigned by GitHub_M
CVE-2022-24816Improper Control of Generation of Code in jai-ext
Critical 10.0 Exploited
In plain English
A critical-severity code injection in jai-ext from geosolutions-it. Attackers are actively exploiting it in the wild (listed by CISA on June 26, 2024). The chance it is exploited in the next 30 days is estimated at 99.9% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
CISA guidance
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Federal agencies must remediate by Jul 17, 2024.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | it.geosolutions.jaiext.jiffle:jt-jiffle | 1.1.22 | GHSA-v92f-jx6p-73rx |
| Maven | it.geosolutions.jaiext.jiffle:jt-jiffle-language | 1.1.22 | GHSA-v92f-jx6p-73rx |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| geosolutions-it | jai-ext | < 1.1.22 |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/geosolutions-it/jai-ext/security/advisories/GHSA-v92f-jx6p-73rx x_refsource_CONFIRM
- https://github.com/geosolutions-it/jai-ext/commit/cb1d6565d38954676b0a366da4f965fef38da1cb x_refsource_MISC
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24816 government-resource