CVE-2022-24816: OSGeo GeoServer JAI-EXT Code Injection
OSGeo JAI-EXT · listed in the CISA catalog of actively exploited vulnerabilities since 2024-06-26.
- CVSS v3.1 (CVE record)
- 10.0
- critical
- EPSS (exploit probability, 30 days)
- 99.9%
- among the highest 0.1% of all CVEs
- Added to CISA KEV
- 2024-06-26
- US federal due date 2024-07-17
- Automatable (CISA SSVC)
- yes
- technical impact: total
CVE-2022-24816 explained
CVE-2022-24816 is a code injection flaw in JAI-EXT, an open-source extension of the Java Advanced Imaging API. Applications that accept Jiffle scripts over the network can be led into remote code execution, because the scripts are compiled into Java code via Janino and executed. The downstream GeoServer project is affected, and CISA lists the flaw as known exploited.
Impact
An unauthenticated remote attacker can run arbitrary code through an application that accepts Jiffle scripts via network requests. No user interaction is needed, attack complexity is low, and the impact extends beyond the vulnerable component. CISA rates it automatable with total technical impact, so attackers can exploit it at scale and gain full control. Confidentiality, integrity and availability are all at high risk. Attackers are known to exploit it.
Who is affected
The CVE record lists geosolutions-it jai-ext versions < 1.1.22 as affected. The downstream GeoServer project is also affected according to the description. The record names no fixed version in its version data. The description states that version 1.2.22 will contain a patch that disables injecting malicious code into the resulting script. Check the vendor advisory to confirm which release contains the fix.
Written with AI from the data on this page and checked against it automatically.
Official 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 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.
CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
CISA 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: github.com/geosolutions-it/jai-ext/releases/tag/1.1.22, github.com/geosolutions-it/jai-ext/security/advisories/GH…; nvd.nist.gov/vuln/detail/CVE-2022-24816
Affected and fixed versions
From the CVE record published by the vendor or CVE numbering authority.
- geosolutions-it jai-extAffectedFixed in
- < 1.1.22
not stated
| Product | Affected | Fixed in |
|---|---|---|
| geosolutions-it jai-ext |
| not stated |
How to fix it
- The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
- Vendor advisory: github.com/geosolutions-it/jai-ext/security/advisories/GH…
- CISA's deadline for US federal agencies: 2024-07-17 (passed) – a useful benchmark for everyone else, too.
What to do
- Upgrade JAI-EXT, and GeoServer installations that bundle it, to a patched release confirmed in the vendor advisory.
- If you cannot upgrade, remove janino-x.y.z.jar from the application classpath to disable Jiffle script compilation.
- Restrict network access to GeoServer and other applications that accept Jiffle scripts, and keep them off the internet where possible.
- Check exposed servers for signs of compromise, since attackers are known to exploit this flaw.
- Follow CISA's required action: apply vendor mitigations or discontinue use if mitigations are unavailable.
The CVE record names no fixed version, although the description says version 1.2.22 will contain a patch. Until you confirm a fixed release in the vendor advisory, remove janino-x.y.z.jar from the classpath and limit network exposure. CISA requires applying mitigations per vendor instructions, or discontinuing use of the product if mitigations are unavailable.
Written with AI from the data on this page and checked against it automatically.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- Yes – attackers can automate it at scale
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-94 Improper Control of Generation of Code ('Code Injection')
Questions about CVE-2022-24816
- Is GeoServer affected by CVE-2022-24816?
- Yes. The description states that the downstream GeoServer project is affected because it allows Jiffle scripts to be provided via network requests, which JAI-EXT compiles and executes.
- What can I do if I cannot upgrade right away?
- Remove janino-x.y.z.jar from the application classpath. This removes the ability to compile Jiffle scripts in the final application, which blocks this attack path.
- Is this vulnerability being exploited?
- Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2024-06-26, with a US federal due date of 2024-07-17. Whether it is used in ransomware campaigns is unknown.
Written with AI from the data on this page and checked against it automatically.
References
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.