GHSA-v92f-jx6p-73rx

Suggest an improvement
Source
https://github.com/advisories/GHSA-v92f-jx6p-73rx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/09/GHSA-v92f-jx6p-73rx/GHSA-v92f-jx6p-73rx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-v92f-jx6p-73rx
Aliases
Published
2023-09-19T20:35:16Z
Modified
2023-11-08T04:08:37.447042Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-04-13T21:15:00Z",
    "cwe_ids": [
        "CWE-94"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2023-09-19T20:35:16Z"
}
References

Affected packages

Maven / it.geosolutions.jaiext.jiffle:jt-jiffle

Package

Name
it.geosolutions.jaiext.jiffle:jt-jiffle
View open source insights on deps.dev
Purl
pkg:maven/it.geosolutions.jaiext.jiffle/jt-jiffle

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.1.22

Maven / it.geosolutions.jaiext.jiffle:jt-jiffle-language

Package

Name
it.geosolutions.jaiext.jiffle:jt-jiffle-language
View open source insights on deps.dev
Purl
pkg:maven/it.geosolutions.jaiext.jiffle/jt-jiffle-language

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.1.22