CVE-2022-24816: Jt jiffle Improper Control Of Generation Of Vulnerability
CRITICALCVE-2022-24816 is a CRITICAL (CVSS 9.8) improper control of generation of vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Jt jiffle libraries in the Maven ecosystem. The issue involves improper control of generation of code ('code injection') in jai-ext. Remediation is available by upgrading affected packages to version 1.1.22.
CVE-2022-24816 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H).
How to Fix CVE-2022-24816
To remediate this vulnerability, upgrade all affected Jt jiffle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>it.geosolutions.jaiext.jiffle</groupId>
<artifactId>jt-jiffle</artifactId>
<version>1.1.22</version>
</dependency>
<dependency>
<groupId>it.geosolutions.jaiext.jiffle</groupId>
<artifactId>jt-jiffle-language</artifactId>
<version>1.1.22</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=it.geosolutions.jaiext.jiffle
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2022-24816, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=it.geosolutions.jaiext.jiffle
Analyze the terminal output to locate any version of Jt jiffle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.22), your application is affected.
Note: The mvn dependency:tree -Dincludes=it.geosolutions.jaiext.jiffle command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Jt jiffle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-24816 Affected Jt jiffle Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
it.geosolutions.jaiext.jiffle:jt-jiffle
|
Maven |
< 1.1.22
|
1.1.22
|
|
it.geosolutions.jaiext.jiffle:jt-jiffle-language
|
Maven |
< 1.1.22
|
1.1.22
|
References
Frequently Asked Questions
What is CVE-2022-24816?
Which Jt jiffle versions are affected?
What version fixes CVE-2022-24816?
Is jt-jiffle affected?
Is jt-jiffle-language affected?
What is the CVSS score of CVE-2022-24816?
What CWE is associated with CVE-2022-24816?
How can I check Maven dependencies for CVE-2022-24816?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v92f-jx6p-73rx",
"modified" : "2025-10-22T19:17:43Z",
"published" : "2023-09-19T20:35:16Z",
"aliases" : [ "CVE-2022-24816" ],
"summary" : "Improper Control of Generation of Code ('Code Injection') in jai-ext",
"details" : "### Impact\nPrograms using jt-jiffle, and allowing Jiffle script to be provided via network request, are susceptible 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.\n\n### Patches\nVersion 1.2.22 will contain a patch that disables the ability to inject malicious code into the resulting script.\n\n### Workarounds\nNegate the ability to compile Jiffle scripts from the final application, by removing janino-x.y.z.jar from the classpath.\n\n### References\nNone.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "it.geosolutions.jaiext.jiffle:jt-jiffle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.22"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "it.geosolutions.jaiext.jiffle:jt-jiffle-language"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.22"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/geosolutions-it/jai-ext/security/advisories/GHSA-v92f-jx6p-73rx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24816"
}, {
"type" : "WEB",
"url" : "https://github.com/geosolutions-it/jai-ext/commit/cb1d6565d38954676b0a366da4f965fef38da1cb"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/geosolutions-it/jai-ext"
}, {
"type" : "WEB",
"url" : "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-24816"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-19T20:35:16Z",
"nvd_published_at" : "2022-04-13T21:15:00Z"
}
}