---
title: "CVE-2026-76904: GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers"
url: https://erroneo.us/security/cve/CVE-2026-76904/
description: "CVE-2026-76904 (org.geotools.jdbc:gt-jdbc-postgis (Maven)): GeoTools is an open source Java library that provides tools for geospatial data. Starting in…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-08-21
date_modified: 2026-08-27
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-76904"
kev: false
cvss: 9.8
epss: 0.03976
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-76904: GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 4.0% , percentile 90: FIRST’s model estimates a 4.0% chance of exploitation activity in the next 30 days, higher than 90% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes org.geotools.jdbc:gt-jdbc-postgis (Maven) = 35.0, fixed in 35.1 ; org.geotools.jdbc:gt-jdbc-postgis (Maven) >= 34.0, < 34.5, fixed in 34.5 ; org.geotools.jdbc:gt-jdbc-postgis (Maven) >= 30.5, < 33.6, fixed in 33.6 . Check your lockfile, including transitive dependencies.

## What it is

GeoTools is an open source Java library that provides tools for geospatial data. Starting in version 30.5 and prior to versions 33.6, 34.5, and 33.6, an SQL Injection Vulnerability is present when executing OGC Filters with PostGIS DataStore implementation: jsonArrayContains function; Requires PostGIS 12 or greater with a String or JSON field. For PostGIS 12 and greater jsonArrayContains( , , ) function writes into generated SQL without escaping. Patches are available in versions 33.6, 34.5, and 33.6. No known workaround is available. To limit scope of SQL Injection the PostGIS connection pool should be configured with limited rights.

## Affected packages

- Maven `org.geotools.jdbc:gt-jdbc-postgis` = 35.0 → fixed: 35.1
- Maven `org.geotools.jdbc:gt-jdbc-postgis` >= 34.0, < 34.5 → fixed: 34.5
- Maven `org.geotools.jdbc:gt-jdbc-postgis` >= 30.5, < 33.6 → fixed: 33.6

## Affected products (CVE record)

- geotools geotools: = 35.0, >= 34.0, < 34.5, >= 30.5, < 33.6

## Severity

- GitHub_M CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 3.98% probability of exploitation activity in the next 30 days; percentile 90.

## Sources

- [GitHub Advisory GHSA-mqjf-5f49-2fjh](https://github.com/advisories/GHSA-mqjf-5f49-2fjh)
- [CVE.org record CVE-2026-76904](https://www.cve.org/CVERecord?id=CVE-2026-76904)
- [NVD entry CVE-2026-76904](https://nvd.nist.gov/vuln/detail/CVE-2026-76904)
- [github.com](https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh)
- [github.com](https://github.com/geotools/geotools/pull/5829)
- [github.com](https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176)
- [github.com](https://github.com/geotools/geotools/releases/tag/33.6)
- [github.com](https://github.com/geotools/geotools/releases/tag/34.5)
- [github.com](https://github.com/geotools/geotools/releases/tag/35.1)
- [osgeo-org.atlassian.net](https://osgeo-org.atlassian.net/browse/GEOT-7589)
- [osgeo-org.atlassian.net](https://osgeo-org.atlassian.net/browse/GEOT-7958)
- [osgeo-org.atlassian.net](https://osgeo-org.atlassian.net/browse/GEOT-7959)

---
Source page: https://erroneo.us/security/cve/CVE-2026-76904/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
