---
id: CVE-2026-76904
title: >-
  GeoTools is an open source Java library that provides tools for geospatial
  data
summary: >-
  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
  DataS…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-89
vendor: geotools
product: 'org.geotools.jdbc:gt-jdbc-postgis'
affected:
  - 'org.geotools.jdbc:gt-jdbc-postgis = 35.0'
  - 'org.geotools.jdbc:gt-jdbc-postgis >= 34.0, < 34.5'
  - 'org.geotools.jdbc:gt-jdbc-postgis >= 30.5, < 33.6'
patched:
  - 'org.geotools.jdbc:gt-jdbc-postgis 35.1'
  - 'org.geotools.jdbc:gt-jdbc-postgis 34.5'
  - 'org.geotools.jdbc:gt-jdbc-postgis 33.6'
published: '2026-08-21'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T21:06:39.057'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-76904'
references:
  - url: >-
      https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176
    label: security-advisories@github.com
  - url: 'https://github.com/geotools/geotools/pull/5829'
    label: security-advisories@github.com
  - url: 'https://github.com/geotools/geotools/releases/tag/33.6'
    label: security-advisories@github.com
  - url: 'https://github.com/geotools/geotools/releases/tag/34.5'
    label: security-advisories@github.com
  - url: 'https://github.com/geotools/geotools/releases/tag/35.1'
    label: security-advisories@github.com
  - url: >-
      https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh
    label: security-advisories@github.com
  - url: 'https://osgeo-org.atlassian.net/browse/GEOT-7589'
    label: security-advisories@github.com
  - url: 'https://osgeo-org.atlassian.net/browse/GEOT-7958'
    label: security-advisories@github.com
  - url: 'https://osgeo-org.atlassian.net/browse/GEOT-7959'
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-mqjf-5f49-2fjh'
tags:
  - nvd
  - exploit-available
  - ghsa
  - maven
epss: 0.02403
epssPercentile: 0.83324
exploits:
  github: 2
  githubRepos:
    - 'https://github.com/YonLiud/CVE-2026-76904'
    - 'https://github.com/bickZero93/CVE-2026-76904'
  nuclei:
    - CVE-2026-76904
  checkedAt: '2026-09-25T08:21:13.476Z'
exploitAvailable: true
aliases:
  - GHSA-mqjf-5f49-2fjh
ecosystem: maven
ingestedAt: '2026-08-21T21:22:19.738Z'
---

## Overview

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(<column>, <pointer>, <value>)` function writes `<value>` 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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-76904)

Affected packages:

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

Patched in:

- `org.geotools.jdbc:gt-jdbc-postgis 35.1`
- `org.geotools.jdbc:gt-jdbc-postgis 34.5`
- `org.geotools.jdbc:gt-jdbc-postgis 33.6`

Source: https://github.com/advisories/GHSA-mqjf-5f49-2fjh
