{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-24816","id":"CVE-2022-24816","title":"Improper Control of Generation of Code in jai-ext","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 inje","descriptionLong":"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.","published":"2022-04-13T20:45:17.000Z","updated":"2026-10-28T10:25:53.143740799Z","reserved":"2022-02-10T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":["geosolutions-it jai-ext"],"affectedProducts":[{"vendor":"geosolutions-it","product":"jai-ext","defaultStatus":null,"versions":[{"status":"affected","version":"< 1.1.22"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"it.geosolutions.jaiext.jiffle:jt-jiffle","purl":"pkg:maven/it.geosolutions.jaiext.jiffle/jt-jiffle","ranges":["<1.1.22"],"fixed":["1.1.22"],"advisory":"GHSA-v92f-jx6p-73rx"},{"ecosystem":"Maven","name":"it.geosolutions.jaiext.jiffle:jt-jiffle-language","purl":"pkg:maven/it.geosolutions.jaiext.jiffle/jt-jiffle-language","ranges":["<1.1.22"],"fixed":["1.1.22"],"advisory":"GHSA-v92f-jx6p-73rx"}],"cwes":["CWE-94"],"aliases":["GHSA-v92f-jx6p-73rx"],"references":[{"url":"https://github.com/geosolutions-it/jai-ext/security/advisories/GHSA-v92f-jx6p-73rx","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/geosolutions-it/jai-ext/commit/cb1d6565d38954676b0a366da4f965fef38da1cb","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24816","tags":["government-resource","US Government Resource","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24816.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24816","tags":["advisory"]},{"url":"https://github.com/geosolutions-it/jai-ext","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":true,"kevAdded":"2024-06-26","kevDue":"2024-07-17","kevEntry":{"cveID":"CVE-2022-24816","vendorProject":"OSGeo","product":"JAI-EXT","vulnerabilityName":"OSGeo GeoServer JAI-EXT Code Injection Vulnerability","dateAdded":"2024-06-26","shortDescription":"OSGeo GeoServer JAI-EXT contains a code injection vulnerability that, when programs use jt-jiffle and allow Jiffle script to be provided via network request, could allow remote code execution.","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","dueDate":"2024-07-17","knownRansomwareCampaignUse":"Unknown","notes":"This vulnerability affects a common open-source component, third-party library, or a protocol used by different products. The patched JAI-EXT is version 1.1.22: https://github.com/geosolutions-it/jai-ext/releases/tag/1.1.22, https://github.com/geosolutions-it/jai-ext/security/advisories/GHSA-v92f-jx6p-73rx;  https://nvd.nist.gov/vuln/detail/CVE-2022-24816","cwes":["CWE-94"]},"ssvc":{"exploitation":"active","automatable":"yes","technicalImpact":"total"},"epss":0.99929,"epssPercentile":0.9997,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-24816","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24816","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-24816","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-v92f-jx6p-73rx","ok":true,"note":"GHSA-v92f-jx6p-73rx"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"added 2024-06-26"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-24816","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["Exploited in the wild (CISA KEV)","EPSS 100% with CVSS 10.0"],"attention":null}