CVE-2022-24816 OSGeo GeoServer JAI-EXT Code Injection

Exploited in the wild Critical 10.0 Published Updated

Attackers can execute arbitrary code via Jiffle scripts in applications using jai-ext, requiring network access to script submission.

Exploited in the wild
Since 26 Jun 2024
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-24816?

CVE-2022-24816 is a critical code injection vulnerability in geosolutions-it jai-ext, published on 13 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-94

Which versions are affected by CVE-2022-24816?

4 open source packages ship an affected version, including it.geosolutions.jaiext.jiffle:jt-jiffle and it.geosolutions.jaiext.jiffle:jt-jiffle-language. It affects 1 product.

PackageAffectedFixed in
it.geosolutions.jaiext.jiffle:jt-jiffle MavenAll versions1.1.22
it.geosolutions.jaiext.jiffle:jt-jiffle MavenAll versions1.1.22
it.geosolutions.jaiext.jiffle:jt-jiffle-language MavenAll versions1.1.22
it.geosolutions.jaiext.jiffle:jt-jiffle-language MavenAll versions1.1.22

Products include Geosolutionsgroup Jai-Ext.

How do I fix CVE-2022-24816?

Upgrade it.geosolutions.jaiext.jiffle:jt-jiffle to 1.1.22 or later. US federal agencies must fix it by 17 Jul 2024.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2022-24816 being exploited?

Yes. Attackers have exploited CVE-2022-24816 in the wild since at least 26 Jun 2024.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

Sources

Also known as GHSA-v92f-jx6p-73rx.

Is CVE-2022-24816 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free