ghsa-v92f-jx6p-73rx
Vulnerability from github
Published
2023-09-19 20:35
Modified
2023-09-19 20:35
Severity ?
Summary
Improper Control of Generation of Code ('Code Injection') in jai-ext
Details

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.

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "Maven",
        "name": "it.geosolutions.jaiext.jiffle:jt-jiffle"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.1.22"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Maven",
        "name": "it.geosolutions.jaiext.jiffle:jt-jiffle-language"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.1.22"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2022-24816"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2023-09-19T20:35:16Z",
    "nvd_published_at": "2022-04-13T21:15:00Z",
    "severity": "CRITICAL"
  },
  "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.\n\n",
  "id": "GHSA-v92f-jx6p-73rx",
  "modified": "2023-09-19T20:35:16Z",
  "published": "2023-09-19T20:35:16Z",
  "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"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Improper Control of Generation of Code (\u0027Code Injection\u0027) in jai-ext"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.