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

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 29.8%, higher than 98% of CVEs (2026-12-01)
- Published: 2026-08-21T20:13:20.536Z
- Modified: 2026-11-30T19:11:06.747Z
- Also known as: GHSA-mqjf-5f49-2fjh
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- geotools geotools: = 35.0; >= 34.0, < 34.5; >= 30.5, < 33.6
- org.geotools.jdbc:gt-jdbc-postgis (Maven): from 35.0 before 35.1; from 34.0 before 34.5; from 30.5 before 33.6

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `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 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh> (web)
- <https://github.com/geotools/geotools/pull/5829> (web)
- <https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176> (web)
- <https://github.com/geotools/geotools/releases/tag/33.6> (web)
- <https://github.com/geotools/geotools/releases/tag/34.5> (web)
- <https://github.com/geotools/geotools/releases/tag/35.1> (web)
- <https://osgeo-org.atlassian.net/browse/GEOT-7589> (web)
- <https://osgeo-org.atlassian.net/browse/GEOT-7958> (web)
- <https://osgeo-org.atlassian.net/browse/GEOT-7959> (web)
- <https://github.com/geotools/geotools> (package)

## Sources

- CVE List: [CVE-2026-76904](https://www.cve.org/CVERecord?id=CVE-2026-76904), CVE Terms of Use, modified 2026-08-27
- GitHub Advisory Database: [GHSA-mqjf-5f49-2fjh](https://github.com/advisories/GHSA-mqjf-5f49-2fjh), CC-BY-4.0, modified 2026-08-21
- NVD: [CVE-2026-76904](https://nvd.nist.gov/vuln/detail/CVE-2026-76904), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-76904 · Whole record: https://cve.day/CVE-2026-76904.json · Rebuilt by cve.day 2026-11-30T19:17:34.369Z
