LiveActive security incident?Get immediate response
CVE Record

CVE-2022-24816: Improper Control of Generation of Code in jai-ext

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.

CriticalCVSS 10Known exploitedUpdated
Glexia's TakeHuman reviewedcritical

Security readout for executives and security teams

Plain-English summary

This vulnerability can let an unauthenticated remote attacker turn a user-supplied Jiffle script into executed Java code. The bundle specifically calls out downstream GeoServer exposure. Because CISA lists it in KEV and the CVSS score is 10, exposed systems should be treated as urgent.

Executive priority

Treat this as immediate remediation for exposed geospatial services. The business risk is full remote compromise without authentication or user interaction, with known exploitation cited by CISA. Prioritize patching or disabling Jiffle compilation paths over routine maintenance.

Technical view

CVE-2022-24816 is CWE-94 in jai-ext Jiffle handling. Programs that accept Jiffle scripts over network requests may compile attacker-controlled script content into Java via Janino and execute it. The bundle lists network, unauthenticated, no-interaction impact with full confidentiality, integrity, and availability compromise.

Likely exposure

Likely exposure is systems using jai-ext, including downstream GeoServer deployments, where Jiffle script input can be supplied through a network request. The bundle lists affected jai-ext versions as < 1.1.22, while its description names 1.2.22 as patched; verify exact vendor guidance before version decisions.

Exploitation context

The provided CISA KEV reference supports known exploitation. The source bundle does not include campaign details, exploit prevalence, or payload specifics. Internet-reachable services accepting Jiffle input should be prioritized, especially where GeoServer or jai-ext dependency inventories are incomplete.

Researcher notes

Focus validation on data flow into Jiffle script compilation and whether Janino is present at runtime. Do not assume all jai-ext consumers are exploitable; exposure depends on accepting untrusted Jiffle scripts through network-accessible application behavior.

Mitigation direction

  • Upgrade jai-ext to the vendor-patched version identified in official guidance.
  • If unable to upgrade, remove janino-x.y.z.jar from the application classpath.
  • Identify downstream GeoServer deployments using vulnerable jai-ext dependency versions.
  • Restrict network paths that can submit Jiffle scripts until remediation is complete.
  • Check the vendor advisory for exact patched-version guidance.

Validation and detection

  • Inventory jai-ext versions in deployed applications and dependency manifests.
  • Confirm whether GeoServer deployments include affected jai-ext components.
  • Verify whether network requests can supply Jiffle scripts.
  • Check runtime classpaths for Janino when upgrade is not yet possible.
  • Review CISA KEV tracking for organizational remediation deadlines.
Prepared
Reviewed
Confidence
high
Sources
5

Michael Williams reviewed this cited source version on .

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-94: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-24816 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
10 (3.1)
Known Exploited
Yes
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CISA KEV status

Status
Known exploited
Source
CISA / ADP
Date added
Not provided

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
10CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H3.96Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

10Critical
CVSS 3.1 vector shape for CVE-2022-24816Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
geosolutions-itjai-ext< 1.1.22Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-94 · source CWE mapping

Improper Control of Generation of Code ('Code Injection')

Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.