{"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.01791,"epssPercentile":0.77068,"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-21T15:30:41.832Z"},"exploitAvailable":true,"aliases":["GHSA-mqjf-5f49-2fjh"],"ecosystem":"maven","ingestedAt":"2026-08-21T21:22:19.738Z","slug":"CVE-2026-76904","body":"## Overview\n\nGeoTools 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Package advisory (CVE-2026-76904)\n\nAffected packages:\n\n- `org.geotools.jdbc:gt-jdbc-postgis = 35.0`\n- `org.geotools.jdbc:gt-jdbc-postgis >= 34.0, < 34.5`\n- `org.geotools.jdbc:gt-jdbc-postgis >= 30.5, < 33.6`\n\nPatched in:\n\n- `org.geotools.jdbc:gt-jdbc-postgis 35.1`\n- `org.geotools.jdbc:gt-jdbc-postgis 34.5`\n- `org.geotools.jdbc:gt-jdbc-postgis 33.6`\n\nSource: https://github.com/advisories/GHSA-mqjf-5f49-2fjh","depth":"abyssal","depthScore":66,"depthScoreParts":{"impact":53.9,"likelihood":0.4,"exploitation":12,"ransomware":0},"changes":[{"seq":5474,"id":"CVE-2026-76904","ts":1788887287686,"field":"exploit_available","old":"false","new":"true"},{"seq":4357,"id":"CVE-2026-76904","ts":1788886400883,"field":"exploit_available","old":"true","new":"false"},{"seq":3081,"id":"CVE-2026-76904","ts":1788883064256,"field":"exploit_available","old":"false","new":"true"},{"seq":2110,"id":"CVE-2026-76904","ts":1788882468956,"field":"exploit_available","old":"true","new":"false"},{"seq":1176,"id":"CVE-2026-76904","ts":1788881906296,"field":"exploit_available","old":"false","new":"true"}]}