Vulnerabilities in pkg:maven/it.geosolutions.jaiext.jiffle/jt-jiffle

PACKAGE
Advisory Identifier: GHSA-v92f-jx6p-73rx
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/it.geosolutions.jaiext.jiffle/jt-jiffle

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/it.geosolutions.jaiext.jiffle/jt-jiffle. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-v92f-jx6p-73rx CVE-2022-24816 CRITICAL Improper Control of Generation of Code ('Code Injection') in jai-ext

CVE-2022-24816 at a Glance

CVE Identifier CVE-2022-24816
GHSA Identifier GHSA-v92f-jx6p-73rx
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Jt jiffle
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A: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.

it.geosolutions.jaiext.jiffle:jt-jiffle fixed: 1.1.22
<dependency>
    <groupId>it.geosolutions.jaiext.jiffle</groupId>
    <artifactId>jt-jiffle</artifactId>
    <version>1.1.22</version>
</dependency>
it.geosolutions.jaiext.jiffle:jt-jiffle-language fixed: 1.1.22
<dependency>
    <groupId>it.geosolutions.jaiext.jiffle</groupId>
    <artifactId>jt-jiffle-language</artifactId>
    <version>1.1.22</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### Impact Programs 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. ### Patches Version 1.2.22 will contain a patch that disables the ability to inject malicious code into the resulting script. ### Workarounds Negate the ability to compile Jiffle scripts from the final application, by removing janino-x.y.z.jar from the classpath. ### References None.

CVE-2022-24816 Affected Jt jiffle Versions

2 component(s)
Fixed Versions:
1.1.22
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?
CVE-2022-24816 is a security vulnerability in Jt jiffle involving Improper Control of Generation of Code ('Code Injection') in jai-ext under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Jt jiffle versions are affected?
Affected versions include releases prior to 1.1.22 across affected packages: it.geosolutions.jaiext.jiffle:jt-jiffle, it.geosolutions.jaiext.jiffle:jt-jiffle-language.
What version fixes CVE-2022-24816?
Upgrading to 1.1.22 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jt-jiffle affected?
Yes, it.geosolutions.jaiext.jiffle:jt-jiffle is affected in releases prior to 1.1.22. Upgrade your dependency to 1.1.22 or later.
Is jt-jiffle-language affected?
Yes, it.geosolutions.jaiext.jiffle:jt-jiffle-language is affected in releases prior to 1.1.22. Upgrade your dependency to 1.1.22 or later.
What is the CVSS score of CVE-2022-24816?
CVE-2022-24816 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H.
What CWE is associated with CVE-2022-24816?
CVE-2022-24816 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check Maven dependencies for CVE-2022-24816?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=it.geosolutions.jaiext.jiffle'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}