Skip to content

Unchecked JNDI lookups in GeoTools

Critical
jodygarnett published GHSA-jvh2-668r-g75x Apr 13, 2022

Package

maven GeoTools (Maven)

Affected versions

< 26.4, < 25.6, <24.6

Patched versions

27, 26.4, 25.6, 24.6

Description

Impact

The GeoTools library has a number of data sources that can perform unchecked JNDI lookups, which in turn can be used to perform class deserialization and result in arbitrary code execution.

Similar to the Log4J case, the vulnerability can be triggered if the JNDI name is user-provided.

As an example this can happen in GeoServer, but requires admin-level login to be triggered.

Patches

The lookups are now restricted in GeoTools 26.4, GeoTools 25.6, and GeoTools 24.6.

See User Guide update instructions, and GeoTools utility class instructions, when updating to a patched version.

Workarounds

The downstream application should not allow usage of remotely provided JNDI strings.

For example, in GeoServer, make the GUI (geoserver/web) and the REST configuration (geoserver/rest) unreachable from remote hosts.

Severity

Critical
9.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
High
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

CVE ID

CVE-2022-24818

Credits