# CVE-2022-24816: GeoServer JT-JIFFLE - RCE

> Live exploitation tracking for CVE-2022-24816 by the CrowdSec Live Exploit Tracker, built from real-world attack data crowdsourced from CrowdSec's global network.

Page: https://tracker.crowdsec.net/cves/CVE-2022-24816

## Key facts

- **Exploitation phase:** Limited Exploitation. The vulnerability is known but shows very limited attacker interest or exploitation activity.
- **CVSS score:** 10.0
- **Public exploit available:** Yes
- **Affected products:** Geosolutions-it JAI-EXT
- **Weaknesses:** CWE-94 (Improper Control of Generation of Code ('Code Injection'))

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

## CrowdSec analysis

[CVE-2022-24816](https://euvd.enisa.europa.eu/vulnerability/CVE-2022-24816) is a critical vulnerability affecting applications utilizing JAI-EXT, notably the GeoServer project, allowing for remote code execution via network-supplied Jiffle scripts that are dynamically compiled and executed.

CrowdSec has been tracking this vulnerability and its exploits since 24th of July 2024.

Insights from the CrowdSec network reveal that the attackers trying to exploit CVE-2022-24816 are composed of a fairly even mix of opportunistic and targeted actors. Some attackers employ preliminary reconnaissance, while others use indiscriminate scanning.
In addition, according to the CrowdSec network, attack volume against CVE-2022-24816 has dipped slightly compared to the previous week. Although still commonly targeted, the decline suggests a cooling-off period. Long-term relevance remains, but attention is waning.

Exploitation attempts are primarily directed at URLs containing `/geoserver/wms`.

## Timeline

- 2022-04-13: CVE Published. CVE-2022-24816 is published to NVD.
- 2024-06-26: CISA KEV. CVE-2022-24816 is added to the Known Exploited Vulnerabilities catalog by CISA.
- 2024-07-17: CISA Remediation Deadline. Expiration of the CISA remediation deadline as described in [BOD 22-01](https://www.cisa.gov/news-events/directives/bod-22-01-reducing-significant-risk-known-exploited-vulnerabilities).
- 2024-07-24: Rule Released. CrowdSec releases a rule to detect CVE-2022-24816 exploitation attempts against the CrowdSec Network.
- 2024-11-23: CrowdSec First Seen. CrowdSec observes in-the-wild exploitation of CVE-2022-24816 for the first time.

## References

- https://github.com/geosolutions-it/jai-ext/security/advisories/GHSA-v92f-jx6p-73rx
- https://github.com/geosolutions-it/jai-ext/commit/cb1d6565d38954676b0a366da4f965fef38da1cb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-24816.yaml

## Live exploitation data

The [Live Exploit Tracker page](https://tracker.crowdsec.net/cves/CVE-2022-24816) follows observed exploitation activity for CVE-2022-24816. [Request an API key](https://tracker.crowdsec.net/request-api-key) for full access to its exploitation timeline, attacking IP addresses and blocklists.
